luminarycloud.params.simulation.adaptive_mesh_refinement

Classes

ActiveRegion

Region(s) within which the mesh is adapted at full resolution. Outside of these regions the mesh is coarsened with increasing distance from the region.

BoundaryLayerProfile

Boundary layer meshing parameters to apply to adapted meshes.

Package Contents

class ActiveRegion

Region(s) within which the mesh is adapted at full resolution. Outside of these regions the mesh is coarsened with increasing distance from the region.

annular_cylinder: luminarycloud.params.geometry.shapes.AnnularCylinder | None = None

Cylinder with a hole along the axis.

cube: luminarycloud.params.geometry.shapes.Cube | None = None

Coordinate-aligned box.

cylinder: luminarycloud.params.geometry.shapes.Cylinder | None = None

Cylinder shape.

error_weight: luminarycloud.types.LcFloat = 1.0

Error weighting from the active region at Max Distance. Local error weighting is 1.0 inside the region and decreases to Error Weight at the Max Distance.

max_distance: luminarycloud.types.LcFloat = 0.0

Distance from the active regions at which to apply the full error factor.

oriented_cube: luminarycloud.params.geometry.shapes.OrientedCube | None = None

Box oriented along arbitrary axes.

sphere: luminarycloud.params.geometry.shapes.Sphere | None = None

Sphere shape.

sphere_shell: luminarycloud.params.geometry.shapes.SphereShell | None = None

Spherical shell shape.

class BoundaryLayerProfile

Boundary layer meshing parameters to apply to adapted meshes.

growth_rate: luminarycloud.types.LcFloat = 1.2

Ratio of size between 2 successive boundary mesh layers.

initial_size: luminarycloud.types.LcFloat = 1e-06

Size of the mesh layer nearest the boundary surface in meters.

n_layers: int = 40

Maximum number of prism layers within a boundary layer mesh.

surfaces: list[str] = []