30 #include "surfaceInterpolate.H" 50 writeFile(
mesh,
name, typeName, coeffs),
57 faceZoneName_(
"unknown-faceZone"),
82 label numFaces = fZone.
size();
94 const label meshFacei = fZone[i];
95 const label flipSign = (fZone.flipMap()[i] ? -1 : 1);
99 label facePatchId = -1;
107 if (isA<emptyPolyPatch>(
pp))
112 const auto* cpp = isA<coupledPolyPatch>(
pp);
114 if (cpp && !cpp->owner())
labelList faceId_
Local list of face IDs.
errorManipArg< error, int > exit(error &err, const int errNo=1)
void resize(const label len)
Adjust allocated size of list.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
word faceZoneName_
Name of the faceZone at the heat exchanger inlet.
virtual void initialise()
Initialise data members of the model.
void resize_nocopy(const label len)
Adjust allocated size of list without necessarily.
labelList faceSign_
List of +1/-1 representing face flip map (1 use as is, -1 negate)
bool isInternalFace(const label faceIndex) const noexcept
Return true if given face label is internal to the mesh.
Base class for heat exchanger models to handle various characteristics for the heatExchangerSource fv...
#define forAll(list, i)
Loop across all elements in list.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
label findZoneID(const word &zoneName) const
Find zone index by name, return -1 if not found.
const polyBoundaryMesh & boundaryMesh() const noexcept
Return boundary mesh.
A class for handling words, derived from Foam::string.
label size() const noexcept
The number of entries in the list.
const word & name_
Reference to the name of the fvOption source.
heatExchangerModel(const fvMesh &mesh, const word &name, const dictionary &coeffs)
Construct from components.
label whichPatch(const label meshFacei) const
Return patch index for a given mesh face index. Uses binary search.
const fvMesh & mesh_
Reference to the mesh.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
const faceZoneMesh & faceZones() const noexcept
Return face zone mesh.
defineTypeNameAndDebug(combustionModel, 0)
labelList facePatchId_
Local list of patch IDs per face.
Mesh data needed to do the Finite Volume discretisation.
wordList names() const
A list of the zone names.
uindirectPrimitivePatch pp(UIndirectList< face >(mesh.faces(), faceLabels), mesh.points())