Required
d| Type: | domain_module.Domain |
| Description: | The mesh's domain. |
LayeredModel, which is here wrapped inside a MeshingProtocol. In
addition to returning the constructed mesh, the supplied LayeredModel
will also be returned, after "realization". This is useful, for instance,
to then interpolate material parameters onto the mesh.def create_layered_mesh(
d: domain_module.Domain,
mp: MeshingProtocol,
mr: MeshResolution,
timer: Timer | None = None,
verbosity: int = 1,
) -> tuple[domain_module.Domain, UnstructuredMesh, LayeredModel]: ...| Type: | domain_module.Domain |
| Description: | The mesh's domain. |
| Type: | MeshingProtocol |
| Description: | The meshing protocol. |
| Type: | MeshResolution |
| Description: | The desired mesh resolution. |
| Type: | Timer | None |
| Default value: | None |
| Description: | Execution timer. |
| Type: | int |
| Default value: | 1 |
| Description: | The verbosity level. Set to > 1 for more verbose output. |
tuple[domain_module.Domain, UnstructuredMesh, LayeredModel]mesh_from_domain that creates a
block-wise mesh from a layered model.fluid or block, as those
are now fully defined block-wise, and not element-wise.def future_mesh_from_domain(
domain: Domain,
model: Material | LayeredModel | MeshingProtocol,
mesh_resolution: MeshResolution,
model_override: Material | str | None = None,
execution_policy: bindings.ExecutionPolicy = salvus._core.lib.salvus_core_python_bindings.ExecutionPolicy,
timer: Timer | None = None,
verbosity: int = 1,
) -> Mesh: ...| Type: | Domain |
| Description: | The mesh's domain. |
| Type: | Material | LayeredModel | MeshingProtocol |
| Description: | Either a single Material, a LayeredModel, or a MeshingProtocol. If either a Material or a LayeredModel is passed, it will internally be wrapped in a default MeshingProtocol. For complete control over the meshing algorithms and associated policies, pass a MeshingProtocol object that contains the LayeredModel you would like to mesh. |
| Type: | MeshResolution |
| Description: | The desired mesh resolution. |
| Type: | Material | str | None |
| Default value: | None |
| Description: | A single material instance that will override the size functions that the mesh has been built with. Alternatively the string "skip_model_interpolation" can be passed here which will return a mesh with no model parameters attached. |
| Type: | bindings.ExecutionPolicy |
| Default value: | <salvus._core.lib.salvus_core_python_bindings.ExecutionPolicy object at 0x7c032e5b5970> |
| Description: | Execution policy governing the maximum allowable parallelism of child routines. |
| Type: | Timer | None |
| Default value: | None |
| Description: | Execution timer. |
| Type: | int |
| Default value: | 1 |
| Description: | The verbosity level. Set it to > 1 to get more detailed timing information. |
Meshdef interpolate_model(
mesh_resolution: MeshResolution,
mesh: UnstructuredMesh,
models: list[Material],
execution_policy: bindings.ExecutionPolicy = salvus._core.lib.salvus_core_python_bindings.ExecutionPolicy,
) -> UnstructuredMesh: ...| Type: | MeshResolution |
| Description: | An object containing mesh resolution and precision details. |
| Type: | UnstructuredMesh |
| Description: | The mesh object to which the material parameters will be interpolated. |
| Type: | list[Material] |
| Description: | A list of material models, where each model corresponds to a block in the mesh. |
| Type: | bindings.ExecutionPolicy |
| Default value: | <salvus._core.lib.salvus_core_python_bindings.ExecutionPolicy object at 0x7c032c732030> |
| Description: | Execution policy governing the maximum allowable parallelism of child routines. |
UnstructuredMeshdef mesh_from_domain(
domain: Domain,
model: Material | LayeredModel | MeshingProtocol,
mesh_resolution: MeshResolution,
model_override: Material | str | None = None,
execution_policy: bindings.ExecutionPolicy = salvus._core.lib.salvus_core_python_bindings.ExecutionPolicy,
timer: Timer | None = None,
verbosity: int = 1,
) -> UnstructuredMesh: ...| Type: | Domain |
| Description: | The mesh's domain. |
| Type: | Material | LayeredModel | MeshingProtocol |
| Description: | Either a single Material, a LayeredModel, or a MeshingProtocol. If either a Material or a LayeredModel is passed, it will internally be wrapped in a default MeshingProtocol. For complete control over the meshing algorithms and associated policies, pass a MeshingProtocol object that contains the LayeredModel you would like to mesh. |
| Type: | MeshResolution |
| Description: | The desired mesh resolution. |
| Type: | Material | str | None |
| Default value: | None |
| Description: | A single material instance that will override the size functions that the mesh has been built with. Alternatively the string "skip_model_interpolation" can be passed here which will return a mesh with no model parameters attached. |
| Type: | bindings.ExecutionPolicy |
| Default value: | <salvus._core.lib.salvus_core_python_bindings.ExecutionPolicy object at 0x7c032d80b5b0> |
| Description: | Execution policy governing the maximum allowable parallelism of child routines. |
| Type: | Timer | None |
| Default value: | None |
| Description: | Execution timer. |
| Type: | int |
| Default value: | 1 |
| Description: | The verbosity level. Set it to > 1 to get more detailed timing information. |