Initial Conditions

Initial conditions object definitions.

Mechanical

class onscale.initial_conditions.Displacement(x: float | str | Var | Function, y: float | str | Var | Function, z: float | str | Var | Function, coord_system: CoordinateSystem | None = None, alias: str | None = None)

Displacement initial condition

Parameters:
  • x – initial displacement in the x direction in the global unit system

  • y – initial displacement in the y direction in the global unit system

  • z – initial displacement in the z direction in the global unit system

  • coord_system – coordinate system in which this displacement is defined

static from_dict(data: Dict[str, Any], sim: Simulation | None = None) Node

Construct this node from serialized dictionary data

to_json() str

Convert this node into JSON representation

property uuid: str

Get the UUID associated with this node.

Thermal

class onscale.initial_conditions.Temperature(magnitude: float | str | Var | Function | None = None, alias: str | None = None, amplitude: float | str | Var | Function | None = None)

Temperature initial condition

Parameters:

magnitude – Temperature in global unit system.

static from_dict(data: Dict[str, Any], sim: Simulation | None = None) Node

Construct this node from serialized dictionary data

to_json() str

Convert this node into JSON representation

property uuid: str

Get the UUID associated with this node.