51 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(
"codedFixedValuePointPatchField"));
72 dynCode.addCopyFile(codeTemplateH(
"codedFixedValuePointPatchField"));
78 dynCode.setFilterVariable(
"verbose",
"true");
79 Info<<
"compile " << codeName() <<
" sha1: " 80 << context.sha1() <<
endl;
84 dynCode.setMakeOptions
87 "-I$(LIB_SRC)/finiteVolume/lnInclude \\\n" 89 +
"\n\nLIB_LIBS = \\\n" 91 +
" -lfiniteVolume \\\n" 101 redirectPatchFieldPtr_.
clear();
116 redirectPatchFieldPtr_()
131 redirectPatchFieldPtr_()
145 redirectPatchFieldPtr_()
160 redirectPatchFieldPtr_()
170 if (!redirectPatchFieldPtr_.valid())
178 redirectPatchFieldPtr_.set
183 this->internalField(),
189 return redirectPatchFieldPtr_();
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...
codedFixedValuePointPatchField(const pointPatch &, const DimensionedField< Type, pointMesh > &)
Construct from patch and internal field.
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...
A FixedValue boundary condition for pointField.
const pointPatchField< Type > & redirectPatchField() const
Get reference to the underlying patch.
Foam::pointPatchFieldMapper.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field, sets Updated to false.
Macros for easy insertion into run-time selection tables.
Abstract base class for point-mesh patch fields.
Constructs on-the-fly a new boundary condition (derived from fixedValuePointPatchField) which is then...
Pre-declare SubField and related Field type.
void clear()
Clear the list, i.e. set size to zero.
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
virtual void write(Ostream &) const
Write.
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)
Basic pointPatch represents a set of points from the mesh.
Input from memory buffer stream.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
string str() const
Return the string.
Output to memory buffer stream.