Difference between revisions of "3D MPM Shape Commands"

From OSUPDOCS
Jump to navigation Jump to search
Line 19: Line 19:


== Sphere Command ==
== Sphere Command ==
A scripted <tt>SPhere</tt> command defines a region to be filled with material points or to be defined as a hole:
Sphere (xmin),(xmax),(ymin),(ymax),(zmin),(zmax)
In <tt>XML</tt> files, the command is:
<Sphere xmin='(xmin)' xmax='(xmax)' ymin='(ymin)' ymax='(ymax)'
                    zmin='(zmin)' zmax='(zmax)'/>
where
* <tt>(xmin),(xmax),(ymin),(ymax),(zmin)</tt>, and <tt>(zmax)</tt> are the x, y, and z extents of the cubical volume that encloses the spherical volume. If xmax<xmin, ymax<ymin, or zmax<zmin, they will be automatically switched to define the box. The units are mm (or determined by a [[Units Attribute|units attribute]] in <tt>XML</tt> files).
If the defined spherical volume overlaps regions that already have material points or previously was defined as a hole, those regions will be ignored.


== Cylinder Command ==
== Cylinder Command ==

Revision as of 09:56, 21 November 2013

These shape commands are used in 3D MPM simulations within Region and Hole commands to discretize an object for the calculations. Besides these shapes, you can also discretize objects directly from a stack of images.

Box Command

A scripted Box command defines a region to be filled with material points or to be defined as a hole:

Box (xmin),(xmax),(ymin),(ymax),(zmin),(zmax)

In XML files, the command is:

<Box xmin='(xmin)' xmax='(xmax)' ymin='(ymin)' ymax='(ymax)'
                   zmin='(zmin)' zmax='(zmax)'/>

where

  • (xmin),(xmax),(ymin),(ymax),(zmin), and (zmax) are the x, y, and z extents of the cubical volume. If xmax<xmin, ymax<ymin, or zmax<zmin, they will be automatically switched to define the box. The units are mm (or determined by a units attribute in XML files).

If the defined cubical volume overlaps regions that already have material points or previously was defined as a hole, those regions will be ignored.

Sphere Command

A scripted SPhere command defines a region to be filled with material points or to be defined as a hole:

Sphere (xmin),(xmax),(ymin),(ymax),(zmin),(zmax)

In XML files, the command is:

<Sphere xmin='(xmin)' xmax='(xmax)' ymin='(ymin)' ymax='(ymax)'
                   zmin='(zmin)' zmax='(zmax)'/>

where

  • (xmin),(xmax),(ymin),(ymax),(zmin), and (zmax) are the x, y, and z extents of the cubical volume that encloses the spherical volume. If xmax<xmin, ymax<ymin, or zmax<zmin, they will be automatically switched to define the box. The units are mm (or determined by a units attribute in XML files).

If the defined spherical volume overlaps regions that already have material points or previously was defined as a hole, those regions will be ignored.

Cylinder Command

Torus Command

Faces or Pyramid