|
carputils
Doxygen code documentation for the python framework controlling openCARP
|
A class and associated functions for generating geometries with mesher. More...
Classes | |
| class | Block |
| Generate a block mesh with the mesher command line utility. More... | |
Functions | |
| def | block_boundary_condition (block, entity, index, coord, lower=True, bath=False, verbose=False) |
| def | block_bc_opencarp (block, entity, index, coord, lower=True, bath=False, verbose=False) |
Does the same thing as block_boundary_condition, but for the new stim struct introduced in openCARP. More... | |
| def | block_region (block, entity, index, low, up, bath=False, verbose=False) |
Generate a boundary condition definition for a :class:Block. More... | |
A class and associated functions for generating geometries with mesher.
| def carputils.mesh.block.block_bc_opencarp | ( | block, | |
| entity, | |||
| index, | |||
| coord, | |||
lower = True, |
|||
bath = False, |
|||
verbose = False |
|||
| ) |
Does the same thing as block_boundary_condition, but for the new stim struct introduced in openCARP.
Given a :class:Block, generate a set of openCARP options defining a boundary condition on one of the faces of the mesh. The face at the lower or upper bound of the specified coordinate is 'encased' in a box surrounding the selected surface at half its resolution.
| block | Block The geometry to generate boundary conditions for |
| entity | str The openCARP boundary condition type to use (e.g. 'stimulus') |
| index | int The boundary condition index |
| coord | str The direction perpendicular to which the BC is generated. One of ('x', 'y', 'z'). |
| lower | bool, optional True if to generate BC at lower bound of coord (default), False for upper bound |
| bath | bool, optional Generate BC at bounds of tissue+bath if True, tissue only otherwise (default) |
| def carputils.mesh.block.block_boundary_condition | ( | block, | |
| entity, | |||
| index, | |||
| coord, | |||
lower = True, |
|||
bath = False, |
|||
verbose = False |
|||
| ) |
| def carputils.mesh.block.block_region | ( | block, | |
| entity, | |||
| index, | |||
| low, | |||
| up, | |||
bath = False, |
|||
verbose = False |
|||
| ) |
Generate a boundary condition definition for a :class:Block.
Given a :class:Block, generate a set of openCARP options defining a block-shaped region on a given domain low and up specify lower and upper coordinates of the block region.
For example, for the default origin-centred box of size (1,1,1) and resolution 0.1:
calling :func:block_region with low ='[-0.5, -0.5 -0.5]' and up='[0.0, 0.0, 0.0]':
will generate a stimulus block definition for -0.5<=x<=0., -0.5<=y<=0. and -0.5<=z<=0.0.
| block | Block The geometry to generate boundary conditions for |
| entity | str The openCARP boundary condition type to use (e.g. 'stimulus') |
| index | int The boundary condition index |
| low | array x, y and z coordinate of lower left corner of block region |
| up | array x, y and z coordinate of upper right corner of block region |
| bath | bool, optional Generate BC at bounds of tissue+bath if True, tissue only otherwise (default) |
1.8.13