InputParameters#

class ansys.fluent.parametric.InputParameters(session)#

Provides for accessing and modifying input parameter values in Fluent.

Parameters:
session

Connected Fluent session.

Examples

>>> inp = InputParameters(session)
>>> print([(k, v) for k, v in inp.items()])
[('parameter-1', '0.3 [m/s]'), ('parameter-2', '1.2 [m/s]')]
>>> inp['parameter-1']
'0.3 [m/s]'
>>> inp['parameter-1'] = '0.5 [m/s]'
>>> inp['parameter-1']
'0.5 [m/s]'
>>> inp.get_unit_label('parameter-1')
'm/s'
>>> inp['parameter-1'] = '40 [cm/s]'
>>> inp['parameter-1']
'40 [cm/s]'
>>> inp.get_unit_label('parameter-1')
'cm/s'
>>> inp['parameter-1'] = 50
>>> inp['parameter-1']
'50 [cm/s]'

Methods

InputParameters.get_unit_label(name)

Get the unit label of a Fluent input parameter.