MercuryDPM  0.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MatrixSymmetric.h File Reference
#include <cmath>
#include <sstream>
#include "Matrix.h"

Go to the source code of this file.

Classes

class  MatrixSymmetric3D
 Implementation of a 3D symmetric matrix. More...
 

Functions

MatrixSymmetric3D SymmetrizedDyadic (Vec3D A, Vec3D B)
 calculates the symmetrized dyadic product ( $ (A \otimes B + B \otimes A)/2 $) More...
 

Function Documentation

MatrixSymmetric3D SymmetrizedDyadic ( Vec3D  A,
Vec3D  B 
)

calculates the symmetrized dyadic product ( $ (A \otimes B + B \otimes A)/2 $)

Definition at line 169 of file MatrixSymmetric.h.

References Vec3D::X, Vec3D::Y, and Vec3D::Z.

Referenced by StatisticsVector< T >::evaluate_particle_statistics(), and StatisticsVector< T >::gather_statistics_collision().

169  {
170  return MatrixSymmetric3D(A.X*B.X, 0.5*(A.X*B.Y+B.X*A.Y), 0.5*(A.X*B.Z+B.X*A.Z), A.Y*B.Y, 0.5*(A.Y*B.Z+B.Y*A.Z), A.Z*B.Z);
171 }
Mdouble X
Definition: Vector.h:44
Mdouble Y
Definition: Vector.h:44
Mdouble Z
Definition: Vector.h:44
Implementation of a 3D symmetric matrix.