get_geometry_filepath#
- TwinModel.get_geometry_filepath(rom_name)#
Get the geometry file associated with a ROM available in the twin model.
The geometry file contains the coordinates of the points that are used to define the geometrical support of the ROM field output.
- Parameters:
- rom_name
str
Name of the ROM. To get a list of available ROMs, see the
pytwin.TwinModel.tbrom_names
attribute.
- rom_name
- Raises:
- TwinModelError:
If
TwinModel
obbject does not include any TBROMs. If the given ROM name is not available. If the given geometry file cannot be found for the ROM.
Examples
>>> from pytwin import TwinModel >>> model = TwinModel(model_filepath='path_to_twin_model_with_TBROM_in_it.twin') >>> available_rom_names = model.tbrom_names >>> geometry_filepath = TwinModel.get_geometry_filepath(rom_name=available_rom_names[0])