CentredFitSnGrad: Change deltaCoeffs -> nonOrthDeltaCoeffs for very non-orthogonal meshes

This commit is contained in:
Henry
2013-04-10 12:15:47 +01:00
parent da535a449a
commit eecbe11085
3 changed files with 15 additions and 15 deletions

View File

@ -25,9 +25,7 @@ License
#include "CentredFitSnGradData.H" #include "CentredFitSnGradData.H"
#include "surfaceFields.H" #include "surfaceFields.H"
#include "volFields.H"
#include "SVD.H" #include "SVD.H"
#include "syncTools.H"
#include "extendedCentredCellToFaceStencil.H" #include "extendedCentredCellToFaceStencil.H"
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
@ -226,7 +224,7 @@ void Foam::CentredFitSnGradData<Polynomial>::calcFit()
// find the fit coefficients for every face in the mesh // find the fit coefficients for every face in the mesh
const surfaceScalarField& w = mesh.surfaceInterpolation::weights(); const surfaceScalarField& w = mesh.surfaceInterpolation::weights();
const surfaceScalarField& dC = mesh.deltaCoeffs(); const surfaceScalarField& dC = mesh.nonOrthDeltaCoeffs();
for (label facei = 0; facei < mesh.nInternalFaces(); facei++) for (label facei = 0; facei < mesh.nInternalFaces(); facei++)
{ {

View File

@ -25,7 +25,7 @@ Class
Foam::CentredFitSnGradData Foam::CentredFitSnGradData
Description Description
Data for the quadratic fit correction interpolation scheme Data for centred fit snGrad schemes
SourceFiles SourceFiles
CentredFitSnGradData.C CentredFitSnGradData.C
@ -64,6 +64,7 @@ class CentredFitSnGradData
// values of the stencil to obtain the gradient for each direction // values of the stencil to obtain the gradient for each direction
List<scalarList> coeffs_; List<scalarList> coeffs_;
public: public:
TypeName("CentredFitSnGradData"); TypeName("CentredFitSnGradData");

View File

@ -100,7 +100,7 @@ public:
const GeometricField<Type, fvPatchField, volMesh>& const GeometricField<Type, fvPatchField, volMesh>&
) const ) const
{ {
return this->mesh().deltaCoeffs(); return this->mesh().nonOrthDeltaCoeffs();
} }
//- Return true if this scheme uses an explicit correction //- Return true if this scheme uses an explicit correction
@ -132,10 +132,10 @@ public:
centralWeight_ centralWeight_
); );
const List<scalarList>& f = cfd.coeffs();
tmp<GeometricField<Type, fvsPatchField, surfaceMesh> > sft tmp<GeometricField<Type, fvsPatchField, surfaceMesh> > sft
= stencil.weightedSum(vf, f); (
stencil.weightedSum(vf, cfd.coeffs())
);
sft().dimensions() /= dimLength; sft().dimensions() /= dimLength;
@ -143,6 +143,7 @@ public:
} }
}; };
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace fv } // End namespace fv