fvScalarMatrix in OpenFOAM

What is the fvScalarMatrix.

It is defined in fvMatricesFwd.H:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
namespace Foam
{

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

template<class Type>
class fvMatrix;

typedef fvMatrix<scalar> fvScalarMatrix;
typedef fvMatrix<vector> fvVectorMatrix;
typedef fvMatrix<sphericalTensor> fvSphericalTensorMatrix;
typedef fvMatrix<symmTensor> fvSymmTensorMatrix;
typedef fvMatrix<tensor> fvTensorMatrix;

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

} // End namespace Foam

Here we can see that fvScalarMatrix actually has a type of fvMatrix with a specified type scalar. So we have to go to class fvMatrix to see its definition.