40 void Foam::sampledSurface::makeSf()
const
46 <<
"face area vectors already exist"
56 values[facei] = theFaces[facei].area(
points());
61 void Foam::sampledSurface::makeMagSf()
const
67 <<
"mag face areas already exist"
77 values[facei] = theFaces[facei].mag(
points());
82 void Foam::sampledSurface::makeCf()
const
88 <<
"face centres already exist"
98 values[facei] = theFaces[facei].centre(
points());
127 Info<<
"Selecting sampledType " << sampleType <<
endl;
130 wordConstructorTable::iterator cstrIter =
131 wordConstructorTablePtr_->find(sampleType);
133 if (cstrIter == wordConstructorTablePtr_->end())
136 <<
"Unknown sample type "
137 << sampleType <<
nl <<
nl
138 <<
"Valid sample types : " <<
endl
139 << wordConstructorTablePtr_->sortedToc()
175 interpolate_(
dict.lookupOrDefault(
"interpolate", false)),
181 dict.readIfPresent(
"name", name_);
232 area_ =
sum(magSf());
298 res[facei] = field[facei];
309 project(tRes.
ref(), field);
318 project(tRes.
ref(), field);
336 project(tRes.
ref(), field);
352 os.
check(
"Ostream& operator<<(Ostream&, const sampledSurface&");
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
Generic GeometricField class.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by any number of values (e....
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
Mesh consisting of general polyhedral cells.
An abstract class for surfaces with sampling.
virtual const faceList & faces() const =0
Faces of surface.
static autoPtr< sampledSurface > New(const word &name, const polyMesh &, const dictionary &)
Return a reference to the selected surface.
virtual tmp< scalarField > sample(const volScalarField &) const =0
Sample field on surface.
tmp< Field< vector > > project(const Field< symmTensor > &) const
Project field onto surface.
virtual void clearGeom() const
sampledSurface(const word &name, const polyMesh &, const bool interpolate=false)
Construct from name, mesh.
virtual const scalarField & magSf() const
Return face area magnitudes.
virtual ~sampledSurface()
Destructor.
virtual void print(Ostream &) const
Write.
virtual const vectorField & Cf() const
Return face centres as vectorField.
virtual const pointField & points() const =0
Points of surface.
scalar area() const
The total surface area.
virtual const vectorField & Sf() const
Return face area vectors.
A class for managing temporary objects.
T & ref() const
Return non-const reference or generate a fatal error.
A class for handling words, derived from string.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.name(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
static tmp< SurfaceField< Type > > interpolate(const VolField< Type > &tvf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
errorManipArg< error, int > exit(error &err, const int errNo=1)
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &df)
void deleteDemandDrivenData(DataType *&dataPtr)
errorManip< error > abort(error &err)
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
void reduce(const List< UPstream::commsStruct > &comms, T &Value, const BinaryOp &bop, const int tag, const label comm)
defineTypeNameAndDebug(combustionModel, 0)
Field< vector > vectorField
Specialisation of Field<T> for vector.
Ostream & operator<<(Ostream &os, const fvConstraints &constraints)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.