Set of locations to sample at patches. More...
Public Member Functions | |
TypeName ("patchProbes") | |
patchProbes (const word &name, const Time &time, const dictionary &dict, const bool loadFromFiles=false, const bool readFields=true) | |
virtual | ~patchProbes ()=default |
virtual bool | write () |
virtual bool | read (const dictionary &) |
template<class Type > | |
Foam::tmp< Foam::Field< Type > > | sample (const GeometricField< Type, fvPatchField, volMesh > &vField) const |
template<class Type > | |
Foam::tmp< Foam::Field< Type > > | sample (const word &fieldName) const |
template<class Type > | |
Foam::tmp< Foam::Field< Type > > | sample (const GeometricField< Type, fvsPatchField, surfaceMesh > &sField) const |
![]() | |
TypeName ("probes") | |
probes (const word &name, const Time &runTime, const dictionary &dict, const bool loadFromFiles=false, const bool readFields=true) | |
virtual | ~probes ()=default |
virtual const wordRes & | fieldNames () const |
virtual const pointField & | probeLocations () const |
virtual const point & | probe (const label i) const |
const labelList & | elements () const |
virtual bool | execute () |
virtual void | updateMesh (const mapPolyMesh &) |
virtual void | movePoints (const polyMesh &) |
virtual void | readUpdate (const polyMesh::readUpdateState state) |
template<class Type > | |
tmp< Field< Type > > | sample (const GeometricField< Type, fvPatchField, volMesh > &) const |
template<class Type > | |
tmp< Field< Type > > | sample (const word &fieldName) const |
template<class Type > | |
tmp< Field< Type > > | sampleSurfaceFields (const word &fieldName) const |
template<class Type > | |
tmp< Field< Type > > | sample (const GeometricField< Type, fvsPatchField, surfaceMesh > &) const |
template<class Type > | |
Foam::tmp< Foam::Field< Type > > | sample (const GeometricField< Type, fvPatchField, volMesh > &vField) const |
template<class Type > | |
Foam::tmp< Foam::Field< Type > > | sample (const word &fieldName) const |
template<class Type > | |
Foam::tmp< Foam::Field< Type > > | sample (const GeometricField< Type, fvsPatchField, surfaceMesh > &sField) const |
template<class Type > | |
Foam::tmp< Foam::Field< Type > > | sampleSurfaceFields (const word &fieldName) const |
![]() | |
stateFunctionObject (const word &name, const Time &runTime) | |
virtual | ~stateFunctionObject ()=default |
dictionary & | propertyDict () |
bool | foundProperty (const word &entryName) const |
void | clearTrigger () |
label | getTrigger () const |
bool | setTrigger (const label triggeri, bool increaseOnly=true) |
bool | getDict (const word &entryName, dictionary &dict) const |
bool | getObjectDict (const word &objectName, const word &entryName, dictionary &dict) const |
template<class Type > | |
Type | getProperty (const word &entryName, const Type &defaultValue=Type(Zero)) const |
template<class Type > | |
bool | getProperty (const word &entryName, Type &value) const |
template<class Type > | |
void | setProperty (const word &entryName, const Type &value) |
template<class Type > | |
Type | getObjectProperty (const word &objectName, const word &entryName, const Type &defaultValue=Type(Zero)) const |
template<class Type > | |
bool | getObjectProperty (const word &objectName, const word &entryName, Type &value) const |
template<class Type > | |
void | setObjectProperty (const word &objectName, const word &entryName, const Type &value) |
template<class Type > | |
void | setResult (const word &entryName, const Type &value) |
template<class Type > | |
void | setObjectResult (const word &objectName, const word &entryName, const Type &value) |
template<class Type > | |
Type | getResult (const word &entryName, const Type &defaultValue=Type(Zero)) const |
template<class Type > | |
Type | getObjectResult (const word &objectName, const word &entryName, const Type &defaultValue=Type(Zero)) const |
template<class Type > | |
bool | getObjectResult (const word &objectName, const word &entryName, Type &value) const |
word | resultType (const word &entryName) const |
word | objectResultType (const word &objectName, const word &entryName) const |
wordList | objectResultEntries () const |
wordList | objectResultEntries (const word &objectName) const |
void | writeResultEntries (Ostream &os) const |
void | writeResultEntries (const word &objectName, Ostream &os) const |
void | writeAllResultEntries (Ostream &os) const |
![]() | |
timeFunctionObject (const word &name, const Time &runTime) | |
virtual | ~timeFunctionObject ()=default |
const Time & | time () const |
objectRegistry & | storedObjects () |
const objectRegistry & | storedObjects () const |
![]() | |
declareRunTimeSelectionTable (autoPtr, functionObject, dictionary,(const word &name, const Time &runTime, const dictionary &dict),(name, runTime, dict)) | |
functionObject (const word &name, const bool withNamePrefix=defaultUseNamePrefix) | |
autoPtr< functionObject > | clone () const |
virtual | ~functionObject ()=default |
virtual const word & | type () const =0 |
const word & | name () const noexcept |
bool | useNamePrefix () const noexcept |
bool | useNamePrefix (bool on) noexcept |
virtual bool | execute (const label subIndex) |
virtual bool | end () |
virtual bool | adjustTimeStep () |
virtual bool | filesModified () const |
![]() | |
constexpr | Field () noexcept |
Field (const label len) | |
Field (const label len, const Type &val) | |
Field (const label len, const Foam::zero) | |
Field (const Foam::one, const Type &val) | |
Field (const Foam::one, Type &&val) | |
Field (const Foam::one, const Foam::zero) | |
Field (const Field< Type > &fld) | |
Field (const UList< Type > &list) | |
template<class Addr > | |
Field (const IndirectListBase< Type, Addr > &list) | |
Field (Field< Type > &&fld) | |
Field (List< Type > &&list) | |
template<int SizeMin> | |
Field (DynamicList< Type, SizeMin > &&list) | |
Field (const UList< Type > &mapF, const labelUList &mapAddressing) | |
Field (const tmp< Field< Type >> &tmapF, const labelUList &mapAddressing) | |
Field (const UList< Type > &mapF, const labelListList &mapAddressing, const scalarListList &weights) | |
Field (const tmp< Field< Type >> &tmapF, const labelListList &mapAddressing, const scalarListList &weights) | |
Field (const UList< Type > &mapF, const FieldMapper &map, const bool applyFlip=true) | |
Field (const UList< Type > &mapF, const FieldMapper &map, const Type &defaultValue, const bool applyFlip=true) | |
Field (const UList< Type > &mapF, const FieldMapper &map, const UList< Type > &defaultValues, const bool applyFlip=true) | |
Field (const tmp< Field< Type >> &tmapF, const FieldMapper &map, const bool applyFlip=true) | |
Field (const tmp< Field< Type >> &tmapF, const FieldMapper &map, const Type &defaultValue, const bool applyFlip=true) | |
Field (const tmp< Field< Type >> &tmapF, const FieldMapper &map, const UList< Type > &defaultValues, const bool applyFlip=true) | |
Field (Field< Type > &fld, bool reuse) | |
Field (const tmp< Field< Type >> &tfld) | |
Field (Istream &is) | |
Field (const word &keyword, const dictionary &dict, const label len) | |
tmp< Field< Type > > | clone () const |
void | map (const UList< Type > &mapF, const labelUList &mapAddressing) |
void | map (const tmp< Field< Type >> &tmapF, const labelUList &mapAddressing) |
void | map (const UList< Type > &mapF, const labelListList &mapAddressing, const scalarListList &weights) |
void | map (const tmp< Field< Type >> &tmapF, const labelListList &mapAddressing, const scalarListList &weights) |
void | map (const UList< Type > &mapF, const FieldMapper &map, const bool applyFlip=true) |
void | map (const tmp< Field< Type >> &tmapF, const FieldMapper &map, const bool applyFlip=true) |
void | autoMap (const FieldMapper &map, const bool applyFlip=true) |
void | rmap (const UList< Type > &mapF, const labelUList &mapAddressing) |
void | rmap (const tmp< Field< Type >> &tmapF, const labelUList &mapAddressing) |
void | rmap (const UList< Type > &mapF, const labelUList &mapAddressing, const UList< scalar > &weights) |
void | rmap (const tmp< Field< Type >> &tmapF, const labelUList &mapAddressing, const UList< scalar > &weights) |
void | negate () |
tmp< Field< cmptType > > | component (const direction) const |
void | replace (const direction, const UList< cmptType > &) |
void | replace (const direction, const tmp< Field< cmptType >> &) |
void | replace (const direction, const cmptType &) |
template<class VSForm > | |
VSForm | block (const label start) const |
tmp< Field< Type > > | T () const |
void | writeEntry (const word &keyword, Ostream &os) const |
SubField< Type > | slice (const label pos, label len=-1) |
const SubField< Type > | slice (const label pos, label len=-1) const |
SubField< Type > | slice (const labelRange &range) |
const SubField< Type > | slice (const labelRange &range) const |
void | operator= (const Field< Type > &) |
void | operator= (const tmp< Field< Type >> &) |
void | operator= (const UList< Type > &rhs) |
void | operator= (const SubField< Type > &rhs) |
template<class Addr > | |
void | operator= (const IndirectListBase< Type, Addr > &rhs) |
void | operator= (Field< Type > &&rhs) |
void | operator= (List< Type > &&rhs) |
template<int SizeMin> | |
void | operator= (DynamicList< Type, SizeMin > &&rhs) |
void | operator= (const Type &val) |
void | operator= (const Foam::zero) |
template<class Form , class Cmpt , direction nCmpt> | |
void | operator= (const VectorSpace< Form, Cmpt, nCmpt > &) |
void | operator+= (const UList< Type > &) |
void | operator+= (const tmp< Field< Type >> &) |
void | operator-= (const UList< Type > &) |
void | operator-= (const tmp< Field< Type >> &) |
void | operator*= (const UList< scalar > &) |
void | operator*= (const tmp< Field< scalar >> &) |
void | operator/= (const UList< scalar > &) |
void | operator/= (const tmp< Field< scalar >> &) |
void | operator+= (const Type &) |
void | operator-= (const Type &) |
void | operator*= (const scalar &) |
void | operator/= (const scalar &) |
template<class Type > | |
Field (const UList< Type > &mapF, const labelUList &mapAddressing) | |
template<class Type > | |
Field (const tmp< Field< Type >> &tmapF, const labelUList &mapAddressing) | |
template<class Type > | |
Field (const UList< Type > &mapF, const labelListList &mapAddressing, const scalarListList &mapWeights) | |
template<class Type > | |
Field (const tmp< Field< Type >> &tmapF, const labelListList &mapAddressing, const scalarListList &mapWeights) | |
template<class Type > | |
Field (const UList< Type > &mapF, const FieldMapper &mapper, const bool applyFlip) | |
template<class Type > | |
Field (const UList< Type > &mapF, const FieldMapper &mapper, const Type &defaultValue, const bool applyFlip) | |
template<class Type > | |
Field (const UList< Type > &mapF, const FieldMapper &mapper, const UList< Type > &defaultValues, const bool applyFlip) | |
template<class Type > | |
Field (const tmp< Field< Type >> &tmapF, const FieldMapper &mapper, const bool applyFlip) | |
template<class Type > | |
Field (const tmp< Field< Type >> &tmapF, const FieldMapper &mapper, const Type &defaultValue, const bool applyFlip) | |
template<class Type > | |
Field (const tmp< Field< Type >> &tmapF, const FieldMapper &mapper, const UList< Type > &defaultValues, const bool applyFlip) | |
template<class Type > | |
Field (const word &keyword, const dictionary &dict, const label len) | |
template<class Type > | |
void | operator= (const Field< Type > &rhs) |
template<class Type > | |
void | operator= (const tmp< Field > &rhs) |
template<class Type > | |
constexpr | Field () noexcept |
template<class Type > | |
Field (const label len) | |
template<class Type > | |
Field (const label len, const Type &val) | |
template<class Type > | |
Field (const label len, const Foam::zero) | |
template<class Type > | |
Field (const Foam::one, const Type &val) | |
template<class Type > | |
Field (const Foam::one, Type &&val) | |
template<class Type > | |
Field (const Foam::one, const Foam::zero) | |
template<class Type > | |
Field (const Field< Type > &fld) | |
template<class Type > | |
Field (const UList< Type > &list) | |
template<class Type > | |
Field (Field< Type > &&fld) | |
template<class Type > | |
Field (List< Type > &&list) | |
template<class Type > | |
Field (Field< Type > &fld, bool reuse) | |
template<class Type > | |
Field (const tmp< Field< Type >> &tfld) | |
template<class Type > | |
Field (Istream &is) | |
template<class Type > | |
void | operator= (const UList< Type > &rhs) |
template<class Type > | |
void | operator= (const SubField< Type > &rhs) |
template<class Type > | |
void | operator= (Field< Type > &&rhs) |
template<class Type > | |
void | operator= (List< Type > &&rhs) |
template<class Type > | |
void | operator= (const Type &val) |
template<class Type > | |
void | operator= (const Foam::zero) |
Protected Member Functions | |
template<class Type > | |
void | sampleAndWrite (const GeometricField< Type, fvPatchField, volMesh > &) |
template<class Type > | |
void | sampleAndWrite (const GeometricField< Type, fvsPatchField, surfaceMesh > &) |
template<class Type > | |
void | sampleAndWrite (const fieldGroup< Type > &) |
template<class Type > | |
void | sampleAndWriteSurfaceFields (const fieldGroup< Type > &) |
template<class Type > | |
tmp< Field< Type > > | sample (const GeometricField< Type, fvPatchField, volMesh > &) const |
template<class Type > | |
tmp< Field< Type > > | sample (const GeometricField< Type, fvsPatchField, surfaceMesh > &) const |
template<class Type > | |
tmp< Field< Type > > | sample (const word &fieldName) const |
virtual void | findElements (const fvMesh &) |
![]() | |
void | clearFieldGroups () |
label | classifyFields () |
label | prepare () |
![]() | |
const functionObjects::properties & | stateDict () const |
functionObjects::properties & | stateDict () |
stateFunctionObject (const stateFunctionObject &)=delete | |
void | operator= (const stateFunctionObject &)=delete |
![]() | |
void | clearOutputObjects (const wordList &objNames) |
timeFunctionObject (const timeFunctionObject &)=delete | |
void | operator= (const timeFunctionObject &)=delete |
![]() | |
word | scopedName (const word &name) const |
Protected Attributes | |
wordRes | patchNames_ |
![]() | |
const fvMesh & | mesh_ |
bool | loadFromFiles_ |
wordRes | fieldSelection_ |
bool | fixedLocations_ |
word | interpolationScheme_ |
bool | includeOutOfBounds_ |
fieldGroup< scalar > | scalarFields_ |
fieldGroup< vector > | vectorFields_ |
fieldGroup< sphericalTensor > | sphericalTensorFields_ |
fieldGroup< symmTensor > | symmTensorFields_ |
fieldGroup< tensor > | tensorFields_ |
fieldGroup< scalar > | surfaceScalarFields_ |
fieldGroup< vector > | surfaceVectorFields_ |
fieldGroup< sphericalTensor > | surfaceSphericalTensorFields_ |
fieldGroup< symmTensor > | surfaceSymmTensorFields_ |
fieldGroup< tensor > | surfaceTensorFields_ |
labelList | elementList_ |
labelList | faceList_ |
labelList | processor_ |
HashPtrTable< OFstream > | probeFilePtrs_ |
labelList | patchIDList_ |
pointField | oldPoints_ |
![]() | |
const Time & | time_ |
Additional Inherited Members | |
![]() | |
typedef pTraits< Type >::cmptType | cmptType |
typedef SubField< Type > | subField |
![]() | |
static autoPtr< functionObject > | New (const word &name, const Time &runTime, const dictionary &dict) |
![]() | |
static const Field< Type > & | null () |
static autoPtr< Field< Type > > | New (Istream &is) |
template<class Type2 > | |
static tmp< Field< Type > > | NewCalculatedType (const Field< Type2 > &f) |
![]() | |
bool | log |
![]() | |
static int | debug |
static bool | postProcess |
static bool | defaultUseNamePrefix |
static word | outputPrefix |
Set of locations to sample at patches.
Call write() to sample and write files.
Example of function object specification:
patchProbes { type patchProbes; libs (sampling); // Name of the directory for probe data name patchProbes; // Patches to sample (wildcards allowed) patches (".*inl.*"); // Write at same frequency as fields writeControl writeTime; writeInterval 1; // Fields to be probed fields (p U); // Locations to probe. These get snapped onto the nearest point // on the selected patches probeLocations ( ( -100 0 0.01 ) // at inlet ); }
Definition at line 88 of file patchProbes.H.
patchProbes | ( | const word & | name, |
const Time & | time, | ||
const dictionary & | dict, | ||
const bool | loadFromFiles = false , |
||
const bool | readFields = true |
||
) |
Definition at line 230 of file patchProbes.C.
References dict, and Foam::read().
|
virtualdefault |
|
protected |
Definition at line 30 of file patchProbesTemplates.C.
References Foam::endl(), forAll, Foam::setw(), and Foam::HashTableOps::values().
|
protected |
Definition at line 56 of file patchProbesTemplates.C.
References Foam::endl(), forAll, Foam::setw(), and Foam::HashTableOps::values().
|
protected |
Definition at line 82 of file patchProbesTemplates.C.
References fields, forAll, and patchProbes::sampleAndWrite().
Referenced by patchProbes::sampleAndWrite().
|
protected |
Definition at line 134 of file patchProbesTemplates.C.
|
protected |
|
protected |
|
protectedvirtual |
Reimplemented from probes.
Definition at line 46 of file patchProbes.C.
References boundBox::add(), indexedOctree::bb(), functionObject::debug, Foam::constant::electromagnetic::e, probes::elementList_, Foam::endl(), treeBoundBox::extend(), f(), probes::faceList_, Tuple2::first(), forAll, PointIndexHit::hit(), PointIndexHit::hitPoint(), PointIndexHit::index(), Foam::Info, InfoInFunction, boundBox::invertedBox, Pstream::listCombineGather(), Pstream::listCombineScatter(), boundBox::mag(), Foam::magSqr(), boundBox::max(), mesh, boundBox::min(), UPstream::myProcNo(), Foam::nl, probes::oldPoints_, probes::patchIDList_, patchProbes::patchNames_, polyBoundaryMesh::patchSet(), PrimitivePatch< FaceList, PointField >::points(), probes::probeLocations(), probes::processor_, Foam::reduce(), rndGen, Tuple2::second(), List::setSize(), indexedOctree::shapes(), Foam::sqr(), polyPatch::start(), VectorSpace< Vector< scalar >, scalar, 3 >::uniform(), WarningInFunction, and polyBoundaryMesh::whichPatch().
TypeName | ( | "patchProbes" | ) |
|
virtual |
Reimplemented from probes.
Definition at line 249 of file patchProbes.C.
|
virtual |
Reimplemented from probes.
Definition at line 270 of file patchProbes.C.
References dict, dictionary::get(), probes::read(), and dictionary::readIfPresent().
Foam::tmp<Foam::Field<Type> > sample | ( | const GeometricField< Type, fvPatchField, volMesh > & | vField | ) | const |
Definition at line 189 of file patchProbesTemplates.C.
References GeometricField::boundaryField(), forAll, patches, tmp::ref(), and Foam::HashTableOps::values().
Foam::tmp<Foam::Field<Type> > sample | ( | const word & | fieldName | ) | const |
Definition at line 225 of file patchProbesTemplates.C.
References objectRegistry::lookupObject(), probes::mesh_, and patchProbes::sample().
Foam::tmp<Foam::Field<Type> > sample | ( | const GeometricField< Type, fvsPatchField, surfaceMesh > & | sField | ) | const |
Definition at line 240 of file patchProbesTemplates.C.
References GeometricField::boundaryField(), forAll, Pstream::listCombineGather(), Pstream::listCombineScatter(), patches, tmp::ref(), Foam::HashTableOps::values(), and polyBoundaryMesh::whichPatch().
|
protected |
Definition at line 97 of file patchProbes.H.
Referenced by patchProbes::findElements().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.