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