mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Added "correction" function which return the correction form of the given matrix
by subtracting the matrix multiplied by the current field.
This commit is contained in:
@ -1168,7 +1168,7 @@ void Foam::fvMatrix<Type>::operator*=
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Friend Functions * * * * * * * * * * * * * //
|
||||
// * * * * * * * * * * * * * * * Global Functions * * * * * * * * * * * * * //
|
||||
|
||||
template<class Type>
|
||||
void Foam::checkMethod
|
||||
@ -1297,7 +1297,27 @@ Foam::lduMatrix::solverPerformance Foam::solve(const tmp<fvMatrix<Type> >& tfvm)
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Friend Operators * * * * * * * * * * * * * //
|
||||
template<class Type>
|
||||
Foam::tmp<Foam::fvMatrix<Type> > Foam::correction
|
||||
(
|
||||
const fvMatrix<Type>& A
|
||||
)
|
||||
{
|
||||
return A - (A & A.psi());
|
||||
}
|
||||
|
||||
|
||||
template<class Type>
|
||||
Foam::tmp<Foam::fvMatrix<Type> > Foam::correction
|
||||
(
|
||||
const tmp<fvMatrix<Type> >& tA
|
||||
)
|
||||
{
|
||||
return tA - (tA() & tA().psi());
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Global Operators * * * * * * * * * * * * * //
|
||||
|
||||
template<class Type>
|
||||
Foam::tmp<Foam::fvMatrix<Type> > Foam::operator==
|
||||
|
||||
@ -547,6 +547,18 @@ template<class Type>
|
||||
lduMatrix::solverPerformance solve(const tmp<fvMatrix<Type> >&);
|
||||
|
||||
|
||||
//- Return the correction form of the given matrix
|
||||
// by subtracting the matrix multiplied by the current field
|
||||
template<class Type>
|
||||
tmp<fvMatrix<Type> > correction(const fvMatrix<Type>&);
|
||||
|
||||
|
||||
//- Return the correction form of the given temporary matrix
|
||||
// by subtracting the matrix multiplied by the current field
|
||||
template<class Type>
|
||||
tmp<fvMatrix<Type> > correction(const tmp<fvMatrix<Type> >&);
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Global operators * * * * * * * * * * * * * //
|
||||
|
||||
template<class Type>
|
||||
|
||||
Reference in New Issue
Block a user