> geom_addPrimitive options Geom file(s)
-c
/ --center
-d
/ --dimension
-e
/ --exponent
-f
/ --fill
[ 0 ] -q
/ --quaternion
-a
/ --angleaxis
--degrees
[ False ] --nonperiodic
[ True ] --realspace
[ origin,origin+size] instead of [0,grid ] > geom_addPrimitive --center 16 16 16 --dimension 8 12 16 --fill 0 < blank32x32x32.geom > hexahedral_inclusion.geom
This example demonstrates the filling of a hexahedral volume.
--center 16 16 16
places the center of the affected volume in the center of the 32x32x32 geometry.
--dimension 8 12 16
spans a hexahedral volume of 8 by 12 by 16 voxels.
--fill 0
assigns to the affected volume an index one larger than the maximum index found in the original geom file. Here, the maximum microstructure index was 1, hence the new (red) volume is filled with index 2 = 1+1.
> geom_addPrimitive --center 16 16 16 --dimension -8 -12 16 --fill 0 < blank32x32x32.geom > cylinder_inclusion.geom
This example demonstrates the use of negative dimensions to indicate diameters resulting in ellipsoidal (here cylindrical) volumes.
--dimension -8 -12 16
produces an elliptical cross-section with diameters of 8 by 12 and an extruded length of 16 along the z direction.
> geom_addPrimitive --center 16 16 16 --dimension -8 -12 -16 --fill 2 < blank32x32x32.geom > ellipsoid_inclusion.geom
This example sets all three dimensions to negative values.
--dimension -8 -12 -16
produces an ellipsoidal volume with diameters of 8 by 12 by 16.
--fill 2
set the microstructure index of the ellipsoidal volume to a value of 2.
> geom_addPrimitive --center 16 16 16 --dimension 8 12 16 --fill 2 < blank32x32x32.geom | geom_addPrimitive --origin 16 16 8 --dimension 32 32 1 --fill 2 | geom_addPrimitive --origin 16 16 24 --dimension 8 -8 -8 --fill 1 > complex_assembly.geom
This example combines multiple primitives to produce a more complex shape.
I | Attachment | Action | Size | Date | Who | Comment |
---|---|---|---|---|---|---|
geom | blank32x32x32.geom | manage | 134 bytes | 01 Apr 2015 - 15:01 | MartinDiehl | 32x32x32 geometry of microstructure index 1 |
png | geom_addPrimitive_box.png | manage | 229 K | 04 Mar 2014 - 02:43 | PhilipEisenlohr | hxahedral inclusion of 8x12x16 voxels |
png | geom_addPrimitive_complex.png | manage | 248 K | 04 Mar 2014 - 03:54 | PhilipEisenlohr | a more involved assembly of primitives |
png | geom_addPrimitive_cylinder.png | manage | 229 K | 04 Mar 2014 - 02:43 | PhilipEisenlohr | cylindrical inclusion of 8x12 with length 16 voxels |
png | geom_addPrimitive_ellipsoid.png | manage | 228 K | 04 Mar 2014 - 02:44 | PhilipEisenlohr | ellipsoidal inclusion of 8x12x16 voxels |