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

Classes

class  extendedFaceStencilFormVfValues
 Function for filling of array which contain which will contain the cells necessary for use by several processors. Source file extendedFaceStencilScalarDer.C extendedFaceStencilScalarGradOpt.C leastSquaresStencilOpt.C. More...
 
class  extendedFaceStencilScalarDer
 Methods for optimal calculating of directional derivative. With parallel realisation. More...
 
class  extendedFaceStencilScalarGradOpt
 Methods for optimal calculating of directional derivative. With parallel realisation. More...
 
class  leastSquaresStencilOpt
 Methods for optimal calculating of directional derivative. With parallel realisation. More...
 

Public Member Functions

 TypeName ("leastSquaresOpt")
 
 leastSquaresOpt (const IOobject &)
 Construct from IOobject. Optional flag for if IOobject is the. More...
 
 ~leastSquaresOpt ()
 Destructor. More...
 
tmp< surfaceVectorField > Grad (const volScalarField &iF)
 Calculate gradient of volume scalar function on the faces. More...
 
tmp< surfaceVectorField > Grad (const volScalarField &iF, const surfaceScalarField &)
 
tmp< surfaceTensorField > Grad (const volVectorField &iVF)
 
tmp< surfaceTensorField > Grad (const volVectorField &iVF, const surfaceVectorField &)
 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 ()
 

Protected Member Functions

void faceScalarDer (const Field< scalar > &iF, const Field< scalar > &sF, int com, surfaceScalarField &rField)
 
void faceScalarDer (const tmp< Field< scalar >> &tiF, const tmp< Field< scalar >> &tsF, int com, tmp< surfaceScalarField > &trField)
 
void faceScalarDer (const List3< scalar > &procVfValues, const surfaceScalarField &sF, int derComp, surfaceScalarField &rField)
 
void faceScalarDer (const tmp< List3< scalar >> &tprocVfValues, const tmp< surfaceScalarField > &tsF, int derComp, tmp< surfaceScalarField > &trField)
 
void formVfValues (const volScalarField &iF, List3< scalar > &procVfValues)
 
template<class FieldType >
void formVfValues (const GeometricField< FieldType, fvPatchField, volMesh > &iF, List< List3< scalar >> &procVfValues)
 
- 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...
 

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 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 55 of file leastSquaresStencilOpt.H.

Constructor & Destructor Documentation

leastSquaresOpt ( const IOobject &  io)

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

top level regIOobject.

Definition at line 56 of file leastSquaresStencilOpt.C.

Destructor.

Definition at line 64 of file leastSquaresStencilOpt.C.

Member Function Documentation

void faceScalarDer ( const Field< scalar > &  iF,
const Field< scalar > &  sF,
int  com,
surfaceScalarField &  rField 
)
protected

Definition at line 34 of file extendedFaceStencilScalarDer.C.

References forAll(), and leastSquaresBase::GdfAll_.

Here is the call graph for this function:

void faceScalarDer ( const tmp< Field< scalar >> &  tiF,
const tmp< Field< scalar >> &  tsF,
int  com,
tmp< surfaceScalarField > &  trField 
)
protected
void faceScalarDer ( const List3< scalar > &  procVfValues,
const surfaceScalarField &  sF,
int  derComp,
surfaceScalarField &  rField 
)
protected

Definition at line 52 of file extendedFaceStencilScalarDer.C.

void faceScalarDer ( const tmp< List3< scalar >> &  tprocVfValues,
const tmp< surfaceScalarField > &  tsF,
int  derComp,
tmp< surfaceScalarField > &  trField 
)
protected

Definition at line 79 of file extendedFaceStencilScalarDer.C.

void formVfValues ( const volScalarField &  iF,
List3< scalar > &  procVfValues 
)
inlineprotected

Definition at line 31 of file leastSquaresStencilOpt.H.

void formVfValues ( const GeometricField< FieldType, fvPatchField, volMesh > &  iF,
List< List3< scalar >> &  procVfValues 
)
inlineprotected

Definition at line 147 of file leastSquaresStencilOpt.H.

TypeName ( "leastSquaresOpt"  )
Foam::tmp< Foam::surfaceVectorField > Grad ( const volScalarField &  iF)
virtual

Calculate gradient of volume scalar function on the faces.

Parameters
iFInternal scalar field. Allowable values: constant reference to the volScalarField.
Returns
Gradient of iF (vector field) which was computed on the faces of mesh.

Reimplemented from fvscStencil.

Definition at line 50 of file extendedFaceStencilScalarGradOpt.C.

Foam::tmp< Foam::surfaceVectorField > Grad ( const volScalarField &  iF,
const surfaceScalarField &  sF 
)

Definition at line 57 of file extendedFaceStencilScalarGradOpt.C.

Foam::tmp< Foam::surfaceTensorField > Grad ( const volVectorField &  iVF)
virtual

Reimplemented from fvscStencil.

Definition at line 68 of file leastSquaresStencilOpt.C.

Foam::tmp< Foam::surfaceTensorField > Grad ( const volVectorField &  iVF,
const surfaceVectorField &  sVF 
)

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 82 of file leastSquaresStencilOpt.C.

References forAll(), and formVfValues().

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 188 of file leastSquaresStencilOpt.C.

References forAll(), and formVfValues().

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 258 of file leastSquaresStencilOpt.C.


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