PyR3.factory package¶
Subpackages¶
Submodules¶
PyR3.factory.MeshFactory module¶
- class PyR3.factory.MeshFactory.MeshFactory(params: dict)[source]¶
Bases:
object
Base class for a mesh factory object.
Mesh factory requires __doc__, __author__ and __version__ to be defined in mesh factory subclass, otherwise class instantiation will fail. Mesh factory can (and should) make use of Fields (subclasses of Field class) to specify mesh factory customization params. See PyR3.factory.fields modules for first-party fields. To specify field just set class attribute to instance of Field subclass. See MeshFactory usage.
- PyR3.factory.MeshFactory.getfields(mesh_factory: MeshFactory) dict [source]¶
Returns fields specified for given MeshFactory.
- Parameters
mesh_factory (MeshFactory) – Object to fetch fields from.
- Returns
dictionary of factory fields.
- Return type
dict