44 #ifndef fvPatchField_H
45 #define fvPatchField_H
72 class calculatedFvPatchField;
75 class slicedFvPatchField;
110 bool manipulatedMatrix_;
160 (
dynamic_cast<const fvPatchFieldType&
>(ptf),
p, iF, m)
200 const bool valueRequired=
true
210 const bool mappingRequired=
true
273 const word& actualPatchType,
306 template<
class Type2>
349 if (
type() == patch_.type())
354 typename patchConstructorTable::iterator patchTypeCstrIter
355 = patchConstructorTablePtr_->find(patch_.type());
359 != patchConstructorTablePtr_->end();
377 return internalField_;
383 return internalField_;
395 return manipulatedMatrix_;
597 #define makeFvPatchField(fvPatchTypeField) \
598 defineNamedTemplateTypeNameAndDebug(fvPatchTypeField, 0); \
600 int fvPatchTypeField::disallowGenericFvPatchField \
602 debug::debugSwitch("disallowGenericFvPatchField", 0) \
604 defineTemplateRunTimeSelectionTable(fvPatchTypeField, patch); \
605 defineTemplateRunTimeSelectionTable(fvPatchTypeField, patchMapper); \
606 defineTemplateRunTimeSelectionTable(fvPatchTypeField, dictionary);
609 #define addToPatchFieldRunTimeSelection(PatchTypeField, typePatchTypeField) \
610 addToRunTimeSelectionTable \
613 typePatchTypeField, \
616 addToRunTimeSelectionTable \
619 typePatchTypeField, \
624 #define addToNullConstructablePatchFieldRunTimeSelection( \
625 PatchTypeField, typePatchTypeField) \
627 addToPatchFieldRunTimeSelection(PatchTypeField, typePatchTypeField) \
629 addToRunTimeSelectionTable \
632 typePatchTypeField, \
638 #define addRemovableToPatchFieldRunTimeSelection( \
639 PatchTypeField, typePatchTypeField) \
641 addRemovableToRunTimeSelectionTable \
644 typePatchTypeField, \
647 addRemovableToRunTimeSelectionTable \
650 typePatchTypeField, \
656 #define makePatchTypeField(PatchTypeField, typePatchTypeField) \
657 defineTypeNameAndDebug(typePatchTypeField, 0); \
658 addToPatchFieldRunTimeSelection(PatchTypeField, typePatchTypeField)
662 #define makeNullConstructablePatchTypeField(PatchTypeField, typePatchTypeField)\
663 defineTypeNameAndDebug(typePatchTypeField, 0); \
664 addToNullConstructablePatchFieldRunTimeSelection \
672 #define makeRemovablePatchTypeField(PatchTypeField, typePatchTypeField) \
673 defineTypeNameAndDebug(typePatchTypeField, 0); \
674 addRemovableToPatchFieldRunTimeSelection(PatchTypeField, typePatchTypeField)
678 #define makeTemplatePatchTypeField(fieldType, type) \
679 defineNamedTemplateTypeNameAndDebug \
681 CAT4(type, FvPatch, CAPITALIZE(fieldType), Field), \
684 addToPatchFieldRunTimeSelection \
686 CAT3(fvPatch, CAPITALIZE(fieldType), Field), \
687 CAT4(type, FvPatch, CAPITALIZE(fieldType), Field) \
692 #define makeNullConstructableTemplatePatchTypeField(fieldType, type) \
693 defineNamedTemplateTypeNameAndDebug \
695 CAT4(type, FvPatch, CAPITALIZE(fieldType), Field), \
698 addToNullConstructablePatchFieldRunTimeSelection \
700 CAT3(fvPatch, CAPITALIZE(fieldType), Field), \
701 CAT4(type, FvPatch, CAPITALIZE(fieldType), Field) \
705 #define makePatchFields(type) \
706 FOR_ALL_FIELD_TYPES(makeTemplatePatchTypeField, type)
709 #define makeNullConstructablePatchFields(type) \
710 FOR_ALL_FIELD_TYPES(makeNullConstructableTemplatePatchTypeField, type)
713 #define makePatchFieldTypeName(fieldType, type) \
714 defineNamedTemplateTypeNameAndDebug \
716 CAT4(type, FvPatch, CAPITALIZE(fieldType), Field), \
721 #define makePatchFieldTypeNames(type) \
722 FOR_ALL_FIELD_TYPES(makePatchFieldTypeName, type)
725 #define makePatchTypeFieldTypedef(fieldType, type) \
726 typedef type##FvPatchField<fieldType> \
727 CAT4(type, FvPatch, CAPITALIZE(fieldType), Field);
730 #define makePatchTypeFieldTypedefs(type) \
731 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 keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
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.
fvPatch Patch
The patch type.
slicedFvPatchField< Type > Sliced
The sliced patch field type.
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
The calculated patch field type.
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.
Specialisation of fvPatchField which creates the underlying fvPatchField as a slice of the given comp...
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.