Go to the documentation of this file.
57 <<
"face area vectors already exist"
67 values[faceI] = theFaces[faceI].normal(
points());
78 <<
"mag face areas already exist"
88 values[faceI] = theFaces[faceI].mag(
points());
99 <<
"face centres already exist"
109 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()
232 area_ =
sum(magSf());
266 return tmp<sphericalTensorField>(NULL);
276 return tmp<symmTensorField>(NULL);
286 return tmp<tensorField>(NULL);
298 res[faceI] = field[faceI];
309 project(tRes(), field);
318 project(tRes(), field);
327 project(tRes(), field);
336 project(tRes(), field);
352 os.
check(
"Ostream& operator<<(Ostream&, const sampledSurface&");
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
virtual const vectorField & Sf() const
Return face area vectors.
void makeCf() const
Make Cf.
A class for handling words, derived from string.
#define forAll(list, i)
Loop across all elements in list.
A class for managing temporary objects.
void makeSf() const
Make Sf.
bool readIfPresent(const word &, T &, bool recursive=false, bool patternMatch=true) const
Find an entry if present, and assign to T.
sampledSurface(const word &name, const polyMesh &, const bool interpolate=false)
Construct from name, mesh.
Template functions to aid in the implementation of demand driven data.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
GeometricField< tensor, fvsPatchField, surfaceMesh > surfaceTensorField
virtual tmp< scalarField > sample(const volScalarField &) const =0
Sample field on surface.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
static autoPtr< sampledSurface > New(const word &name, const polyMesh &, const dictionary &)
Return a reference to the selected surface.
scalar area() const
The total surface area.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
Ostream & endl(Ostream &os)
Add newline and flush stream.
void project(Field< ReturnType > &, const Field< Type > &) const
Project field onto surface.
Mesh consisting of general polyhedral cells.
Field< vector > vectorField
Specialisation of Field<T> for vector.
void deleteDemandDrivenData(DataPtr &dataPtr)
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
void reduce(const List< UPstream::commsStruct > &comms, T &Value, const BinaryOp &bop, const int tag, const label comm)
bool interpolate(const vector &p1, const vector &p2, const vector &o, vector &n, scalar l)
Pre-declare SubField and related Field type.
virtual const vectorField & Cf() const
Return face centres as vectorField.
An abstract class for surfaces with sampling.
virtual const scalarField & magSf() const
Return face area magnitudes.
virtual void print(Ostream &) const
Write.
Ostream & operator<<(Ostream &, const edgeMesh &)
virtual bool check(const char *operation) const
Check IOstream status for given operation.
A list of keyword definitions, which are a keyword followed by any number of values (e....
errorManip< error > abort(error &err)
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.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
vectorField * SfPtr_
Face area vectors.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
virtual ~sampledSurface()
Destructor.
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &df)
virtual void clearGeom() const
scalarField * magSfPtr_
Mag face area vectors.
GeometricField< sphericalTensor, fvsPatchField, surfaceMesh > surfaceSphericalTensorField
void size(const label)
Override size to be inconsistent with allocated storage.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
GeometricField< symmTensor, fvsPatchField, surfaceMesh > surfaceSymmTensorField
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
scalar area_
Total surface area.
Generic GeometricField class.
defineTypeNameAndDebug(combustionModel, 0)
vectorField * CfPtr_
Face centres.
word name(const complex &)
Return a string representation of a complex.
void makeMagSf() const
Make magSf.