The Physics Engine specialized to 2+1 dimensions with a Spacetime metric.

Hierarchy (view full)

Constructors

Accessors

  • get speedOfLight(): T
  • The speed of light. For dimensionless simulations this will default to 1. For S.I. Units, the speed of light may be set.

    Returns T

  • set speedOfLight(speedOfLight): void
  • Parameters

    • speedOfLight: T

    Returns void

Methods

  • Adds a body to the system. The state variables of the body will become part of the state vector of the system. The state variables of the body will be updated each time the system is advanced in time.

    Parameters

    • body: ForceBody<Spacetime2>

      The body to be added to the system

    Returns void

  • Adds a geometric constraint to the system. Geometric constraints are applied after the force and torques have been computed and before drift forces and torques.

    Parameters

    • geometry: GeometricConstraint<Spacetime2>

      The geometric constraint to be added to the system.

    Returns void

  • Adds a force law that is designed to compensate for numerical drift in the system. A drift law is usually small and may take the form of a spring and/or damping force. The drift laws are applied after any geometric constraints have been applied.

    Parameters

    Returns void

  • Advances the Physics model by the specified time interval, Δt * uomTime.

    Parameters

    • Δt: number

      The time interval.

    • Optional uomTime: Unit

      The optional unit of measure for the time interval.

    Returns void

  • Updates the state vector of the simulation from the states of the bodies in the system. It is necessary to call this method after an intervention which changes the state of a body in the system.

    Returns void

Generated using TypeDoc