Use Householder inverse for reconstruct
This commit is contained in:
parent
eb2dcad003
commit
bf0316a4a7
1 changed files with 8 additions and 3 deletions
|
@ -68,8 +68,8 @@ reconstruct
|
|||
IOobject::NO_READ,
|
||||
IOobject::NO_WRITE
|
||||
),
|
||||
inv(surfaceSum(sqr(mesh.Sf())/mesh.magSf()))
|
||||
& surfaceSum((mesh.Sf()/mesh.magSf())*ssf),
|
||||
mesh,
|
||||
ssf.dimensions()/dimArea,
|
||||
zeroGradientFvPatchField<GradType>::typeName
|
||||
)
|
||||
);
|
||||
|
@ -87,9 +87,14 @@ reconstruct
|
|||
GeometricField<GradType, fvPatchField, volMesh> fluxTimesNormal =
|
||||
surfaceSum((mesh.Sf()/mesh.magSf())*ssf);
|
||||
|
||||
// Note: hinv inverse must be used to stabilise the inverse on bad meshes
|
||||
// HJ, 19/Aug/2015
|
||||
reconField.internalField() =
|
||||
(
|
||||
inv(surfaceSum(sqr(mesh.Sf())/mesh.magSf())().internalField())
|
||||
hinv
|
||||
(
|
||||
surfaceSum(sqr(mesh.Sf())/mesh.magSf())().internalField()
|
||||
)
|
||||
& fluxTimesNormal.internalField()
|
||||
);
|
||||
|
||||
|
|
Reference in a new issue