39 const dynamicCodeContext& context
42 dynCode.setFilterVariable(
"typeName", codeName());
46 word fieldType(pTraits<Type>::typeName);
49 dynCode.setFilterVariable(
"TemplateType", fieldType);
52 fieldType[0] = toupper(fieldType[0]);
53 dynCode.setFilterVariable(
"FieldType", fieldType +
"Field");
56 dynCode.addCompileFile(codeTemplateC);
59 dynCode.addCopyFile(codeTemplateH);
64 dynCode.setFilterVariable(
"verbose",
"true");
65 Info<<
"compile " << codeName() <<
" sha1: " 66 << context.sha1() <<
endl;
70 dynCode.setMakeOptions
73 "-I$(LIB_SRC)/finiteVolume/lnInclude \\\n" 75 +
"\n\nLIB_LIBS = \\\n" 77 +
" -lfiniteVolume \\\n" 87 redirectPatchFieldPtr_.
clear();
102 redirectPatchFieldPtr_()
117 redirectPatchFieldPtr_()
131 redirectPatchFieldPtr_()
145 redirectPatchFieldPtr_()
158 redirectPatchFieldPtr_()
168 if (!redirectPatchFieldPtr_.valid())
177 dict.set(
"type", codeName());
179 redirectPatchFieldPtr_.set
186 this->internalField(),
193 return redirectPatchFieldPtr_();
214 this->refGrad() = fvp.
refGrad();
A list of keyword definitions, which are a keyword followed by any number of values (e...
commsTypes
Types of communications.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
This boundary condition provides a base class for 'mixed' type boundary conditions, i.e. conditions that mix fixed value and patch-normal gradient conditions.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
Macros for easy insertion into run-time selection tables.
const mixedFvPatchField< Type > & redirectPatchField() const
Get reference to the underlying patchField.
virtual Field< Type > & refValue()
void clear()
Clear the list, i.e. set size to zero.
virtual scalarField & valueFraction()
Foam::fvPatchFieldMapper.
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field.
codedMixedFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual void write(Ostream &) const
Write.
Constructs on-the-fly a new boundary condition (derived from mixedFvPatchField) which is then used to...
Input from memory buffer stream.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
string str() const
Return the string.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Output to memory buffer stream.
virtual Field< Type > & refGrad()