All Classes Namespaces Files Functions Variables Typedefs Friends Macros Groups
Classes | Public Member Functions | List of all members
leastSquares Class Reference
Inheritance diagram for leastSquares:
Inheritance graph
[legend]
Collaboration diagram for leastSquares:
Collaboration graph
[legend]

Classes

class  extendedFaceStencilCalculateWeights
 Base methods for calculating weights. More...
 
class  extendedFaceStencilFindNeighbours
 Base methods for finding neighbours. More...
 
class  extendedFaceStencilScalarGrad
 
class  leastSquaresBase
 Base methods for calculating weights and finding neighbours. More...
 
class  leastSquaresStencil
 Realisation least squares method for calculationg of differential operators. More...
 

Public Member Functions

 TypeName ("leastSquares")
 
 leastSquares (const IOobject &)
 Construct from IOobject. Optional flag for if IOobject is the. More...
 
 ~leastSquares ()
 Destructor. More...
 
tmp< surfaceVectorField > Grad (const volScalarField &iF)
 Calculate gradient of volume scalar function on the faces. More...
 
tmp< surfaceTensorField > Grad (const volVectorField &iVF)
 Calculate gradient of volume vector field on the faces. More...
 
tmp< surfaceScalarField > Div (const volVectorField &iVF)
 Calculate divergence of volume vector field on the faces. More...
 
tmp< surfaceVectorField > Div (const volTensorField &iTF)
 Calculate divergence of volume tensor field on the faces. More...
 
- Public Member Functions inherited from fvscStencil
 TypeName ("fvscStencil")
 
 declareRunTimeSelectionTable (autoPtr, fvscStencil, components,(const IOobject &io),(io))
 
 fvscStencil (const IOobject &io)
 Construct from components. More...
 
virtual ~fvscStencil ()
 
virtual bool writeData (Ostream &) const
 
- Public Member Functions inherited from leastSquaresBase
 leastSquaresBase (const fvMesh &mesh)
 
 ~leastSquaresBase ()
 

Additional Inherited Members

- Static Public Member Functions inherited from fvscStencil
static autoPtr< fvscStencilNew (const word &name, const fvMesh &mesh)
 Return a reference to the selected fvscStencil model. More...
 
static fvscStencillookupOrNew (const word &nname, const fvMesh &mesh)
 static tmp<fvscStencil> lookupOrNew More...
 
- Protected Types inherited from leastSquaresBase
template<class T >
using List2 = List< List< T > >
 
template<class T >
using List3 = List2< List< T > >
 
template<class T >
using labelHashTable = HashTable< T, label, Hash< label >>
 
typedef HashSet< label, Hash
< label > > 
labelHashSet
 
template<class T >
using Triple = FixedList< T, 3 >
 
- Protected Member Functions inherited from leastSquaresBase
void findNeighbours ()
 Find neighbour cells for each face (throught face points). More...
 
void calculateWeights ()
 Compute weights for least squares scheme for gradient calculation. More...
 
- Protected Attributes inherited from fvscStencil
const fvMesh & mesh_
 
const Time & runTime_
 
surfaceVectorField nf_
 
- Protected Attributes inherited from leastSquaresBase
labelListList neighbourCells_
 
List2< vector > GdfAll_
 
List2< scalar > wf2All_
 
DynamicList< label > internalDegFaces_
 
List< label > procPairs_
 
List< label > neigProcs_
 
labelHashTable< label > idProcPatchPairs_
 
label nProcPatches_
 
List3< vector > procGdf_
 
List3< scalar > procWf2_
 
List3< label > myProcPatchCells_
 
List2< label > ownEnd_
 
List2< label > neiStart_
 
List2< label > neiEnd_
 
List2< label > corStart_
 
List2< label > corEnd_
 
labelHashTable< List< label > > pointCells_
 
labelHashTable< label > cellProc_
 
List2< Triple< label > > corAddr_
 
List2< label > corCellIds_
 
labelHashTable< label > corProcIds_
 
List< DynamicList< label > > procDegFaces_
 
- Static Protected Attributes inherited from fvscStencil
static PtrList< fvscStencilstencils_
 

Detailed Description

Definition at line 57 of file leastSquaresStencil.H.

Constructor & Destructor Documentation

leastSquares ( const IOobject &  io)

Construct from IOobject. Optional flag for if IOobject is the.

top level regIOobject.

Definition at line 51 of file leastSquaresStencil.C.

Destructor.

Definition at line 128 of file leastSquaresStencil.C.

Member Function Documentation

TypeName ( "leastSquares"  )
Foam::tmp< Foam::surfaceVectorField > Grad ( const volScalarField &  iF)
virtual
Foam::tmp< Foam::surfaceTensorField > Grad ( const volVectorField &  iVF)
virtual

Calculate gradient of volume vector field on the faces.

Parameters
iVFInternal vector field. Allowable values: constant reference to the volVectorField.
Returns
Gradient of iVF (tensor field) which was computed on the faces of mesh.

Reimplemented from fvscStencil.

Definition at line 141 of file leastSquaresStencil.C.

References forAll().

Here is the call graph for this function:

Foam::tmp< Foam::surfaceScalarField > Div ( const volVectorField &  iVF)
virtual

Calculate divergence of volume vector field on the faces.

Parameters
iVFInternal vector field. Allowable values: constant reference to the volVectorField.
Returns
Divergence of iVF (scalar field) which was computed on the faces of mesh.

Reimplemented from fvscStencil.

Definition at line 203 of file leastSquaresStencil.C.

References forAll().

Here is the call graph for this function:

Foam::tmp< Foam::surfaceVectorField > Div ( const volTensorField &  iTF)
virtual

Calculate divergence of volume tensor field on the faces.

Parameters
iTFInternal tensor field. Allowable values: constant reference to the volTensorField.
Returns
Divergence of iTF (vector field) which was computed on the faces of mesh.

Reimplemented from fvscStencil.

Definition at line 238 of file leastSquaresStencil.C.


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