bluemira.radiation_transport.neutronics.dagmc.save_cad_to_dagmc
Saving CAD to DAGMC helper function.
Classes
A model to enable config validation and conversion. |
Functions
|
Save a list of shapes to a DAGMC file. |
Module Contents
- class bluemira.radiation_transport.neutronics.dagmc.save_cad_to_dagmc.DAGMCConverterConfigModel(/, **data: Any)
Bases:
pydantic.BaseModelA model to enable config validation and conversion.
- Parameters:
data (Any)
- bluemira.radiation_transport.neutronics.dagmc.save_cad_to_dagmc.save_cad_to_dagmc(shapes: list[bluemira.geometry.base.BluemiraGeoT], names: list[str], filename: pathlib.Path, comp_mat_mapping: dict[str, str], *, converter_config: dict | bluemira.radiation_transport.neutronics.dagmc.dagmc_converter_fast_ctd.DAGMCConverterFastCTDConfig | None = None) None
Save a list of shapes to a DAGMC file.
- Parameters:
shapes (list[bluemira.geometry.base.BluemiraGeoT]) – List of shapes to be saved.
names (list[str]) – List of names for the shapes.
filename (pathlib.Path) – Path to the output DAGMC file.
comp_mat_mapping (dict[str, str]) – Mapping of component names to material names.
converter_config (dict | bluemira.radiation_transport.neutronics.dagmc.dagmc_converter_fast_ctd.DAGMCConverterFastCTDConfig | None) – Configuration for the converter. If None, the default (fast_ctd) is used. If a dictionary is provided, it will be converted to the appropriate configuration model. If a configuration model is provided, it will be used directly.
- Raises:
NotImplementedError – If the converter is not implemented.
- Return type:
None