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)
Conversion between mesh and patch interpolation methods.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from Foam::string.
virtual bool write()
Calculate the mapFields and write.
bool read(const char *buf, int32_t &val)
Same as readInt32.
mapFields(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual bool read(const dictionary &)
Read the mapFields data.
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
List< word > wordList
A List of words.
virtual bool execute()
Execute, currently does nothing.
messageStream Info
Information stream (stdout output on master, null elsewhere)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual bool read(const dictionary &dict)
Read optional controls.
Macros for easy insertion into run-time selection tables.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const word & name() const noexcept
Return the name of this functionObject.
addToRunTimeSelectionTable(functionObject, ObukhovLength, dictionary)
interpolationMethod
Enumeration specifying interpolation method.
virtual const word & type() const =0
Runtime type information.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
const fvMesh & mesh_
Reference to the fvMesh.
defineTypeNameAndDebug(ObukhovLength, 0)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
Computes the natural logarithm of an input volScalarField.