PyR3.factory package¶
Subpackages¶
Submodules¶
PyR3.factory.MeshFactory module¶
- class PyR3.factory.MeshFactory.MeshFactory(**MF_params)[source]¶
Bases:
objectBase 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.
- static build_external(class_: str | MeshFactory, **params) Objects[source]¶
- static build_external_direct_map(class_: str | MeshFactory, param_source: Mapping) Objects[source]¶
- PyR3.factory.MeshFactory.getfields(mesh_factory: MeshFactory) Dict[str, Field][source]¶
Returns fields specified for given MeshFactory.
- Parameters
mesh_factory (MeshFactory) – Object to fetch fields from.
- Returns
dictionary of factory fields.
- Return type
dict
Module contents¶
- PyR3.factory.build_and_save(generator_type: str, class_: str | MeshFactory, params: dict, save_path: Path)[source]¶
- PyR3.factory.build_from_file(src_file: Path, save_path: Path)[source]¶
Build mesh using configuration from file. Later mesh is saved to save_path.
- Parameters
src_file (Path) – source configuration file.
save_path (Path) – destination save path.
- PyR3.factory.build_python(class_: str | MeshFactory, params: dict)[source]¶