Go to the documentation of this file.
36 namespace functionObjects
46 void Foam::functionObjects::mapFields::createInterpolation
48 const dictionary&
dict
51 const fvMesh& meshTarget =
mesh_;
52 const word mapRegionName(
dict.get<word>(
"mapRegion"));
55 <<
" Reading mesh " << mapRegionName <<
endl;
64 meshTarget.time().constant(),
71 const fvMesh& mapRegion = mapRegionPtr_();
72 const word mapMethodName(
dict.get<word>(
"mapMethod"));
76 <<
type() <<
" " <<
name() <<
": unknown map method "
77 << mapMethodName <<
nl
78 <<
"Available methods include: "
92 if (
dict.readIfPresent(
"patchMapMethod", patchMapMethodName))
94 Info<<
" Patch mapping method: " << patchMapMethodName <<
endl;
97 Info<<
" Creating mesh to mesh interpolation" <<
endl;
99 if (
dict.get<
bool>(
"consistent"))
114 HashTable<word> patchMap;
117 dict.readEntry(
"patchMap", patchMap);
118 dict.readEntry(
"cuttingPatches", cuttingPatches);
160 dict.readEntry(
"fields", fieldNames_);
161 createInterpolation(
dict);
176 ok = mapFieldType<scalar>() || ok;
177 ok = mapFieldType<vector>() || ok;
178 ok = mapFieldType<sphericalTensor>() || ok;
179 ok = mapFieldType<symmTensor>() || ok;
180 ok = mapFieldType<tensor>() || ok;
201 ok = writeFieldType<scalar>() || ok;
202 ok = writeFieldType<vector>() || ok;
203 ok = writeFieldType<sphericalTensor>() || ok;
204 ok = writeFieldType<symmTensor>() || ok;
205 ok = writeFieldType<tensor>() || ok;
static const Enum< interpolationMethod > interpolationMethodNames_
static word interpolationMethodAMI(const interpolationMethod method)
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from Foam::string.
bool read(const char *buf, int32_t &val)
mapFields(const word &name, const Time &runTime, const dictionary &dict)
Ostream & endl(Ostream &os)
virtual bool read(const dictionary &)
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
List< word > wordList
A List of words.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual bool read(const dictionary &dict)
dimensionedScalar log(const dimensionedScalar &ds)
Macros for easy insertion into run-time selection tables.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
const word & name() const noexcept
addToRunTimeSelectionTable(functionObject, ObukhovLength, dictionary)
virtual const word & type() const =0
fileName::Type type(const fileName &name, const bool followLink=true)
defineTypeNameAndDebug(ObukhovLength, 0)
word name(const expressions::valueTypeCode typeCode)
Computes the natural logarithm of an input volScalarField.