Skip to content

Commit

Permalink
🌸 add scenes
Browse files Browse the repository at this point in the history
  • Loading branch information
ttnghia committed Jun 14, 2018
1 parent aff9ff9 commit 491352e
Show file tree
Hide file tree
Showing 28 changed files with 1,291 additions and 10 deletions.
50 changes: 50 additions & 0 deletions Scenes/2D_Box.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"GlobalParameters":
{
"Dimension" : 2
},
"SimulationParameters":
{
"SimulationDomainBox" :
{
"BoxMin" : [-1, -1],
"BoxMax" : [1, 1]
},
"ParticleRadius" : 0.02
},
"ParticleGenerators":
[
{
"GeometryType" : "Box",
"UniqueName" : "Box",
"BoxMin" : [-0.8, -0.5],
"BoxMax" : [0.8, 0.5],
"RotationAxisAngle" : [1, 0, 10],
"JitterRatio" : 0.1,
"SamplingRatio" : 0.85,
"UseFileCache" : true,
"ParticleFileType" : "bgeo",
"ParticleOutputFile" : "Data/2D_box.bgeo"
}
],
"VisualizationParameters":
{
"CameraPosition" : [0, 0, 0.5],
"CameraFocus" : [0, 0, 0],
"Light" :
[
{
"Position" : [-10, 20, 10],
"Diffuse" : [0.7, 0.7, 0.7]
},
{
"Position" : [10, 20, -10],
"Diffuse" : [0.7, 0.7, 0.7]
},
{
"Position" : [0, -20, 0],
"Diffuse" : [1, 1, 1]
}
]
}
}
51 changes: 51 additions & 0 deletions Scenes/2D_Capsule.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"GlobalParameters":
{
"Dimension" : 2
},
"SimulationParameters":
{
"SimulationDomainBox" :
{
"BoxMin" : [-1, -1],
"BoxMax" : [1, 1]
},
"ParticleRadius" : 0.02
},
"ParticleGenerators":
[
{
"GeometryType" : "Capsule",
"UniqueName" : "Capsule",
"Radius" : 0.4,
"Translation" : [0, 0],
"Scale" : 0.9,
"RotationAxisAngle" : [1, 0, 10],
"JitterRatio" : 0.1,
"SamplingRatio" : 0.85,
"UseFileCache" : true,
"ParticleFileType" : "bgeo",
"ParticleOutputFile" : "Data/2D_capsule.bgeo"
}
],
"VisualizationParameters":
{
"CameraPosition" : [0, 0, 0.5],
"CameraFocus" : [0, 0, 0],
"Light" :
[
{
"Position" : [-10, 20, 10],
"Diffuse" : [0.7, 0.7, 0.7]
},
{
"Position" : [10, 20, -10],
"Diffuse" : [0.7, 0.7, 0.7]
},
{
"Position" : [0, -20, 0],
"Diffuse" : [1, 1, 1]
}
]
}
}
50 changes: 50 additions & 0 deletions Scenes/2D_Ellipsoid.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"GlobalParameters":
{
"Dimension" : 2
},
"SimulationParameters":
{
"SimulationDomainBox" :
{
"BoxMin" : [-1, -1],
"BoxMax" : [1, 1]
},
"ParticleRadius" : 0.02
},
"ParticleGenerators":
[
{
"GeometryType" : "Ellipsoid",
"UniqueName" : "Ellipsoid",
"RadiusRatio" : [1, 0.6],
"Translation" : [0, 0],
"Scale" : 0.9,
"JitterRatio" : 0.1,
"SamplingRatio" : 0.85,
"UseFileCache" : true,
"ParticleFileType" : "bgeo",
"ParticleOutputFile" : "Data/2D_ellipsoid.bgeo"
}
],
"VisualizationParameters":
{
"CameraPosition" : [0, 0, 0.5],
"CameraFocus" : [0, 0, 0],
"Light" :
[
{
"Position" : [-10, 20, 10],
"Diffuse" : [0.7, 0.7, 0.7]
},
{
"Position" : [10, 20, -10],
"Diffuse" : [0.7, 0.7, 0.7]
},
{
"Position" : [0, -20, 0],
"Diffuse" : [1, 1, 1]
}
]
}
}
6 changes: 3 additions & 3 deletions Scenes/Sphere2D.json → Scenes/2D_Hexagon.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
"BoxMin" : [-1, -1],
"BoxMax" : [1, 1]
},
"ParticleRadius" : 0.01
"ParticleRadius" : 0.02
},
"ParticleGenerators":
[
{
"GeometryType" : "Sphere",
"UniqueName" : "Sphere",
"GeometryType" : "Hexagon",
"UniqueName" : "Hexagon",
"Translation" : [0, 0],
"Scale" : 0.8,
"JitterRatio" : 0.1,
Expand Down
49 changes: 49 additions & 0 deletions Scenes/2D_Sphere.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"GlobalParameters":
{
"Dimension" : 2
},
"SimulationParameters":
{
"SimulationDomainBox" :
{
"BoxMin" : [-1, -1],
"BoxMax" : [1, 1]
},
"ParticleRadius" : 0.02
},
"ParticleGenerators":
[
{
"GeometryType" : "Sphere",
"UniqueName" : "Sphere",
"Translation" : [0, 0],
"Scale" : 0.8,
"JitterRatio" : 0.1,
"SamplingRatio" : 0.85,
"UseFileCache" : true,
"ParticleFileType" : "bgeo",
"ParticleOutputFile" : "Data/2D_sphere.bgeo"
}
],
"VisualizationParameters":
{
"CameraPosition" : [0, 0, 0.5],
"CameraFocus" : [0, 0, 0],
"Light" :
[
{
"Position" : [-10, 20, 10],
"Diffuse" : [0.7, 0.7, 0.7]
},
{
"Position" : [10, 20, -10],
"Diffuse" : [0.7, 0.7, 0.7]
},
{
"Position" : [0, -20, 0],
"Diffuse" : [1, 1, 1]
}
]
}
}
50 changes: 50 additions & 0 deletions Scenes/2D_Torus.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"GlobalParameters":
{
"Dimension" : 2
},
"SimulationParameters":
{
"SimulationDomainBox" :
{
"BoxMin" : [-1, -1],
"BoxMax" : [1, 1]
},
"ParticleRadius" : 0.02
},
"ParticleGenerators":
[
{
"GeometryType" : "Torus",
"UniqueName" : "Torus",
"RingRadius" : 0.3,
"Translation" : [0, 0],
"Scale" : 0.7,
"JitterRatio" : 0.1,
"SamplingRatio" : 0.85,
"UseFileCache" : true,
"ParticleFileType" : "bgeo",
"ParticleOutputFile" : "Data/2D_torus.bgeo"
}
],
"VisualizationParameters":
{
"CameraPosition" : [0, 0, 0.5],
"CameraFocus" : [0, 0, 0],
"Light" :
[
{
"Position" : [-10, 20, 10],
"Diffuse" : [0.7, 0.7, 0.7]
},
{
"Position" : [10, 20, -10],
"Diffuse" : [0.7, 0.7, 0.7]
},
{
"Position" : [0, -20, 0],
"Diffuse" : [1, 1, 1]
}
]
}
}
50 changes: 50 additions & 0 deletions Scenes/2D_Torus88.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"GlobalParameters":
{
"Dimension" : 2
},
"SimulationParameters":
{
"SimulationDomainBox" :
{
"BoxMin" : [-1, -1],
"BoxMax" : [1, 1]
},
"ParticleRadius" : 0.02
},
"ParticleGenerators":
[
{
"GeometryType" : "Torus88",
"UniqueName" : "Torus88",
"RingRadius" : 0.3,
"Translation" : [0, 0],
"Scale" : 0.7,
"JitterRatio" : 0.1,
"SamplingRatio" : 0.85,
"UseFileCache" : true,
"ParticleFileType" : "bgeo",
"ParticleOutputFile" : "Data/2D_torus88.bgeo"
}
],
"VisualizationParameters":
{
"CameraPosition" : [0, 0, 0.5],
"CameraFocus" : [0, 0, 0],
"Light" :
[
{
"Position" : [-10, 20, 10],
"Diffuse" : [0.7, 0.7, 0.7]
},
{
"Position" : [10, 20, -10],
"Diffuse" : [0.7, 0.7, 0.7]
},
{
"Position" : [0, -20, 0],
"Diffuse" : [1, 1, 1]
}
]
}
}
50 changes: 50 additions & 0 deletions Scenes/2D_TorusInfInf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"GlobalParameters":
{
"Dimension" : 2
},
"SimulationParameters":
{
"SimulationDomainBox" :
{
"BoxMin" : [-1, -1],
"BoxMax" : [1, 1]
},
"ParticleRadius" : 0.02
},
"ParticleGenerators":
[
{
"GeometryType" : "TorusInfInf",
"UniqueName" : "TorusInfInf",
"RingRadius" : 0.3,
"Translation" : [0, 0],
"Scale" : 0.7,
"JitterRatio" : 0.1,
"SamplingRatio" : 0.85,
"UseFileCache" : true,
"ParticleFileType" : "bgeo",
"ParticleOutputFile" : "Data/2D_torusInfInf.bgeo"
}
],
"VisualizationParameters":
{
"CameraPosition" : [0, 0, 0.5],
"CameraFocus" : [0, 0, 0],
"Light" :
[
{
"Position" : [-10, 20, 10],
"Diffuse" : [0.7, 0.7, 0.7]
},
{
"Position" : [10, 20, -10],
"Diffuse" : [0.7, 0.7, 0.7]
},
{
"Position" : [0, -20, 0],
"Diffuse" : [1, 1, 1]
}
]
}
}
Loading

0 comments on commit 491352e

Please sign in to comment.