51 const dynamicCodeContext& context
54 dynCode.setFilterVariable(
"typeName", codeName());
58 word fieldType(pTraits<Type>::typeName);
61 dynCode.setFilterVariable(
"TemplateType", fieldType);
64 fieldType[0] = toupper(fieldType[0]);
65 dynCode.setFilterVariable(
"FieldType", fieldType +
"Field");
68 dynCode.addCompileFile(codeTemplateC(
"codedFixedValueFvPatchField"));
71 dynCode.addCopyFile(codeTemplateH(
"codedFixedValueFvPatchField"));
76 dynCode.setFilterVariable(
"verbose",
"true");
77 Info<<
"compile " << codeName() <<
" sha1: " 78 << context.sha1() <<
endl;
82 dynCode.setMakeOptions
85 "-I$(LIB_SRC)/finiteVolume/lnInclude \\\n" 87 +
"\n\nLIB_LIBS = \\\n" 89 +
" -lfiniteVolume \\\n" 99 redirectPatchFieldPtr_.
clear();
114 redirectPatchFieldPtr_()
128 redirectPatchFieldPtr_()
145 redirectPatchFieldPtr_()
158 redirectPatchFieldPtr_()
168 if (!redirectPatchFieldPtr_.valid())
173 if (this->overridesConstraint())
183 redirectPatchFieldPtr_.set
188 this->internalField(),
194 return redirectPatchFieldPtr_();
This boundary condition supplies a fixed value constraint, and is the base class for a number of othe...
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
void evaluate(GeometricField< Type, PatchField, GeoMesh > &result, const Function1< Type > &func, const GeometricField< Type, PatchField, GeoMesh > &x)
A list of keyword definitions, which are a keyword followed by any number of values (e...
commsTypes
Types of communications.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Ostream & endl(Ostream &os)
Add newline and flush stream.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
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.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field, sets Updated to false.
void clear()
Clear the list, i.e. set size to zero.
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
Foam::fvPatchFieldMapper.
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
Base class for function objects and boundary conditions using dynamic code.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
Constructs on-the-fly a new boundary condition (derived from fixedValueFvPatchField) which is then us...
Input from memory buffer stream.
codedFixedValueFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
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 write(Ostream &) const
Write.
Output to memory buffer stream.
const fvPatchField< Type > & redirectPatchField() const
Get reference to the underlying patch.