|
carputils
Doxygen code documentation for the python framework controlling openCARP
|
A general region definition. More...
Public Member Functions | |
| def | __init__ (self, tag=None, bath=0, rtype=0, p0=(0., 0., 0.), p1=(0., 0., 0.), radius=0., ctype=None) |
| def | mesher_opts (self, i) |
| Generate the mesher option list for this region. More... | |
| def | carp_opts (self, i) |
| Generate the carp option list for this tag region. More... | |
| def | __call__ (self, coord) |
| Reimplement with logic determining if coord (mm) is in the region. More... | |
Public Attributes | |
| tag | |
| bath | |
| rtype | |
| radius | |
| p0 | |
| p1 | |
| ctype | |
A general region definition.
Do not use directly. Use :class:BoxRegion, :class:SphereRegion or :class:CylinderRegion instead.
| tag | int, optional Tag ID to assign to this region, defaults to auto assign by mesher |
| bath | int, optional |
| 0 | no bath, 1 - isotropic bath, 2 - anisotropic bath, default is 0 |
| p0 | array-like, optional Relevant point 0, in mm |
| p1 | array-like, optional Relevant point 1, in mm |
| radius | float Radius, where relevant, in mm |
| rtype | int region type identifier for mesher |
| ctype | int region type identifier for carp |
| def carputils.mesh.region.Region.__init__ | ( | self, | |
tag = None, |
|||
bath = 0, |
|||
rtype = 0, |
|||
p0 = (0., 0., 0.), |
|||
p1 = (0., 0., 0.), |
|||
radius = 0., |
|||
ctype = None |
|||
| ) |
| def carputils.mesh.region.Region.__call__ | ( | self, | |
| coord | |||
| ) |
Reimplement with logic determining if coord (mm) is in the region.
Reimplemented in carputils.mesh.region.CylinderRegion, carputils.mesh.region.SphereRegion, and carputils.mesh.region.BoxRegion.
| def carputils.mesh.region.Region.carp_opts | ( | self, | |
| i | |||
| ) |
Generate the carp option list for this tag region.
| i | int Index of mesh region. |
Reimplemented in carputils.mesh.region.CylinderRegion.
| def carputils.mesh.region.Region.mesher_opts | ( | self, | |
| i | |||
| ) |
Generate the mesher option list for this region.
| i | int Index of mesh region. |
Reimplemented in carputils.mesh.region.CylinderRegion.
| carputils.mesh.region.Region.bath |
| carputils.mesh.region.Region.ctype |
| carputils.mesh.region.Region.p0 |
| carputils.mesh.region.Region.p1 |
| carputils.mesh.region.Region.radius |
| carputils.mesh.region.Region.rtype |
| carputils.mesh.region.Region.tag |