get_tbrom_data_location#

TwinModel.get_tbrom_data_location(rom_name)#

Get the data location (elemental or Nodal) of the output field associated to the TBROM named rom_name.

Parameters:
rom_namestr

Name of the ROM. To get a list of available ROMs, see the pytwin.TwinModel.tbrom_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_tbrom_data_location(model.tbrom_names[0])