Public Member Functions | |
TypeName ("streamLineBase") | |
Runtime type information. More... | |
streamLineBase (const word &name, const objectRegistry &, const dictionary &, const bool loadFromFiles=false) | |
Construct for given objectRegistry and dictionary. More... | |
virtual | ~streamLineBase () |
Destructor. More... | |
virtual void | read (const dictionary &) |
Read the field average data. More... | |
virtual void | execute () |
Execute the averaging. More... | |
virtual void | end () |
Execute the averaging at the final time-loop, currently does nothing. More... | |
virtual void | timeSet () |
Called when time was set at the end of the Time::operator++. More... | |
virtual void | write () |
Track and write. More... | |
virtual void | updateMesh (const mapPolyMesh &) |
Update for changes of mesh. More... | |
virtual void | movePoints (const polyMesh &) |
Update for mesh point-motion. More... | |
![]() | |
functionObjectState (const objectRegistry &obr, const word &name) | |
Construct from components. More... | |
virtual | ~functionObjectState () |
Destructor. More... | |
const word & | name () const |
Return the name. More... | |
bool | active () const |
Return the active flag. More... | |
const IOdictionary & | stateDict () const |
Return access to the state dictionary. More... | |
dictionary & | propertyDict () |
Return access to the property dictionary. More... | |
template<class Type > | |
bool | setActive () |
Set the active status by querying objectRegistry type. More... | |
bool | foundProperty (const word &entryName) const |
Return true if the property exists. More... | |
template<class Type > | |
Type | getProperty (const word &entryName, const Type &defaultValue=pTraits< Type >::zero) const |
Retrieve generic property. More... | |
template<class Type > | |
void | getProperty (const word &entryName, Type &value) const |
Retrieve generic property. More... | |
template<class Type > | |
void | setProperty (const word &entryName, const Type &value) |
Add generic property. More... | |
template<class Type > | |
Type | getObjectProperty (const word &objectName, const word &entryName, const Type &defaultValue=pTraits< Type >::zero) const |
Retrieve generic property from named object. More... | |
template<class Type > | |
void | getObjectProperty (const word &objectName, const word &entryName, Type &value) const |
Retrieve generic property from named object. More... | |
template<class Type > | |
void | setObjectProperty (const word &objectName, const word &entryName, const Type &value) |
Add generic property from named object. More... | |
template<class Type > | |
void | setResult (const word &entryName, const Type &value) |
Add result. More... | |
template<class Type > | |
void | setObjectResult (const word &objectName, const word &entryName, const Type &value) |
Add result from named object. More... | |
template<class Type > | |
Type | getResult (const word &entryName, const Type &defaultValue=pTraits< Type >::zero) const |
Retrieve result. More... | |
template<class Type > | |
Type | getObjectResult (const word &objectName, const word &entryName, const Type &defaultValue=pTraits< Type >::zero) const |
Retrieve result from named object. More... | |
template<class Type > | |
void | getObjectResult (const word &objectName, const word &entryName, Type &value) const |
Retrieve result from named object. More... | |
word | resultType (const word &entryName) const |
Retrieve the result type. More... | |
word | objectResultType (const word &objectName, const word &entryName) const |
Return the type of result. More... | |
List< word > | objectResultEntries () const |
Retrieve the result entries. More... | |
List< word > | objectResultEntries (const word &objectName) const |
Return result entries for named object. More... | |
Protected Member Functions | |
autoPtr< indirectPrimitivePatch > | wallPatch () const |
Construct patch out of all wall patch faces. More... | |
void | initInterpolations (const label nSeeds, label &UIndex, PtrList< volScalarField > &vsFlds, PtrList< interpolation< scalar > > &vsInterp, PtrList< volVectorField > &vvFlds, PtrList< interpolation< vector > > &vvInterp) |
Initialise fields, interpolators and track storage. More... | |
void | storePoint (const label trackI, const scalar w, const label leftI, const label rightI, DynamicList< point > &newTrack, DynamicList< List< scalar > > &newScalars, DynamicList< List< vector > > &newVectors) const |
Generate point and values by interpolating from existing values. More... | |
void | trimToBox (const treeBoundBox &bb, const label trackI, PtrList< DynamicList< point > > &newTracks, PtrList< DynamicList< scalarList > > &newScalars, PtrList< DynamicList< vectorList > > &newVectors) const |
Trim and possibly split a track. More... | |
void | trimToBox (const treeBoundBox &bb) |
Trim tracks to bounding box. More... | |
virtual void | track ()=0 |
Do the actual tracking to fill the track data. More... | |
![]() | |
functionObjectState (const functionObjectState &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const functionObjectState &) |
Disallow default bitwise assignment. More... | |
Protected Attributes | |
dictionary | dict_ |
Input dictionary. More... | |
const objectRegistry & | obr_ |
Database this class is registered to. More... | |
bool | loadFromFiles_ |
Load fields from files (not from objectRegistry) More... | |
Switch | log_ |
Switch to send output to Info as well as to file. More... | |
wordList | fields_ |
List of fields to sample. More... | |
word | UName_ |
Field to transport particle with. More... | |
word | interpolationScheme_ |
Interpolation scheme to use. More... | |
bool | trackForward_ |
Whether to use +u or -u. More... | |
label | lifeTime_ |
Maximum lifetime (= number of cells) of particle. More... | |
scalar | trackLength_ |
Track length. More... | |
boundBox | bounds_ |
Optional trimming of tracks. More... | |
word | cloudName_ |
Optional specified name of particles. More... | |
word | seedSet_ |
Type of seed. More... | |
wordList | scalarNames_ |
Names of scalar fields. More... | |
wordList | vectorNames_ |
Names of vector fields. More... | |
autoPtr< meshSearch > | meshSearchPtr_ |
Mesh searching enigne. More... | |
autoPtr< sampledSet > | sampledSetPtr_ |
Seed set engine. More... | |
word | sampledSetAxis_ |
Axis of the sampled points to output. More... | |
autoPtr< writer< scalar > > | scalarFormatterPtr_ |
File writer for scalar data. More... | |
autoPtr< writer< vector > > | vectorFormatterPtr_ |
File writer for vector data. More... | |
DynamicList< List< point > > | allTracks_ |
All tracks. Per track the points it passed through. More... | |
List< DynamicList< scalarList > > | allScalars_ |
Per scalarField, per track, the sampled values. More... | |
List< DynamicList< vectorList > > | allVectors_ |
Per vectorField, per track, the sampled values. More... | |
![]() | |
const word | name_ |
Name of model. More... | |
bool | active_ |
Flag to indicate whether the object is active. More... | |
IOdictionary & | stateDict_ |
Reference to the state dictionary. More... | |
Definition at line 62 of file streamLineBase.H.
streamLineBase | ( | const word & | name, |
const objectRegistry & | obr, | ||
const dictionary & | dict, | ||
const bool | loadFromFiles = false |
||
) |
Construct for given objectRegistry and dictionary.
Allow the possibility to load fields from files
Definition at line 537 of file streamLineBase.C.
|
virtual |
Destructor.
Definition at line 554 of file streamLineBase.C.
|
protected |
Construct patch out of all wall patch faces.
Definition at line 47 of file streamLineBase.C.
References forAll, mesh, streamLineBase::obr_, patches, and polyPatch::start().
Referenced by wallBoundedStreamLine::track().
|
protected |
Initialise fields, interpolators and track storage.
Definition at line 98 of file streamLineBase.C.
References IOobjectList::add(), Foam::exit(), f(), Foam::FatalError, FatalErrorInFunction, forAll, objectRegistry::foundObject(), objectRegistry::lookupObject(), mesh, objectRegistry::names(), Foam::nl, Foam::ReadFields(), PtrList::size(), objectRegistry::time(), and Time::timeName().
Referenced by wallBoundedStreamLine::track(), and streamLine::track().
|
protected |
Generate point and values by interpolating from existing values.
Definition at line 270 of file streamLineBase.C.
References DynamicList::append(), forAll, and w().
|
protected |
Trim and possibly split a track.
Definition at line 316 of file streamLineBase.C.
References DynamicList::append(), treeBoundBox::contains(), treeBoundBox::intersects(), Foam::mag(), DynamicList::shrink(), and List::size().
|
protected |
Trim tracks to bounding box.
Definition at line 470 of file streamLineBase.C.
References PtrList::append(), forAll, DynamicList::setSize(), List::setSize(), List::size(), and PtrList::size().
|
protectedpure virtual |
Do the actual tracking to fill the track data.
Implemented in streamLine, and wallBoundedStreamLine.
TypeName | ( | "streamLineBase" | ) |
Runtime type information.
|
virtual |
Read the field average data.
Reimplemented in streamLine, and wallBoundedStreamLine.
Definition at line 560 of file streamLineBase.C.
References dict, Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::FatalIOError, FatalIOErrorInFunction, Foam::findIndex(), dictionary::found(), boundBox::greatBox, Foam::Info, IOWarningInFunction, dictionary::lookup(), dictionary::lookupOrDefault(), mesh, MeshObject< polyMesh, GeometricMeshObject, meshSearchMeshObject >::New(), writer< Type >::New(), sampledSet::New(), Foam::nl, dictionary::readIfPresent(), dictionary::subDict(), and Foam::type().
Referenced by wallBoundedStreamLine::read(), and streamLine::read().
|
virtual |
Execute the averaging.
Definition at line 656 of file streamLineBase.C.
|
virtual |
Execute the averaging at the final time-loop, currently does nothing.
Definition at line 660 of file streamLineBase.C.
|
virtual |
Called when time was set at the end of the Time::operator++.
Definition at line 664 of file streamLineBase.C.
|
virtual |
Track and write.
Definition at line 668 of file streamLineBase.C.
References dictionary::add(), mapDistributeBase::constructMap(), mapDistributeBase::constructSize(), polyMesh::defaultRegion, mapDistributeBase::distribute(), Foam::endl(), forAll, boundBox::greatBox, Foam::Info, globalIndex::localSize(), UPstream::master(), mesh, Foam::mkDir(), n, Foam::name(), fvMesh::name(), Foam::nl, UPstream::nProcs(), UPstream::parRun(), fileName::path(), Time::path(), propsDict(), mapDistributeBase::schedule(), UPstream::scheduled, PtrList::set(), List::setSize(), List::size(), globalIndex::size(), mapDistributeBase::subMap(), objectRegistry::time(), fvMesh::time(), Time::timeName(), List::transfer(), PtrList::transfer(), Foam::type(), Ostream::write(), and List::xfer().
|
virtual |
Update for changes of mesh.
Definition at line 964 of file streamLineBase.C.
References Foam::read().
|
virtual |
Update for mesh point-motion.
Definition at line 970 of file streamLineBase.C.
References Foam::read().
|
protected |
Input dictionary.
Definition at line 69 of file streamLineBase.H.
|
protected |
Database this class is registered to.
Definition at line 72 of file streamLineBase.H.
Referenced by wallBoundedStreamLine::track(), streamLine::track(), and streamLineBase::wallPatch().
|
protected |
Load fields from files (not from objectRegistry)
Definition at line 75 of file streamLineBase.H.
|
protected |
Switch to send output to Info as well as to file.
Definition at line 78 of file streamLineBase.H.
Referenced by wallBoundedStreamLine::track(), and streamLine::track().
|
protected |
List of fields to sample.
Definition at line 81 of file streamLineBase.H.
|
protected |
Field to transport particle with.
Definition at line 84 of file streamLineBase.H.
|
protected |
Interpolation scheme to use.
Definition at line 87 of file streamLineBase.H.
|
protected |
Whether to use +u or -u.
Definition at line 90 of file streamLineBase.H.
Referenced by wallBoundedStreamLine::track(), and streamLine::track().
|
protected |
Maximum lifetime (= number of cells) of particle.
Definition at line 93 of file streamLineBase.H.
Referenced by wallBoundedStreamLine::track(), and streamLine::track().
|
protected |
Track length.
Definition at line 96 of file streamLineBase.H.
Referenced by wallBoundedStreamLine::track(), and streamLine::track().
|
protected |
Optional trimming of tracks.
Definition at line 99 of file streamLineBase.H.
|
protected |
Optional specified name of particles.
Definition at line 102 of file streamLineBase.H.
Referenced by wallBoundedStreamLine::track(), and streamLine::track().
|
protected |
Type of seed.
Definition at line 105 of file streamLineBase.H.
|
protected |
Names of scalar fields.
Definition at line 108 of file streamLineBase.H.
|
protected |
Names of vector fields.
Definition at line 111 of file streamLineBase.H.
|
protected |
Mesh searching enigne.
Definition at line 117 of file streamLineBase.H.
|
protected |
Seed set engine.
Definition at line 120 of file streamLineBase.H.
Referenced by wallBoundedStreamLine::track(), and streamLine::track().
|
protected |
Axis of the sampled points to output.
Definition at line 123 of file streamLineBase.H.
File writer for scalar data.
Definition at line 126 of file streamLineBase.H.
File writer for vector data.
Definition at line 129 of file streamLineBase.H.
|
protected |
All tracks. Per track the points it passed through.
Definition at line 135 of file streamLineBase.H.
Referenced by wallBoundedStreamLine::track(), and streamLine::track().
|
protected |
Per scalarField, per track, the sampled values.
Definition at line 138 of file streamLineBase.H.
Referenced by wallBoundedStreamLine::track(), and streamLine::track().
|
protected |
Per vectorField, per track, the sampled values.
Definition at line 141 of file streamLineBase.H.
Referenced by wallBoundedStreamLine::track(), and streamLine::track().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.