Skip to content
Snippets Groups Projects
Commit e3bbe407 authored by Henry Weller's avatar Henry Weller
Browse files

SphericalTensor/Identity: Added dual form

parent 0a0e2820
Branches
Tags
1 merge request!33Merge foundation
......@@ -25,7 +25,8 @@ Class
Foam::Identity
Description
Templated Identity tensor derived from SphericalTensor.
Templated identity and dual space identity tensors
derived from SphericalTensor.
\*---------------------------------------------------------------------------*/
......@@ -51,13 +52,29 @@ class Identity
public:
// Constructors
//- Construct initializing the SphericalTensor to 1
Identity()
:
SphericalTensor<Cmpt>(1)
{}
//- The identity type in the dual space
class dual
:
public SphericalTensor<Cmpt>
{
//- Construct initializing the SphericalTensor to 1
Identity()
dual()
:
SphericalTensor<Cmpt>(1)
{}
};
//- Return the identity in the dual space
inline dual operator*()
{
return dual();
}
};
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment