42 boundaryDataSurfaceReader,
54 const word& pointsName
59 baseDir / (pointsName.empty() ?
"points" : pointsName)
61 pointsFile.toAbsolute();
74 <<
"File: " <<
io.objectPath() <<
endl;
82 <<
"File: " <<
io.objectPath()
92 const word& pointsName
97 return readPoints(*timePtr, dirName, pointsName);
103 void Foam::boundaryDataSurfaceReader::readCase()
111 void Foam::boundaryDataSurfaceReader::readGeometry
127 Foam::boundaryDataSurfaceReader::readFieldTemplate
130 const label fieldIndex
135 return readField<Type>
139 fieldNames_[fieldIndex],
150 const word& pointsName
161 const word& pointsName
165 baseDir_(fName.
path()),
166 pointsName_(pointsName),
176 Info<<
"create with " << baseDir_ <<
endl;
212 if (timeValues_.empty() ||
timeIndex >= timeValues_.size())
221 fieldNames_.resize_nocopy(items.size());
228 [](
const fileName&
f) {
return word(
f); }
240 const label fieldIndex,
241 const scalar& refValue
244 return readFieldTemplate<scalar>(
timeIndex, fieldIndex);
251 const label fieldIndex,
255 return readFieldTemplate<vector>(
timeIndex, fieldIndex);
263 const label fieldIndex,
267 return readFieldTemplate<sphericalTensor>(
timeIndex, fieldIndex);
274 const label fieldIndex,
278 return readFieldTemplate<symmTensor>(
timeIndex, fieldIndex);
285 const label fieldIndex,
289 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 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.
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
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 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.
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
List< word > wordList
List of word.
static instantList findTimes(const fileName &directory, const word &constantName="constant")
Search a given directory for valid time directories.
static fileName envGlobalPath()
Global case (directory) from environment variable.
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)