38 const word& entryName,
42 patchFunction1Base(pp, entryName, faceValues),
51 const word& entryName,
52 const dictionary&
dict,
56 patchFunction1Base(pp, entryName,
dict, faceValues),
57 coordSys_(pp.boundaryMesh().
mesh().thisDb(),
dict)
64 PatchFunction1<Type>(rhs, rhs.
patch())
71 const PatchFunction1<Type>& rhs,
75 patchFunction1Base(pp, rhs.
name(), rhs.faceValues()),
76 coordSys_(rhs.coordSys_)
85 return !coordSys_.active();
116 if (!coordSys_.active())
121 return coordSys_.coordSys()().localPosition(globalPos);
131 if (!coordSys_.active())
139 ? this->coordSys_.transform(this->patch_.faceCentres(), tfld())
140 : this->coordSys_.transform(this->patch_.localPoints(), tfld())
154 if (!coordSys_.active())
159 if (this->faceValues())
161 return this->coordSys_.transform(this->patch_.faceCentres(),
fld);
165 return this->coordSys_.transform(this->patch_.localPoints(),
fld);
187 coordSys_.writeEntry(
os);
Info<< nl<< "Wrote faMesh in vtk format: "<< writer.output().name()<< nl;}{ vtk::lineWriter writer(aMesh.points(), aMesh.edges(), fileName(aMesh.mesh().time().globalPath()/"finiteArea-edges"));writer.writeGeometry();writer.beginCellData(4);writer.writeProcIDs();{ Field< scalar > fld(faMeshTools::flattenEdgeField(aMesh.magLe(), true))
Abstract base class to hold the Field mapping addressing and weights.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
virtual const fileName & name() const
Read/write access to the name of the stream.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
virtual tmp< Field< Type > > integrate(const scalar x1, const scalar x2) const
Integrate between two (scalar) values.
virtual bool uniform() const =0
Is value uniform (i.e. independent of coordinate)
virtual void rmap(const PatchFunction1< Type > &rhs, const labelList &addr)
Reverse map the given PatchFunction1 onto this PatchFunction1.
virtual void autoMap(const FieldMapper &mapper)
Map (and resize as needed) from self given a mapping object.
virtual tmp< pointField > localPosition(const pointField &globalPos) const
Helper: optionally convert coordinates to local coordinates.
A class for managing temporary objects.
void clear() const noexcept
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
OBJstream os(runTime.globalPath()/outputName)
const std::string patch
OpenFOAM patch number as a std::string.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.