get_tbrom_time_grid#
- TwinModel.get_tbrom_time_grid(rom_name)#
Return the TBROM time grid for parametric field history ROM in the form of a list.
- Parameters:
- rom_name
str
Name of the ROM. To get a list of available ROMs, see the
pytwin.TwinModel.tbrom_names
attribute.
- rom_name
- Returns:
- Raises:
- TwinModelError:
If
TwinModel
object does not include any TBROMs. If the provided ROM name is not available. If the TBROM is not a parametric field history ROM.
Examples
>>> from pytwin import TwinModel >>> model = TwinModel(model_filepath='path_to_twin_model_with_TBROM_in_it.twin') >>> romname = model.tbrom_names[0] >>> time_grid = model.get_tbrom_time_grid(romname) >>> model.initialize_evaluation()