38 return {
"code",
"codeInclude",
"localCode"};
45 return {word::null, word::null, word::null};
53 const dynamicCodeContext& context
57 dynCode.setFilterVariable(
"typeName", codeName());
61 word fieldType(pTraits<Type>::typeName);
64 dynCode.setFilterVariable(
"TemplateType", fieldType);
67 fieldType[0] = toupper(fieldType[0]);
68 dynCode.setFilterVariable(
"FieldType", fieldType +
"Field");
71 dynCode.addCompileFile(codeTemplateC(
"codedFixedValuePointPatchField"));
74 dynCode.addCopyFile(codeTemplateH(
"codedFixedValuePointPatchField"));
77 dynCode.setFilterVariable(
"verbose",
Foam::name(
bool(debug)));
81 Info<<
"compile " << codeName() <<
" sha1: " << context.sha1() <<
endl;
85 dynCode.setMakeOptions
88 "-I$(LIB_SRC)/finiteVolume/lnInclude \\\n"
90 +
"\n\nLIB_LIBS = \\\n"
92 +
" -lfiniteVolume \\\n"
102 redirectPatchFieldPtr_.
clear();
119 redirectPatchFieldPtr_()
133 redirectPatchFieldPtr_()
148 redirectPatchFieldPtr_()
158 if (!redirectPatchFieldPtr_.valid())
166 redirectPatchFieldPtr_.set
171 this->internalField(),
177 return redirectPatchFieldPtr_();
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...
Pre-declare SubField and related Field type.
Input from memory buffer stream.
void clear()
Clear the list, i.e. set size to zero.
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 updateLibrary() const
Update library as required.
Constructs on-the-fly a new boundary condition (derived from fixedValuePointPatchField) which is then...
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field, sets Updated to false.
codedFixedValuePointPatchField(const pointPatch &, const DimensionedField< Type, pointMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
virtual void write(Ostream &) const
Write.
const pointPatchField< Type > & redirectPatchField() const
Get reference to the underlying patch.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Abstract base class for field mapping.
A FixedValue boundary condition for pointField.
Abstract base class for point-mesh patch fields.
Basic pointPatch represents a set of points from the mesh.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field.
virtual void write(Ostream &) const
Write.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
void evaluate(GeometricField< Type, PatchField, GeoMesh > &result, const Function1< Type > &func, const GeometricField< Type, PatchField, GeoMesh > &x)