53 const word& pointsName
58 baseDir / (pointsName.empty() ?
"points" : pointsName)
60 pointsFile.toAbsolute();
73 <<
"File: " <<
io.objectPath() <<
endl;
81 <<
"File: " <<
io.objectPath()
91 const word& pointsName
96 return readPoints(*timePtr, dirName, pointsName);
102void Foam::boundaryDataSurfaceReader::readCase()
110void Foam::boundaryDataSurfaceReader::readGeometry
126Foam::boundaryDataSurfaceReader::readFieldTemplate
129 const label fieldIndex
134 return readField<Type>
138 fieldNames_[fieldIndex],
160 const word& pointsName
164 baseDir_(fName.
path()),
165 pointsName_(pointsName),
175 Info<<
"create with " << baseDir_ <<
endl;
211 if (timeValues_.empty() ||
timeIndex >= timeValues_.size())
227 [](
const fileName&
f) { return word(f); }
239 const label fieldIndex,
240 const scalar& refValue
243 return readFieldTemplate<scalar>(
timeIndex, fieldIndex);
250 const label fieldIndex,
254 return readFieldTemplate<vector>(
timeIndex, fieldIndex);
262 const label fieldIndex,
266 return readFieldTemplate<sphericalTensor>(
timeIndex, fieldIndex);
273 const label fieldIndex,
277 return readFieldTemplate<symmTensor>(
timeIndex, fieldIndex);
284 const label fieldIndex,
288 return readFieldTemplate<tensor>(
timeIndex, fieldIndex);
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
@ NO_REGISTER
Do not request registration (bool: false).
@ MUST_READ
Reading required.
@ NO_WRITE
Ignore writing from objectRegistry::writeObject().
Defines the attributes of an object for which implicit objectRegistry management is supported,...
void resize_nocopy(const label len)
Adjust allocated size of list without necessarily.
static instantList findTimes(const fileName &directory, const word &constantDirName="constant")
Search a given directory for valid time directories.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
static autoPtr< Time > NewGlobalTime()
Construct (dummy) global Time - no functionObjects or libraries, using the global path information st...
iterator begin() noexcept
Return an iterator to begin traversing the UList.
iterator end() noexcept
Return an iterator to end traversing the UList.
void size(const label n)
Older name for setAddressableSize.
A boundaryData format surface reader. However, the "surface" represented by boundaryData is actually ...
virtual instantList times() const
Return a list of the available times.
virtual tmp< Field< scalar > > field(const label timeIndex, const label fieldIndex, const scalar &refValue=pTraits< scalar >::zero) const
Return a scalar field at a given time.
boundaryDataSurfaceReader(const fileName &fName, const word &pointsName="points")
Construct from fileName.
static pointField readPoints(const Time &runTime, const fileName &baseDir, const word &pointsName="points")
Read points file.
static tmp< Field< Type > > readField(const Time &runTime, const fileName &baseDir, const instant &timeDir, const word &fieldName, Type &avg)
Read and return given field.
virtual const meshedSurface & geometry(const label timeIndex)
Return a reference to the surface geometry.
virtual wordList fieldNames(const label timeIndex) const
Return a list of the available fields at a given time.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
bool readIfPresent(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX) const
Find an entry if present, and assign to T val. FatalIOError if it is found and the number of tokens i...
A class for handling file names.
fileName & toAbsolute()
Convert from relative to absolute.
Like IOField but falls back to raw IFstream if no header found. Optionally reads average value....
const Field< Type > & field() const noexcept
The field content.
A class for managing references or pointers (no reference counting).
Abstract base class for surface readers with fields.
surfaceReader(const fileName &fName)
Construct from fileName.
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
fileName path(UMean.rootPath()/UMean.caseName()/"graphs"/UMean.instance())
#define DebugInfo
Report an information message using Foam::Info.
#define DebugInFunction
Report an information message using Foam::Info.
Namespace for handling debugging switches.
List< word > wordList
List of word.
List< fileName > fileNameList
List of fileName.
refPtr< fileOperation > fileHandler(std::nullptr_t)
Delete current file handler - forwards to fileOperation::handler().
messageStream Info
Information stream (stdout output on master, null elsewhere).
List< face > faceList
List of faces.
List< instant > instantList
List of instants.
Ostream & endl(Ostream &os)
Add newline and flush stream.
MeshedSurface< face > meshedSurface
void sort(UList< T > &list)
Sort the list.
vectorField pointField
pointField is a vectorField.
SphericalTensor< scalar > sphericalTensor
SphericalTensor of scalars, i.e. SphericalTensor<scalar>.
SymmTensor< scalar > symmTensor
SymmTensor of scalars, i.e. SymmTensor<scalar>.