|
NeoN
A framework for CFD software
|
Carries named field references for context-aware boundary conditions. More...
#include <boundaryContext.hpp>
Public Member Functions | |
| void | insert (std::string name, const VolumeField< scalar > &f) |
| void | insert (std::string name, const VolumeField< Vec3 > &f) |
| void | insert (std::string name, const VolumeField< Tensor > &f) |
| void | insert (std::string name, const SurfaceField< scalar > &f) |
| const VolumeField< scalar > & | scalarFieldPtr (const std::string &name) const |
| const VolumeField< Vec3 > & | vectorFieldPtr (const std::string &name) const |
| const VolumeField< Tensor > & | tensorFieldPtr (const std::string &name) const |
| const SurfaceField< scalar > & | surfaceScalarField (const std::string &name) const |
| bool | hasScalar (const std::string &name) const noexcept |
| bool | hasVector (const std::string &name) const noexcept |
| bool | hasTensor (const std::string &name) const noexcept |
| bool | hasSurfaceScalar (const std::string &name) const noexcept |
Carries named field references for context-aware boundary conditions.
Boundary conditions that need auxiliary fields (U, nu, nearWallDist, omega, k …) look up what they need by name instead of accepting a fixed argument list. Volume fields cover wall functions; the surface-scalar slot carries the face flux phi consumed by flux-dependent BCs such as inletOutlet. All fields are stored as non-owning const pointers; the caller is responsible for ensuring the lifetime of the referenced fields exceeds the context.
Definition at line 35 of file boundaryContext.hpp.
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
| void NeoN::finiteVolume::cellCentred::BoundaryContext::insert | ( | std::string | name, |
| const SurfaceField< scalar > & | f | ||
| ) |
| void NeoN::finiteVolume::cellCentred::BoundaryContext::insert | ( | std::string | name, |
| const VolumeField< scalar > & | f | ||
| ) |
| void NeoN::finiteVolume::cellCentred::BoundaryContext::insert | ( | std::string | name, |
| const VolumeField< Tensor > & | f | ||
| ) |
| void NeoN::finiteVolume::cellCentred::BoundaryContext::insert | ( | std::string | name, |
| const VolumeField< Vec3 > & | f | ||
| ) |
| const VolumeField< scalar > & NeoN::finiteVolume::cellCentred::BoundaryContext::scalarFieldPtr | ( | const std::string & | name | ) | const |
| const SurfaceField< scalar > & NeoN::finiteVolume::cellCentred::BoundaryContext::surfaceScalarField | ( | const std::string & | name | ) | const |
| const VolumeField< Tensor > & NeoN::finiteVolume::cellCentred::BoundaryContext::tensorFieldPtr | ( | const std::string & | name | ) | const |
| const VolumeField< Vec3 > & NeoN::finiteVolume::cellCentred::BoundaryContext::vectorFieldPtr | ( | const std::string & | name | ) | const |