39 const word& entryName,
40 const objectRegistry* obrPtr
43 function1Base(entryName, obrPtr)
50 const word& entryName,
51 const dictionary&
dict,
52 const objectRegistry* obrPtr
55 function1Base(entryName,
dict, obrPtr)
107template<
class Function1Type>
115 auto&
fld = tfld.ref();
119 fld[i] = Function1Type::value(
x[i]);
125template<
class Function1Type>
128 const word& entryName,
133 Function1Type(entryName,
dict, obrPtr)
137template<
class Function1Type>
148template<
class Function1Type>
157 auto&
fld = tfld.ref();
161 fld[i] = Function1Type::integrate(x1[i], x2[i]);
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))
virtual tmp< Field< Type > > integrate(const scalarField &x1, const scalarField &x2) const
Integrate between two (scalar) values.
virtual tmp< Function1< Type > > clone() const
Construct and return a clone.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
virtual void writeEntries(Ostream &os) const
Write coefficient entries in dictionary format.
virtual Type integrate(const scalar x1, const scalar x2) const
Integrate between two (scalar) values.
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,...
virtual Ostream & writeKeyword(const keyType &kw)
Write the keyword followed by an appropriate indentation.
void size(const label n)
Older name for setAddressableSize.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Registry of regIOobjects.
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
OBJstream os(runTime.globalPath()/outputName)
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
#define forAll(list, i)
Loop across all elements in list.