mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: leastSquaresFaVectors: use pseudo inverse instead of direct inverse
This commit is contained in:
@ -6,7 +6,7 @@
|
|||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2016-2017 Wikki Ltd
|
Copyright (C) 2016-2017 Wikki Ltd
|
||||||
Copyright (C) 2020 OpenCFD Ltd.
|
Copyright (C) 2020-2022 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -159,7 +159,7 @@ void Foam::leastSquaresFaVectors::makeLeastSquaresVectors() const
|
|||||||
|
|
||||||
|
|
||||||
// Invert the dd tensor
|
// Invert the dd tensor
|
||||||
const symmTensorField invDd(inv(dd));
|
const symmTensorField invDd(pinv(dd));
|
||||||
|
|
||||||
|
|
||||||
// Revisit all faces and calculate the lsP and lsN vectors
|
// Revisit all faces and calculate the lsP and lsN vectors
|
||||||
|
|||||||
Reference in New Issue
Block a user