carputils
Doxygen code documentation for the python framework controlling openCARP
|
Function to generate a CARP mesh if it does not yet exist. More...
Functions | |
def | generate (geom, dirname=None, rootdir='meshes') |
Generate the specified geometry, unless it already exists. More... | |
Variables | |
xrange = range | |
Function to generate a CARP mesh if it does not yet exist.
def carputils.mesh.generate.generate | ( | geom, | |
dirname = None , |
|||
rootdir = 'meshes' |
|||
) |
Generate the specified geometry, unless it already exists.
This function checks whether the specified mesh already exists, and simply returns it base name if so. Otherwise, the mesh is generated in a new and uniquely named mesh directory, and the base name of this mesh is then returned. This currently only works with :class:carputils.mesh.Block
.
To use:
generate | Block The geometry to generate |
rootdir | str, optional The parent directory to store and search for meshes, defaults to 'meshes' |
carputils.mesh.generate.xrange = range |