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 leastSquaresBase
 leastSquaresBase (const fvMesh &mesh)
 
 ~leastSquaresBase ()
 

Additional Inherited Members

- 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 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_
 

Detailed Description

Definition at line 55 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 49 of file leastSquaresStencil.C.

Destructor.

Definition at line 126 of file leastSquaresStencil.C.

Member Function Documentation

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

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.

Definition at line 139 of file leastSquaresStencil.C.

References forAll(), Grad(), mesh_, and nf_.

Here is the call graph for this function:

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

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.

Definition at line 201 of file leastSquaresStencil.C.

References forAll(), Grad(), mesh_, and nf_.

Here is the call graph for this function:

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

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.

Definition at line 236 of file leastSquaresStencil.C.


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