46 void Foam::patchFluxToFace::applyToSet
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),
116 fieldName_(dict.
lookup(
"field")),
117 patchName_(dict.
lookup(
"patch")),
130 void Foam::patchFluxToFace::applyToSet
160 fieldDict.subDict(
"boundaryField").subDict(patchName_),
164 applyToSet(action, patchFluxField,
set);
169 <<
"Cannot read flux field " << fieldName_
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
#define forAll(list, i)
Loop across all elements in list.
bool headerOk()
Read header (uses typeGlobalFile to find file) and check.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Templated form of IOobject providing type information for file reading and header type checking...
Ostream & endl(Ostream &os)
Add newline and flush stream.
A simple wrapper around bool so that it can be read as a word: true/false, on/off, yes/no, y/n, t/f, or none/any.
const Time & time() const
Return the top-level database.
IOobject fieldObject(fieldNames[var2field[nVar]], runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::NO_WRITE)
fileName filePath() const
Return the path for the file for this Type.
Macros for easy insertion into run-time selection tables.
Base class of a source for a topoSet.
static word timeName(const scalar, const int precision=curPrecision_)
Return time name of given scalar time.
A class for handling words, derived from string.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
setAction
Enumeration defining the valid actions.
patchFluxToFace(const polyMesh &mesh, const word &fieldName, const word &patchName, const bool inflow)
Construct from components.
Read field as dictionary (without mesh).
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
General set of labels of mesh quantity (points, cells, faces).
label size() const
Return the number of elements in the UPtrList.
#define WarningInFunction
Report a warning using Foam::Warning.
virtual ~patchFluxToFace()
Destructor.
Mesh consisting of general polyhedral cells.
const word & headerClassName() const
Return name of the class name read from header.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.