get_available_view_names#

TwinModel.get_available_view_names(rom_name)#

Get a list of available view names for a given Reduced Order Model (ROM) available in the TwinModel.

Parameters:
rom_namestr

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.

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_available_view_names(rom_name=model.tbrom_names[0])