fdtdx.RealCoordinateConstraint

dataclass

RealCoordinateConstraint(
    *,
    object: SimulationObject,
    axes: tuple[int, ...],
    sides: tuple[Literal["+", "-"], ...],
    coordinates: tuple[float, ...]
)

Constrains an object's position to specific real-space coordinates.

Forces specific sides of an object to align with given real-space coordinates. Used for precise positioning in physical units.

Attributes:
  • object (SimulationObject) –

    The object to position

  • axes (tuple[int, ...]) –

    Which axes to constrain

  • sides (tuple[Literal['+', '-'], ...]) –

    Which side of each axis ('+' or '-')

  • coordinates (tuple[float, ...]) –

    Real-space coordinates to align with