OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

pointPatchField< Type > Class Template Reference

Abstract base class for point-mesh patch fields. More...

Inheritance diagram for pointPatchField< Type >:
Collaboration diagram for pointPatchField< Type >:

List of all members.


Public Types

typedef pointPatch Patch

Public Member Functions

 TypeName ("pointPatchField")
 Runtime type information.
 declareRunTimeSelectionTable (autoPtr, pointPatchField, pointPatch,(const pointPatch &p, const DimensionedField< Type, pointMesh > &iF),(p, iF))
 declareRunTimeSelectionTable (autoPtr, pointPatchField, patchMapper,(const pointPatchField< Type > &ptf, const pointPatch &p, const DimensionedField< Type, pointMesh > &iF, const pointPatchFieldMapper &m),(dynamic_cast< const pointPatchFieldType & >(ptf), p, iF, m))
 declareRunTimeSelectionTable (autoPtr, pointPatchField, dictionary,(const pointPatch &p, const DimensionedField< Type, pointMesh > &iF, const dictionary &dict),(p, iF, dict))
 pointPatchField (const pointPatch &, const DimensionedField< Type, pointMesh > &)
 Construct from patch and internal field.
 pointPatchField (const pointPatch &, const DimensionedField< Type, pointMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary.
 pointPatchField (const pointPatchField< Type > &)
 Construct as copy.
virtual autoPtr
< pointPatchField< Type > > 
clone () const =0
 Construct and return a clone.
 pointPatchField (const pointPatchField< Type > &, const DimensionedField< Type, pointMesh > &)
 Construct as copy setting internal field reference.
virtual autoPtr
< pointPatchField< Type > > 
clone (const DimensionedField< Type, pointMesh > &iF) const =0
 Construct and return a clone setting internal field reference.
virtual ~pointPatchField ()
const objectRegistry & db () const
 Return local objectRegistry.
label size () const
 Return size.
const pointPatch & patch () const
 Return patch.
const DimensionedField< Type,
pointMesh > & 
dimensionedInternalField () const
 Return dimensioned internal field reference.
const Field< Type > & internalField () const
 Return internal field reference.
virtual bool coupled () const
 Return true if this patch field is coupled.
bool updated () const
 Return true if the boundary condition has already been updated.
tmp< Field< Type > > patchInternalField () const
 Return field created from appropriate internal field values.
template<class Type1 >
tmp< Field< Type1 > > patchInternalField (const Field< Type1 > &iF) const
 Return field created from appropriate internal field values.
template<class Type1 >
void addToInternalField (Field< Type1 > &iF, const Field< Type1 > &pF) const
 Given the internal field and a patch field,.
template<class Type1 >
void setInInternalField (Field< Type1 > &iF, const Field< Type1 > &pF, const labelList &meshPoints) const
 Given the internal field and a patch field,.
template<class Type1 >
void setInInternalField (Field< Type1 > &iF, const Field< Type1 > &pF) const
 Given the internal field and a patch field,.
virtual void autoMap (const pointPatchFieldMapper &)
 Map (and resize as needed) from self given a mapping object.
virtual void rmap (const pointPatchField< Type > &, const labelList &)
 Reverse map the given pointPatchField onto this pointPatchField.
virtual void updateCoeffs ()
 Update the coefficients associated with the patch field.
virtual void initEvaluate (const Pstream::commsTypes commsType=Pstream::blocking)
 Initialise evaluation of the patch field (do nothing).
virtual void evaluate (const Pstream::commsTypes commsType=Pstream::blocking)
 Evaluate the patch field.
virtual void write (Ostream &) const
 Write.
virtual void operator= (const pointPatchField< Type > &)
virtual void operator+= (const pointPatchField< Type > &)
virtual void operator-= (const pointPatchField< Type > &)
virtual void operator*= (const pointPatchField< scalar > &)
virtual void operator/= (const pointPatchField< scalar > &)
virtual void operator= (const Field< Type > &)
virtual void operator+= (const Field< Type > &)
virtual void operator-= (const Field< Type > &)
virtual void operator*= (const Field< scalar > &)
virtual void operator/= (const Field< scalar > &)
virtual void operator= (const Type &)
virtual void operator+= (const Type &)
virtual void operator-= (const Type &)
virtual void operator*= (const scalar)
virtual void operator/= (const scalar)
virtual void operator== (const pointPatchField< Type > &)
virtual void operator== (const Field< Type > &)
virtual void operator== (const Type &)

Static Public Member Functions

static autoPtr
< pointPatchField< Type > > 
New (const word &, const pointPatch &, const DimensionedField< Type, pointMesh > &)
 Return a pointer to a new patchField created on freestore given.
static autoPtr
< pointPatchField< Type > > 
New (const pointPatchField< Type > &, const pointPatch &, const DimensionedField< Type, pointMesh > &, const pointPatchFieldMapper &)
 Return a pointer to a new patchField created on freestore from.
static autoPtr
< pointPatchField< Type > > 
New (const pointPatch &, const DimensionedField< Type, pointMesh > &, const dictionary &)
 Return a pointer to a new patchField created on freestore.
template<class Type2 >
static autoPtr
< pointPatchField< Type > > 
NewCalculatedType (const pointPatchField< Type2 > &)
 Return a pointer to a new CalculatedpointPatchField created on.
static const word & calculatedType ()
 Return the type of the calculated for of pointPatchField.

Static Public Attributes

static int disallowGenericPointPatchField
 Debug switch to disallow the use of genericPointPatchField.

Friends

Ostream & operator (Ostream &, const pointPatchField< Type > &)

Detailed Description

template<class Type>
class Foam::pointPatchField< Type >

Abstract base class for point-mesh patch fields.

The base-field does not store values as they are part of the "internal field". There are derived classes to store constraint values e.g. fixedValuePointPatchField derived from the generic valuePointPatchField which ensures the values in the "internal field" are reset to the fixed-values by applying the stored values.

Source files

Definition at line 74 of file pointPatchField.H.


Member Typedef Documentation

typedef pointPatch Patch

Definition at line 100 of file pointPatchField.H.


Constructor & Destructor Documentation

pointPatchField ( const pointPatch &  p,
const DimensionedField< Type, pointMesh > &  iF 
) [inline]

Construct from patch and internal field.

Definition at line 31 of file pointPatchField.C.

References p.

pointPatchField ( const pointPatch &  p,
const DimensionedField< Type, pointMesh > &  iF,
const dictionary &  dict 
) [inline]

Construct from patch, internal field and dictionary.

Definition at line 45 of file pointPatchField.C.

pointPatchField ( const pointPatchField< Type > &  ptf  )  [inline]

Construct as copy.

Definition at line 60 of file pointPatchField.C.

pointPatchField ( const pointPatchField< Type > &  ptf,
const DimensionedField< Type, pointMesh > &  iF 
) [inline]

Construct as copy setting internal field reference.

Definition at line 73 of file pointPatchField.C.

virtual ~pointPatchField (  )  [inline, virtual]


Member Function Documentation

TypeName ( "pointPatchField< Type >"   ) 

Runtime type information.

declareRunTimeSelectionTable ( autoPtr  ,
pointPatchField< Type >  ,
pointPatch  ,
(const pointPatch &p, const DimensionedField< Type, pointMesh > &iF)  ,
(p, iF)   
)

declareRunTimeSelectionTable ( autoPtr  ,
pointPatchField< Type >  ,
patchMapper  ,
(const pointPatchField< Type > &ptf, const pointPatch &p, const DimensionedField< Type, pointMesh > &iF, const pointPatchFieldMapper &m)  ,
(dynamic_cast< const pointPatchFieldType & >(ptf), p, iF, m)   
)

declareRunTimeSelectionTable ( autoPtr  ,
pointPatchField< Type >  ,
dictionary  ,
(const pointPatch &p, const DimensionedField< Type, pointMesh > &iF, const dictionary &dict)  ,
(p, iF, dict)   
)

Foam::autoPtr< Foam::pointPatchField< Type > > New ( const word &  patchFieldType,
const pointPatch &  p,
const DimensionedField< Type, pointMesh > &  iF 
) [inline, static]

Return a pointer to a new patchField created on freestore given.

patch and internal field (does not set the patch field values)

Definition at line 22 of file newPointPatchField.C.

References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorIn, and Foam::Info.

Here is the call graph for this function:

Foam::autoPtr< Foam::pointPatchField< Type > > New ( const pointPatchField< Type > &  ptf,
const pointPatch &  p,
const DimensionedField< Type, pointMesh > &  iF,
const pointPatchFieldMapper &  pfMapper 
) [inline, static]

Return a pointer to a new patchField created on freestore from.

a given pointPatchField mapped onto a new patch

Definition at line 145 of file newPointPatchField.C.

Foam::autoPtr< Foam::pointPatchField< Type > > New ( const pointPatch &  p,
const DimensionedField< Type, pointMesh > &  iF,
const dictionary &  dict 
) [inline, static]

Return a pointer to a new patchField created on freestore.

from dictionary

Definition at line 69 of file newPointPatchField.C.

autoPtr< pointPatchField< Type > > NewCalculatedType ( const pointPatchField< Type2 > &  pf  )  [inline, static]

Return a pointer to a new CalculatedpointPatchField created on.

freestore without setting patchField values

Definition at line 85 of file calculatedPointPatchField.C.

const objectRegistry & db (  )  const [inline]

Return local objectRegistry.

Definition at line 88 of file pointPatchField.C.

label size (  )  const [inline]

Return size.

Reimplemented in valuePointPatchField< Type >, valuePointPatchField< Type >, and valuePointPatchField< vector >.

Definition at line 253 of file pointPatchField.H.

const pointPatch& patch (  )  const [inline]

Return patch.

Definition at line 259 of file pointPatchField.H.

const DimensionedField<Type, pointMesh>& dimensionedInternalField (  )  const [inline]

Return dimensioned internal field reference.

Definition at line 266 of file pointPatchField.H.

const Field<Type>& internalField (  )  const [inline]

Return internal field reference.

Definition at line 272 of file pointPatchField.H.

virtual bool coupled (  )  const [inline, virtual]

Return true if this patch field is coupled.

Reimplemented in coupledPointPatchField< Type >, processorPointPatchField< Type >, and coupledPointPatchField< Type >.

Definition at line 278 of file pointPatchField.H.

bool updated (  )  const [inline]

Return true if the boundary condition has already been updated.

Definition at line 284 of file pointPatchField.H.

tmp< Field< Type > > patchInternalField (  )  const [inline]

Return field created from appropriate internal field values.

Definition at line 108 of file pointPatchField.C.

References token::END_STATEMENT, and Ostream::writeKeyword().

Referenced by valuePointPatchField< Type >::operator=(), and valuePointPatchField< Type >::operator==().

Here is the call graph for this function:

Here is the caller graph for this function:

tmp< Field< Type1 > > patchInternalField ( const Field< Type1 > &  iF  )  const [inline]

Return field created from appropriate internal field values.

given internal field reference

Definition at line 117 of file pointPatchField.C.

void addToInternalField ( Field< Type1 > &  iF,
const Field< Type1 > &  pF 
) const [inline]

Given the internal field and a patch field,.

add the patch field to the internal field

Definition at line 153 of file pointPatchField.C.

void setInInternalField ( Field< Type1 > &  iF,
const Field< Type1 > &  pF,
const labelList &  meshPoints 
) const [inline]

Given the internal field and a patch field,.

set the patch field in the internal field

Definition at line 198 of file pointPatchField.C.

Referenced by pointPatchInterpolation::interpolate().

Here is the caller graph for this function:

void setInInternalField ( Field< Type1 > &  iF,
const Field< Type1 > &  pF 
) const [inline]

Given the internal field and a patch field,.

set the patch field in the internal field

Definition at line 241 of file pointPatchField.C.

const word & calculatedType (  )  [inline, static]

Return the type of the calculated for of pointPatchField.

Definition at line 26 of file calculatedPointPatchField.C.

virtual void autoMap ( const pointPatchFieldMapper &   )  [inline, virtual]

Map (and resize as needed) from self given a mapping object.

Reimplemented in genericPointPatchField< Type >, mixedPointPatchField< Type >, valuePointPatchField< Type >, valuePointPatchField< Type >, and valuePointPatchField< vector >.

Definition at line 344 of file pointPatchField.H.

virtual void rmap ( const pointPatchField< Type > &  ,
const labelList &   
) [inline, virtual]

virtual void initEvaluate ( const Pstream::commsTypes  commsType = Pstream::blocking  )  [inline, virtual]

Initialise evaluation of the patch field (do nothing).

Definition at line 371 of file pointPatchField.H.

virtual void operator= ( const pointPatchField< Type > &   )  [inline, virtual]

virtual void operator+= ( const pointPatchField< Type > &   )  [inline, virtual]

Definition at line 396 of file pointPatchField.H.

virtual void operator-= ( const pointPatchField< Type > &   )  [inline, virtual]

Definition at line 402 of file pointPatchField.H.

virtual void operator*= ( const pointPatchField< scalar > &   )  [inline, virtual]

Definition at line 408 of file pointPatchField.H.

virtual void operator/= ( const pointPatchField< scalar > &   )  [inline, virtual]

Definition at line 414 of file pointPatchField.H.

virtual void operator+= ( const Field< Type > &   )  [inline, virtual]

Definition at line 420 of file pointPatchField.H.

virtual void operator-= ( const Field< Type > &   )  [inline, virtual]

Definition at line 421 of file pointPatchField.H.

virtual void operator*= ( const Field< scalar > &   )  [inline, virtual]

Definition at line 423 of file pointPatchField.H.

virtual void operator/= ( const Field< scalar > &   )  [inline, virtual]

Definition at line 424 of file pointPatchField.H.

virtual void operator+= ( const Type &   )  [inline, virtual]

Definition at line 427 of file pointPatchField.H.

virtual void operator-= ( const Type &   )  [inline, virtual]

Definition at line 428 of file pointPatchField.H.

virtual void operator*= ( const   scalar  )  [inline, virtual]

Definition at line 429 of file pointPatchField.H.

virtual void operator/= ( const   scalar  )  [inline, virtual]

Definition at line 430 of file pointPatchField.H.

virtual void operator== ( const pointPatchField< Type > &   )  [inline, virtual]

virtual void operator== ( const Field< Type > &   )  [inline, virtual]

virtual void operator== ( const Type &   )  [inline, virtual]


Friends And Related Function Documentation

Ostream& operator ( Ostream &  ,
const pointPatchField< Type > &   
) [friend]


Member Data Documentation

int disallowGenericPointPatchField [inline, static]

Debug switch to disallow the use of genericPointPatchField.

Definition at line 107 of file pointPatchField.H.


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd