36namespace functionObjects
46void 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: "
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;
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;
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
virtual bool read()
Re-read model coefficients if they have changed.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
bool readIfPresent(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX) const
bool readEntry(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX, bool mandatory=true) const
Abstract base-class for Time/database function objects.
const word & name() const noexcept
Return the name of this functionObject.
virtual const word & type() const =0
Runtime type information.
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
const fvMesh & mesh_
Reference to the fvMesh.
Computes the natural logarithm of an input volScalarField.
Maps input fields from local mesh to secondary mesh at runtime.
virtual bool execute()
Execute, currently does nothing.
virtual bool write()
Calculate the mapFields and write.
virtual bool read(const dictionary &)
Read the mapFields data.
interpolationMethod
Enumeration specifying interpolation method.
static word interpolationMethodAMI(const interpolationMethod method)
Conversion between mesh and patch interpolation methods.
static const Enum< interpolationMethod > interpolationMethodNames_
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
List< word > wordList
A List of words.
messageStream Info
Information stream (stdout output on master, null elsewhere)
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a)