pde_opt.numerics.domains

This module contains the Domain class, which is used to set up a simulation domain for the model.

Classes

Domain(points, box, units[, geometry])

Sets up a simulation domain for the model.

class pde_opt.numerics.domains.Domain(points: Tuple[int, ...], box: Tuple[Tuple[float, float], ...], units: str, geometry: Shape | None = None)[source]

Sets up a simulation domain for the model.

The following information is stored in a Domain: – points[i] is the number of collocation points in the i’th dimension – dx[i] is the spacing between each collocation point in the i’th dimension – box[i] is the bounds of the simulation box in the i’th dimension – units are the length units these. values are stored in

points: Tuple[int, ...]
box: Tuple[Tuple[float, float], ...]
units: str
geometry: Shape | None = None
axes() Tuple[jax.Array, ...][source]
fft_axes() Tuple[jax.Array, ...][source]
rfft_axes() Tuple[jax.Array, ...][source]
mesh() Tuple[jax.Array, ...][source]
fft_mesh() Tuple[jax.Array, ...][source]
rfft_mesh() Tuple[jax.Array, ...][source]
__init__(points: Tuple[int, ...], box: Tuple[Tuple[float, float], ...], units: str, geometry: Shape | None = None) None