FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

timeVaryingMappedFixedValueFvPatchField< Type > Class Template Reference

Foam::timeVaryingMappedFixedValueFvPatchField. More...

#include <finiteVolume/timeVaryingMappedFixedValueFvPatchField.H>


Detailed Description

template<class Type>
class Foam::timeVaryingMappedFixedValueFvPatchField< Type >

Foam::timeVaryingMappedFixedValueFvPatchField.

Interpolates from a set of supplied points in space and time. Supplied data in constant/boundaryData/<patchname>:

  • points : pointField with locations
  • ddd: supplied values at time ddd Points need to be more or less on a plane since get triangulated in 2D.

At startup this bc does the triangulation and determines linear interpolation (triangle it is in and weights to the 3 vertices) for every face centre. Interpolates linearly inbetween times.

inlet
{
typetimeVaryingMappedFixedValue;

// Maintain average to that of the supplied values
setAverage  false;

// Optional: change perturbation (default 1E-5) to avoid any ties
// in triangulating regular geometries.
//perturb   0.0;

// Optional: use name instead of patchname for location of data
//fieldTableName samples;
}

Switch on debug flag to have it dump the triangulation (in transformed space) and transform face centres.

Source files

Definition at line 83 of file timeVaryingMappedFixedValueFvPatchField.H.

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

List of all members.

Public Member Functions

 TypeName ("timeVaryingMappedFixedValue")
 Runtime type information.
 timeVaryingMappedFixedValueFvPatchField (const fvPatch &, const DimensionedField< Type, volMesh > &)
 Construct from patch and internal field.
 timeVaryingMappedFixedValueFvPatchField (const fvPatch &, const DimensionedField< Type, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary.
 timeVaryingMappedFixedValueFvPatchField (const timeVaryingMappedFixedValueFvPatchField< Type > &, const fvPatch &, const DimensionedField< Type, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given timeVaryingMappedFixedValueFvPatchField.
 timeVaryingMappedFixedValueFvPatchField (const timeVaryingMappedFixedValueFvPatchField< Type > &)
 Construct as copy.
virtual tmp< fvPatchField< Type > >  clone () const
 Construct and return a clone.
 timeVaryingMappedFixedValueFvPatchField (const timeVaryingMappedFixedValueFvPatchField< Type > &, const DimensionedField< Type, volMesh > &)
 Construct as copy setting internal field reference.
virtual tmp< fvPatchField< Type > >  clone (const DimensionedField< Type, volMesh > &iF) const
 Construct and return a clone setting internal field reference.
void  checkTable ()
 Find boundary data inbetween current time and interpolate.
const coordinateSystem &  referenceCS () const
 Return the coordinateSystem.
const Field< Type >  startSampledValues ()
virtual void  autoMap (const fvPatchFieldMapper &)
 Map (and resize as needed) from self given a mapping object.
virtual void  rmap (const fvPatchField< Type > &, const labelList &)
 Reverse map the given fvPatchField onto this fvPatchField.
virtual void  updateCoeffs ()
 Update the coefficients associated with the patch field.
virtual void  write (Ostream &) const
 Write.

Constructor & Destructor Documentation

timeVaryingMappedFixedValueFvPatchField ( const fvPatch &   p,
const DimensionedField< Type, volMesh > &   iF  
)

Construct from patch and internal field.

Definition at line 45 of file timeVaryingMappedFixedValueFvPatchField.C.

timeVaryingMappedFixedValueFvPatchField ( const fvPatch &   p,
const DimensionedField< Type, volMesh > &   iF,
const dictionary &   dict  
)

Construct from patch, internal field and dictionary.

Definition at line 97 of file timeVaryingMappedFixedValueFvPatchField.C.

References dictionary::found(), dictionary::lookup(), fvPatchField< Type >::operator==(), and fvPatch::size().

timeVaryingMappedFixedValueFvPatchField ( const timeVaryingMappedFixedValueFvPatchField< Type > &   ptf,
const fvPatch &   p,
const DimensionedField< Type, volMesh > &   iF,
const fvPatchFieldMapper &   mapper  
)

Construct by mapping given timeVaryingMappedFixedValueFvPatchField.

onto a new patch

Definition at line 70 of file timeVaryingMappedFixedValueFvPatchField.C.

Construct as copy setting internal field reference.

Definition at line 162 of file timeVaryingMappedFixedValueFvPatchField.C.


Member Function Documentation

TypeName ( "timeVaryingMappedFixedValue"    )

Runtime type information.

virtual tmp<fvPatchField<Type> > clone (  ) const [inline, virtual]

Construct and return a clone.

Reimplemented from fixedValueFvPatchField< Type >.

Definition at line 195 of file timeVaryingMappedFixedValueFvPatchField.H.

virtual tmp<fvPatchField<Type> > clone ( const DimensionedField< Type, volMesh > &   iF  ) const [inline, virtual]

Construct and return a clone setting internal field reference.

Reimplemented from fixedValueFvPatchField< Type >.

Definition at line 212 of file timeVaryingMappedFixedValueFvPatchField.H.

void checkTable (  )
const coordinateSystem& referenceCS (  ) const [inline]

Return the coordinateSystem.

Definition at line 231 of file timeVaryingMappedFixedValueFvPatchField.H.

const Field<Type> startSampledValues (  ) [inline]

Definition at line 237 of file timeVaryingMappedFixedValueFvPatchField.H.

void autoMap ( const fvPatchFieldMapper &   m  ) [virtual]

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

Reimplemented from fvPatchField< Type >.

Definition at line 188 of file timeVaryingMappedFixedValueFvPatchField.C.

References fvPatchField< Type >::autoMap().

void rmap ( const fvPatchField< Type > &   ptf,
const labelList &   addr  
) [virtual]
void updateCoeffs (  ) [virtual]
void write ( Ostream &   os  ) const [virtual]

The documentation for this class was generated from the following files: