magrittetorch.model.geometry.boundary

Contains details about the boundary of the model.

enum magrittetorch.model.geometry.boundary.BoundaryCondition(value)

Type of boundary condition

Valid values are as follows:

Zero: int = <BoundaryCondition.Zero: 0>
Thermal: int = <BoundaryCondition.Thermal: 1>
CMB: int = <BoundaryCondition.CMB: 2>
enum magrittetorch.model.geometry.boundary.BoundaryType(value)

Geometry of the boundary

Valid values are as follows:

Sphere1D: int = <BoundaryType.Sphere1D: 0>
Sphere3D: int = <BoundaryType.Sphere3D: 1>
AxisAlignedCube: int = <BoundaryType.AxisAlignedCube: 2>
class magrittetorch.model.geometry.boundary.Boundary(params: Parameters, dataCollection: DataCollection)
boundary2point: StorageTensor

maps boundary index in[0, Parameters.nboundary-1] to point index in[0, Parameters.npoints-1]; dtype= Types.IndexInfo, dims=[Parameters.nboundary], unit = units.dimensionless_unscaled

boundaryType: EnumParameter[type[BoundaryType]]

Contains the BoundaryType of the model; dtype= EnumParameter, dims=[BoundaryType], unit = units.dimensionless_unscaled

boundary_condition: StorageTensor

contains the BoundaryCondition for each boundary point; dtype= Types.Enum, dims=[Parameters.nboundary], unit = units.dimensionless_unscaled

boundary_temperature: StorageTensor

contains the boundary temperature corresponding to incoming photons; dtype= Types.GeometryInfo, dims=[Parameters.nboundary], unit = units.K

center: InferredTensor

Contains the center of the model, used for computing which part of the boundary is necessary in each direction; dtype= Types.GeometryInfo, dims=[3], unit = units.m

is_boundary_point: InferredTensor

contains whether or not the given point is a boundary point; dtype= Types.Bool, dims=[Parameters.npoints], unit = units.dimensionless_unscaled

point2boundary: InferredTensor

maps point index in[0, Parameters.npoints-1] to boundary index in[0, Parameters.nboundary-1]; dtype= Types.IndexInfo, dims=[Parameters.npoints], unit = units.dimensionless_unscaled