[CIG-LONG] defining the model bounding geometry
Walter Landry
walter at geodynamics.org
Tue Jan 31 11:09:54 PST 2012
Matty Mookerjee <matty.mookerjee at sonoma.edu> wrote:
> Walter,
>
> Could you help me define a three-dimensional polygons. For instance, in the example that you sent me where you replaced the circle with an octagon using a polygon, can you simply extrude this polygon in the z-direction to get an approximate cylinder? In my specific example, I would like to make a three-dimensional wedge. It's easy to make that wedge shape in 2D, and all I want to do is to project that 2D shape into the z-direction.
Yes, you can simply extrude the polygon by setting startZ and endZ. I
am attaching a 3d version of the polygon example.
Cheers,
Walter Landry
-------------- next part --------------
{
"EulerDeform":
{
"systems": [
{
"mesh": "v-mesh",
"p-mesh": "p-mesh",
"remesher": "velocityRemesher",
"velocityField": "VelocityField",
"wrapTop": "True"
}
]
},
"components":
{
"buoyancyForceTerm":
{
"Type": "BuoyancyForceTerm",
"ForceVector": "mom_force",
"Swarm": "gaussSwarm",
"gravity": "gravity"
},
"backgroundShape":
{
"Type": "EquationShape",
"equation": "1"
},
"sphereShape":
{
"Type": "PolygonShape",
"vertices": [
"asciidata",
["x","y"],
1.0, .25,
1.0707, .2207,
1.1, .15,
1.0707, .07929,
1.0, .05,
.92929, .07929,
.9, .15,
.92929, .2207
],
"startZ": "minZ",
"endZ": "maxZ"
},
"nonsphereShape":
{
"Type": "Intersection",
"shapes":
[
"backgroundShape",
"!sphereShape"
]
},
"backgroundViscosity":
{
"Type": "MaterialViscosity",
"eta0": "1.0"
},
"viscous":
{
"Type": "RheologyMaterial",
"Shape": "nonsphereShape",
"density": "1.0",
"Rheology": [
"backgroundViscosity",
"storeViscosity",
"storeStress"
]
},
"sphereViscosity":
{
"Type": "MaterialViscosity",
"eta0": "10.0"
},
"sphereViscous":
{
"Type": "RheologyMaterial",
"Shape": "sphereShape",
"density": "1.0",
"Rheology": [
"sphereViscosity",
"storeViscosity",
"storeStress"
]
}
},
"velocityBCs" :{
"type": "CompositeVC",
"vcList": [
{
"type": "WallVC",
"wall": "left",
"variables": [
{
"name": "vx",
"value": "0"
}
]
},
{
"type": "WallVC",
"wall": "right",
"variables": [
{
"name": "vx",
"value": "1.0"
}
]
},
{
"type": "WallVC",
"wall": "front",
"variables": [
{
"name": "vz",
"value": "0"
}
]
},
{
"type": "WallVC",
"wall": "back",
"variables": [
{
"name": "vz",
"value": "1.0"
}
]
},
{
"type": "WallVC",
"wall": "bottom",
"variables": [
{
"name": "vy",
"value": "0"
}
]
}
]
},
"FieldVariablesToCheckpoint": [
"StrainRateInvariantField",
"VelocityField",
"PressureField"
],
"maxTimeSteps": "10",
"outputPath": "./output",
"dim": "3",
"minX": "0",
"minY": "0",
"minZ": "0",
"maxX": "2",
"maxY": "0.35",
"maxZ": "0.3",
"nx": "16",
"ny": "4",
"nz": "4",
"particlesPerCell": "40",
"seed": "13",
"checkpointEvery": "1",
"gravity": "1.0"
}
More information about the CIG-LONG
mailing list