41 boundaryDataSurfaceReader,
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);
102 void Foam::boundaryDataSurfaceReader::readCase()
110 void Foam::boundaryDataSurfaceReader::readGeometry
126 Foam::boundaryDataSurfaceReader::readFieldTemplate
129 const label fieldIndex
134 return readField<Type>
138 fieldNames_[fieldIndex],
149 const word& pointsName
160 const word& pointsName
164 baseDir_(fName.
path()),
165 pointsName_(pointsName),
175 Info<<
"create with " << baseDir_ <<
endl;
211 if (timeValues_.empty() ||
timeIndex >= timeValues_.size())
220 fieldNames_.resize_nocopy(items.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);
A boundaryData format surface reader. However, the "surface" represented by boundaryData is actually ...
A class for handling file names.
static autoPtr< Time > NewGlobalTime()
Construct (dummy) global Time - no functionObjects or libraries, using the global path information st...
static pointField readPoints(const Time &runTime, const fileName &baseDir, const word &pointsName="points")
Read points file.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual const meshedSurface & geometry(const label timeIndex)
Return a reference to the surface geometry.
refPtr< fileOperation > fileHandler(std::nullptr_t)
Delete current file handler - forwards to fileOperation::handler()
Ignore writing from objectRegistry::writeObject()
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for managing references or pointers (no reference counting)
Like IOField but falls back to raw IFstream if no header found. Optionally reads average value...
Macros for easy insertion into run-time selection tables.
List< face > faceList
List of faces.
vectorField pointField
pointField is a vectorField.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
void clear()
Clear the list, i.e. set size to zero.
A class for handling words, derived from Foam::string.
MeshedSurface< face > meshedSurface
#define DebugInFunction
Report an information message using Foam::Info.
void sort(UList< T > &list)
Sort the list.
virtual instantList times() const
Return a list of the available times.
#define DebugInfo
Report an information message using Foam::Info.
fileName & toAbsolute()
Convert from relative to absolute.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
int debug
Static debugging option.
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...
fileName path(UMean.rootPath()/UMean.caseName()/"graphs"/UMean.instance())
defineTypeNameAndDebug(combustionModel, 0)
virtual wordList fieldNames(const label timeIndex) const
Return a list of the available fields at a given time.
static instantList findTimes(const fileName &directory, const word &constantDirName="constant")
Search a given directory for valid time directories.
List< word > wordList
List of word.
messageStream Info
Information stream (stdout output on master, null elsewhere)
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, IOobject::NO_REGISTER)
A class for managing temporary objects.
List< fileName > fileNameList
List of fileName.
dimensionSet transform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.
Tensor of scalars, i.e. Tensor<scalar>.
Abstract base class for surface readers with fields.
Defines the attributes of an object for which implicit objectRegistry management is supported...
boundaryDataSurfaceReader(const fileName &fName, const word &pointsName="points")
Construct from fileName.
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.
Do not request registration (bool: false)
addToRunTimeSelectionTable(functionObject, pointHistory, dictionary)