mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Add static identity members to primitive types
This commit is contained in:
@ -79,6 +79,7 @@ public:
|
||||
static const SymmTensor one;
|
||||
static const SymmTensor max;
|
||||
static const SymmTensor min;
|
||||
static const SymmTensor I;
|
||||
|
||||
|
||||
//- Component labeling enumeration
|
||||
|
||||
@ -75,6 +75,14 @@ const symmTensor symmTensor::min
|
||||
-VGREAT
|
||||
);
|
||||
|
||||
template<>
|
||||
const symmTensor symmTensor::I
|
||||
(
|
||||
1, 0, 0,
|
||||
1, 0,
|
||||
1
|
||||
);
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
|
||||
@ -82,6 +82,7 @@ public:
|
||||
static const Tensor one;
|
||||
static const Tensor max;
|
||||
static const Tensor min;
|
||||
static const Tensor I;
|
||||
|
||||
|
||||
//- Component labeling enumeration
|
||||
|
||||
@ -76,6 +76,14 @@ const tensor tensor::min
|
||||
-VGREAT, -VGREAT, -VGREAT
|
||||
);
|
||||
|
||||
template<>
|
||||
const tensor tensor::I
|
||||
(
|
||||
1, 0, 0,
|
||||
0, 1, 0,
|
||||
0, 0, 1
|
||||
);
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
|
||||
@ -75,6 +75,7 @@ public:
|
||||
static const Tensor2D one;
|
||||
static const Tensor2D max;
|
||||
static const Tensor2D min;
|
||||
static const Tensor2D I;
|
||||
|
||||
|
||||
//- Component labeling enumeration
|
||||
|
||||
@ -70,6 +70,13 @@ const tensor2D tensor2D::min
|
||||
-VGREAT, -VGREAT
|
||||
);
|
||||
|
||||
template<>
|
||||
const tensor2D tensor2D::I
|
||||
(
|
||||
1, 0,
|
||||
0, 1
|
||||
);
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
|
||||
Reference in New Issue
Block a user