44 #ifndef fvPatchField_H
45 #define fvPatchField_H
72 class calculatedFvPatchField;
107 bool manipulatedMatrix_;
148 (
dynamic_cast<const fvPatchFieldType&
>(ptf),
p, iF, m)
188 const bool valueRequired=
true
198 const bool mappingRequired=
true
261 const word& actualPatchType,
294 template<
class Type2>
337 if (
type() == patch_.type())
342 typename patchConstructorTable::iterator patchTypeCstrIter
343 = patchConstructorTablePtr_->find(patch_.type());
347 != patchConstructorTablePtr_->end();
365 return internalField_;
371 return internalField_;
383 return manipulatedMatrix_;
585 #define makeFvPatchField(fvPatchTypeField) \
586 defineNamedTemplateTypeNameAndDebug(fvPatchTypeField, 0); \
588 int fvPatchTypeField::disallowGenericFvPatchField \
590 debug::debugSwitch("disallowGenericFvPatchField", 0) \
592 defineTemplateRunTimeSelectionTable(fvPatchTypeField, patch); \
593 defineTemplateRunTimeSelectionTable(fvPatchTypeField, patchMapper); \
594 defineTemplateRunTimeSelectionTable(fvPatchTypeField, dictionary);
597 #define addToPatchFieldRunTimeSelection(PatchTypeField, typePatchTypeField) \
598 addToRunTimeSelectionTable \
601 typePatchTypeField, \
604 addToRunTimeSelectionTable \
607 typePatchTypeField, \
612 #define addToNullConstructablePatchFieldRunTimeSelection( \
613 PatchTypeField, typePatchTypeField) \
615 addToPatchFieldRunTimeSelection(PatchTypeField, typePatchTypeField) \
617 addToRunTimeSelectionTable \
620 typePatchTypeField, \
626 #define addRemovableToPatchFieldRunTimeSelection( \
627 PatchTypeField, typePatchTypeField) \
629 addRemovableToRunTimeSelectionTable \
632 typePatchTypeField, \
635 addRemovableToRunTimeSelectionTable \
638 typePatchTypeField, \
644 #define makePatchTypeField(PatchTypeField, typePatchTypeField) \
645 defineTypeNameAndDebug(typePatchTypeField, 0); \
646 addToPatchFieldRunTimeSelection(PatchTypeField, typePatchTypeField)
650 #define makeNullConstructablePatchTypeField(PatchTypeField, typePatchTypeField)\
651 defineTypeNameAndDebug(typePatchTypeField, 0); \
652 addToNullConstructablePatchFieldRunTimeSelection \
660 #define makeRemovablePatchTypeField(PatchTypeField, typePatchTypeField) \
661 defineTypeNameAndDebug(typePatchTypeField, 0); \
662 addRemovableToPatchFieldRunTimeSelection(PatchTypeField, typePatchTypeField)
666 #define makeTemplatePatchTypeField(fieldType, type) \
667 defineNamedTemplateTypeNameAndDebug \
669 CAT4(type, FvPatch, CAPITALIZE(fieldType), Field), \
672 addToPatchFieldRunTimeSelection \
674 CAT3(fvPatch, CAPITALIZE(fieldType), Field), \
675 CAT4(type, FvPatch, CAPITALIZE(fieldType), Field) \
680 #define makeNullConstructableTemplatePatchTypeField(fieldType, type) \
681 defineNamedTemplateTypeNameAndDebug \
683 CAT4(type, FvPatch, CAPITALIZE(fieldType), Field), \
686 addToNullConstructablePatchFieldRunTimeSelection \
688 CAT3(fvPatch, CAPITALIZE(fieldType), Field), \
689 CAT4(type, FvPatch, CAPITALIZE(fieldType), Field) \
693 #define makePatchFields(type) \
694 FOR_ALL_FIELD_TYPES(makeTemplatePatchTypeField, type)
697 #define makeNullConstructablePatchFields(type) \
698 FOR_ALL_FIELD_TYPES(makeNullConstructableTemplatePatchTypeField, type)
701 #define makePatchFieldTypeName(fieldType, type) \
702 defineNamedTemplateTypeNameAndDebug \
704 CAT4(type, FvPatch, CAPITALIZE(fieldType), Field), \
709 #define makePatchFieldTypeNames(type) \
710 FOR_ALL_FIELD_TYPES(makePatchFieldTypeName, type)
713 #define makePatchTypeFieldTypedef(fieldType, type) \
714 typedef type##FvPatchField<fieldType> \
715 CAT4(type, FvPatch, CAPITALIZE(fieldType), Field);
718 #define makePatchTypeFieldTypedefs(type) \
719 FOR_ALL_FIELD_TYPES(makePatchTypeFieldTypedef, type)
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.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
commsTypes
Types of communications.
This boundary condition is not designed to be evaluated; it is assumed that the value is assigned via...
A list of keyword definitions, which are a keyword followed by any number of values (e....
Abstract base class for field mapping.
A special matrix type and solver, designed for finite volume solutions of scalar equations....
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void initPatchNeighbourField(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking) const
Initialise return of the patchField on the opposite patch of a.
virtual void initEvaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Initialise the evaluation of the patch field.
bool manipulatedMatrix() const
Return true if the matrix has already been manipulated.
virtual tmp< Field< Type > > gradientBoundaryCoeffs() const
Return the matrix source coefficients corresponding to the.
virtual bool fixesValue() const
Return true if this patch field fixes a value.
const DimensionedField< Type, volMesh > & internalField() const
Return dimensioned internal field reference.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field, sets Updated to false.
virtual void write(Ostream &) const
Write.
virtual void operator==(const fvPatchField< Type > &)
virtual bool coupled() const
Return true if this patch field is coupled.
declareRunTimeSelectionTable(tmp, fvPatchField, patch,(const fvPatch &p, const DimensionedField< Type, volMesh > &iF),(p, iF))
virtual tmp< Field< Type > > patchInternalField() const
Return internal field next to patch as patch field.
virtual tmp< Field< Type > > valueBoundaryCoeffs(const tmp< Field< scalar >> &) const
Return the matrix source coefficients corresponding to the.
static tmp< fvPatchField< Type > > NewCalculatedType(const fvPatch &)
Return a pointer to a new calculatedFvPatchField created on.
virtual tmp< Field< Type > > snGrad() const
Return patch-normal gradient.
virtual void operator-=(const fvPatchField< Type > &)
const Field< Type > & primitiveField() const
Return internal field reference.
const objectRegistry & db() const
Return local objectRegistry.
virtual void operator=(const UList< Type > &)
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual tmp< Field< Type > > patchNeighbourField(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking) const
Return patchField on the opposite patch of a coupled patch.
virtual void reset(const fvPatchField< Type > &)
Reset the fvPatchField to the given fvPatchField.
TypeName("fvPatchField")
Runtime type information.
calculatedFvPatchField< Type > Calculated
virtual void manipulateMatrix(fvMatrix< Type > &matrix)
Manipulate matrix.
static tmp< fvPatchField< Type > > New(const word &, const fvPatch &, const DimensionedField< Type, volMesh > &)
Return a pointer to a new patchField created on freestore given.
virtual void operator*=(const fvPatchField< scalar > &)
static int disallowGenericFvPatchField
Debug switch to disallow the use of genericFvPatchField.
virtual void operator+=(const fvPatchField< Type > &)
virtual tmp< Field< Type > > gradientInternalCoeffs() const
Return the matrix diagonal coefficients corresponding to the.
bool overridesConstraint() const
Return true if this overrides the underlying constraint type.
const fvPatch & patch() const
Return patch.
virtual bool assignable() const
Return true if the value of the patch field.
virtual void operator/=(const fvPatchField< scalar > &)
bool updated() const
Return true if the boundary condition has already been updated.
virtual tmp< Field< Type > > valueInternalCoeffs(const tmp< Field< scalar >> &) const
Return the matrix diagonal coefficients corresponding to the.
virtual ~fvPatchField()
Destructor.
virtual void map(const fvPatchField< Type > &, const fieldMapper &)
Map the given fvPatchField onto this fvPatchField.
void check(const fvPatchField< Type > &) const
Check fvPatchField<Type> against given fvPatchField<Type>
static const word & calculatedType()
Return the type of the calculated for of fvPatchField.
fvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
tmp< fvPatchField< Type > > clone() const
Disallow clone without setting internal field reference.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Registry of regIOobjects.
A class for managing temporary objects.
A class for handling words, derived from string.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
Include the header files for all the primitive types that Fields are instantiated for.
Ostream & operator<<(Ostream &os, const fvConstraints &constraints)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.