get_geometry_filepath#
- TwinModel.get_geometry_filepath(rom_name)#
Get the geometry file associated to a Reduced Order Model (ROM) available in the TwinModel. 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
This is the name of a ROM model that is available in the TwinModel. See TwinModel.tbrom_names property to get a list of available ROM model.
- rom_name
- Raises:
- TwinModelError:
It raises an error if TwinModel has not been initialized. It raises an error if TwinModel does not include any TBROM. It raises an error if rom_name is not available. It raises an error if geometry file cannot be found for an available ROM.
Examples
>>> from pytwin import TwinModel >>> model = TwinModel(model_filepath='path_to_twin_model_with_TBROM_in_it.twin') >>> model.initialize_evaluation() >>> available_rom_names = model.tbrom_names >>> geometry_filepath = TwinModel.get_geometry_filepath(rom_name=available_rom_names[0])