get_rom_directory#
- TwinModel.get_rom_directory(rom_name)#
Get working directory path for a given Reduced Order Model (ROM) available in the TwinModel.
- 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.
Examples
>>> from pytwin import TwinModel >>> model = TwinModel(model_filepath='path_to_twin_model_with_TBROM_in_it.twin') >>> model.initialize_evaluation() >>> model.get_rom_directory(model.tbrom_names[0])