45 class fieldInterpolator
75 selectedFields_(selectedFields),
78 interpolator_(interpolator),
79 timeNames_(timeNames),
83 template<
class GeoFieldType>
88 template<
class GeoFieldType>
91 const word& fieldClassName = GeoFieldType::typeName;
97 Info<<
" " << fieldClassName <<
"s:";
103 selectedFields_.empty()
104 || selectedFields_.found(fieldIter()->
name())
107 Info<<
" " << fieldIter()->name() <<
'(';
109 scalar deltaT = (ti1_.value() - ti_.value())/(divisions_ + 1);
111 for (
int j=0; j<divisions_; j++)
119 if (j < divisions_-1)
127 interpolator_.valueWeights
140 ReadFields<GeoFieldType>
149 uniformInterpolate<GeoFieldType>
180 int main(
int argc,
char *argv[])
188 "specify a list of fields to be interpolated. Eg, '(U T p)' - "
189 "regular expressions not currently supported"
195 "specify number of temporal sub-divisions to create (default = 1)."
201 "specify type of interpolation (linear or spline)"
212 if (selectedFields.
size())
214 Info<<
"Interpolating fields " << selectedFields <<
nl <<
endl;
218 Info<<
"Interpolating all fields" <<
nl <<
endl;
227 Info<<
"Using " << divisions <<
" per time interval" <<
nl <<
endl;
235 Info<<
"Using interpolation " << interpolationType <<
nl <<
endl;
259 Info<<
"Interpolating fields for times:" <<
endl;
263 runTime.setTime(
timeDirs[timei], timei);
268 fieldInterpolator interpolator
Field reading functions for post-processing utilities.
#define forAll(list, i)
Loop across all elements in list.
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
Generic GeometricField class.
A HashTable with keys but without contents.
label size() const
Return number of elements in table.
List of IOobjects with searching and retrieving facilities.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
void size(const label)
Override size to be inconsistent with allocated storage.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A List with indirect addressing.
static void addOption(const word &opt, const string ¶m="", const string &usage="")
Add to an option to validOptions with usage information.
bool optionFound(const word &opt) const
Return true if the named option is found.
IStringStream optionLookup(const word &opt) const
Return an IStringStream from the named option.
T optionLookupOrDefault(const word &opt, const T &deflt) const
Read a value from the named option if present.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Mesh data needed to do the Finite Volume discretisation.
An instant of time. Contains the time value and name.
const word & name() const
Name (const access)
Abstract base class for interpolating in 1D.
static autoPtr< interpolationWeights > New(const word &type, const scalarField &samples)
Return a reference to the selected interpolationWeights.
static void addOptions(const bool constant=true, const bool withZero=false)
Add the options handled by timeSelector to argList::validOptions.
static instantList select0(Time &runTime, const argList &args)
Return the set of times selected based on the argList options.
A class for handling words, derived from string.
int main(int argc, char *argv[])
static instantList timeDirs
Info<< "Calculating turbulent flame speed field St\n"<< endl;volScalarField St(IOobject("St", runTime.name(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), flameWrinkling->Xi() *Su);multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
static tmp< SurfaceField< Type > > interpolate(const VolField< Type > &tvf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.
Foam::argList args(argc, argv)