fdtdx.SizeConstraint#

class fdtdx.SizeConstraint(*, object, other_object, axes, other_axes, proportions, offsets, grid_offsets)[source]#

Bases: object

Defines a size relationship between two simulation objects.

A constraint that sets the size of one object relative to another, with optional proportions and offsets. Used to specify how objects should be sized relative to each other in the simulation.

Quick Reference#

Attributes

Methods

Attributes#

SizeConstraint.object: str#

The “child” object whose size is being adjusted

SizeConstraint.other_object: str#

The “parent” object that serves as reference

SizeConstraint.axes: tuple[int, ...]#

Which axes of the child to constrain

SizeConstraint.other_axes: tuple[int, ...]#

Which axes of the parent to reference

SizeConstraint.proportions: tuple[float, ...]#

Size multipliers relative to parent

SizeConstraint.offsets: tuple[float, ...]#

Additional real-space size offsets

SizeConstraint.grid_offsets: tuple[int, ...]#

Additional grid-space size offsets

Methods#

If you find any errors in the documentation, please report them in the Github Issues!