Test-tensor2D.C
Go to the documentation of this file.
1 #include "tensor2D.H"
2 #include "IOstreams.H"
3 
4 using namespace Foam;
5 
6 int main()
7 {
8  vector2D v1(1, 2), v2(3, 4);
9  tensor2D t = v1*v2;
10 
11  Info<< "v1(1, 2)*v2(3, 4) = " << t << endl;
12 
13  return 0;
14 }
IOstreams.H
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
tensor2D.H
Foam::endl
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:251
Foam::Vector2D< scalar >
Foam::Tensor2D
Templated 2D tensor derived from VectorSpace adding construction from 4 components,...
Definition: Tensor2D.H:56
Foam::Info
messageStream Info
main
int main()
Definition: Test-tensor2D.C:6
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30