36 {
"code",
"codeInclude",
"localCode"}
42 {word::null, word::null, word::null}
52 const dynamicCodeContext& context
55 dynCode.setFilterVariable(
"typeName", codeName());
59 word fieldType(pTraits<Type>::typeName);
62 dynCode.setFilterVariable(
"TemplateType", fieldType);
65 fieldType[0] = toupper(fieldType[0]);
66 dynCode.setFilterVariable(
"FieldType", fieldType +
"Field");
69 dynCode.addCompileFile(codeTemplateC(
"codedMixedFvPatchField"));
72 dynCode.addCopyFile(codeTemplateH(
"codedMixedFvPatchField"));
75 dynCode.setFilterVariable(
"verbose",
Foam::name(
bool(debug)));
79 Info<<
"compile " << codeName() <<
" sha1: " << context.sha1() <<
endl;
83 dynCode.setMakeOptions
86 "-I$(LIB_SRC)/finiteVolume/lnInclude \\\n"
88 +
"\n\nLIB_LIBS = \\\n"
90 +
" -lfiniteVolume \\\n"
146 if (!redirectPatchFieldPtr_.valid())
155 dict.set(
"type", codeName());
157 redirectPatchFieldPtr_.set
164 this->internalField(),
171 return redirectPatchFieldPtr_();
189 this->refGrad() = fvp.
refGrad();
Macros for easy insertion into run-time selection tables.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Input from memory buffer stream.
Output to memory buffer stream.
string str() const
Return the string.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
commsTypes
Types of communications.
Base class for function objects and boundary conditions using dynamic code.
void write(Ostream &os) const
Write the code for restart.
bool updateLibrary(const dictionary &dict) const
Update library from given updated dictionary as required.
Constructs on-the-fly a new boundary condition (derived from mixedFvPatchField) which is then used to...
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field.
virtual void write(Ostream &) const
Write.
codedMixedFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
const mixedFvPatchField< Type > & redirectPatchField() const
Get reference to the underlying patchField.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Abstract base class for field mapping.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
This boundary condition provides a base class for 'mixed' type boundary conditions,...
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field.
virtual void write(Ostream &) const
Write.
virtual Field< Type > & refValue()
virtual scalarField & valueFraction()
virtual Field< Type > & refGrad()
Ostream & endl(Ostream &os)
Add newline and flush stream.
void evaluate(GeometricField< Type, GeoMesh > &result, const Function1< Type > &func, const GeometricField< Type, GeoMesh > &x)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.