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.

PerPhysicsAdaptation

Per-physics adaptation overrides. Each entry overrides the global adaptation config for the named physics.

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.

id: str = ''

ID of the active region.

max_distance: luminarycloud.types.LcFloat = 0.0

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

name: str = ''

User-defined name for the active region.

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] = []
class PerPhysicsAdaptation

Per-physics adaptation overrides. Each entry overrides the global adaptation config for the named physics.

physics_identifier: luminarycloud._proto.client.entity_pb2.EntityIdentifier

Unique identifier for a physics entity.

physics_target_cv_millions: int = 0

Per-physics mesh size in millions of control volumes, overriding the global target for this physics.