inject#

Boundary-condition injection into a DomainMesh.

Attributes#

Functions#

inject_boundaries(...)

Return a new DomainMesh with synthesized boundaries injected.

Module Contents#

physicsnemo_curator.domains.mesh.boundaries.inject.inject_boundaries(
domain: physicsnemo.mesh.domain_mesh.DomainMesh,
generator: physicsnemo_curator.domains.mesh.boundaries.generators.BoundaryGenerator,
) physicsnemo.mesh.domain_mesh.DomainMesh#

Return a new DomainMesh with synthesized boundaries injected.

The existing interior and global_data are preserved, and the generator’s synthesized boundaries are merged alongside the existing boundaries (e.g. the geometry vehicle surface).

Parameters:
  • domain (DomainMesh) – The input domain mesh.

  • generator (BoundaryGenerator) – Strategy producing {name: Mesh} outer boundaries.

Returns:

New domain mesh with original + synthesized boundaries.

Return type:

DomainMesh

physicsnemo_curator.domains.mesh.boundaries.inject.logger#