UserVariable#

class UserVariable[source]#

Bases: Variable

Class representing a user-defined symbolic variable

Properties

value: Any#

Get the value of the variable from the global context.

Additional Constructors

in_units(new_unit=None)[source]#

Requesting the output of the variable to be in the given (new_unit) units.

Parameters:

new_unit (str | Literal['SI_unit_system', 'CGS_unit_system', 'Imperial_unit_system'] | ~unyt.unit_object.Unit | None)

Return type:

Self

classmethod from_file(filename)#

Load a Flow360BaseModel from a .json file.

Parameters:

filename (str)

Return type:

Flow360BaseModel

Methods

help(methods=False)#

Print fields and methods of a Flow360BaseModel using rich.

Parameters:

methods (bool)

Return type:

None

to_file(filename, **kwargs)#

Export Flow360BaseModel instance to a .json file.

Parameters:
Return type:

None