get_available_view_names#

TwinModel.get_available_view_names(rom_name)#

Get a list of view names for a ROM (reduced order model) in the twin model.

Parameters:
rom_namestr

Name of the ROM in the twin model. To get a list of available ROMs, see the pytwin.TwinModel.get_available_view_names attribute.

Raises:
TwinModelError:

If TwinModel object does not include any TBROMs. If the provided ROM name is not available.

Examples

>>> from pytwin import TwinModel
>>> model = TwinModel(model_filepath='path_to_twin_model_with_TBROM_in_it.twin')
>>> model.get_available_view_names(rom_name=model.tbrom_names[0])