FromUserDefinedDynamics#

class FromUserDefinedDynamics[source]#

Bases: Flow360BaseModel

FromUserDefinedDynamics class to define the rotation controlled by user defined dynamics for Rotation.spec.

Example

>>> params=fl.SimulationParams(...)
>>> params.user_defined_dynamics=fl.UserDefinedDynamic(...)
>>> params.models.append(
...     fl.Rotation(
...        spec=fl.FromUserDefinedDynamics(),
...        entities=[rotation_entity]
...     )
... )

Additional Constructors

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