46 void Foam::patchFluxToFace::applyToSet
48 const topoSetSource::setAction action,
57 Info<<
" Adding all " << fieldName_
58 << (inflow_ ?
" inflow" :
" outflow") <<
" faces" <<
endl;
64 (inflow_ && patchFluxField[facei] < 0)
65 || (!inflow_ && patchFluxField[facei] >= 0)
68 set.insert(patch.start() + facei);
74 Info<<
" Removing all " << fieldName_
75 << (inflow_ ?
" inflow" :
" outflow") <<
" faces" <<
endl;
81 (inflow_ && patchFluxField[facei] < 0)
82 || (!inflow_ && patchFluxField[facei] >= 0)
85 set.erase(patch.start() + facei);
97 const word& fieldName,
98 const word& patchName,
103 fieldName_(fieldName),
104 patchName_(patchName),
111 const polyMesh&
mesh,
112 const dictionary&
dict
130 void Foam::patchFluxToFace::applyToSet
151 const fieldDictionary fieldDict
160 fieldDict.subDict(
"boundaryField").subDict(patchName_),
164 applyToSet(action, patchFluxField, set);
169 <<
"Cannot read flux field " << fieldName_
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
fileName filePath(const bool global) const
Return complete path + object name if the file exists.
bool headerOk()
Read header of local object without type-checking.
const word & headerClassName() const
Return name of the class name read from header.
const word & name() const
Return const reference to name.
const Time & time() const
Return the top-level database.
patchFluxToFace(const polyMesh &mesh, const word &fieldName, const word &patchName, const bool inflow)
Construct from components.
virtual ~patchFluxToFace()
Destructor.
const polyBoundaryMesh & boundary() const
Return boundary mesh.
setAction
Enumeration defining the valid actions.
const polyMesh & mesh() const
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
IOobject fieldObject(fieldNames[var2field[nVar]], runTime.name(), mesh, IOobject::MUST_READ, IOobject::NO_WRITE)
volScalarField scalarField(fieldObject, mesh)
#define WarningInFunction
Report a warning using Foam::Warning.
const unitSet & lookup(const word &unitName)
Lookup and return the named unit from the table.
addToRunTimeSelectionTable(polyPatch, mergedCyclicPolyPatch, word)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
defineTypeNameAndDebug(atmosphericBoundaryLayer, 0)
faceListList boundary(nPatches)