42 {
myT[0] = t11;
myT[1] = t22;
myT[2] = t12; }
52 for (
int i=0; i<3; i++)
myT[i] += t.
myT[i];
58 for (
int i=0; i<3; i++)
myT[i] -= t.
myT[i];
64 for (
int i=0; i<3; i++)
myT[i] *= d;
70 for (
int i=0; i<3; i++)
myT[i] /= d;
123 #ifdef FFA_INDEXCHECK
125 std::cerr <<
"FFaTensor2::operator[]: index i="<< i <<
" is out of range [0,2]"
133 #ifdef FFA_INDEXCHECK
135 std::cerr <<
"FFaTensor2::operator[]: index i="<< i <<
" is out of range [0,2]"
Definition: FFaTensor1.H:24
Definition: FFaTensor2.H:27
FFaTensor2 & operator+=(const FFaTensor2 &t)
Definition: FFaTensor2.H:50
FFaTensor2 & rotate(const double ex[2], const double ey[2])
Definition: FFaTensor2.C:65
FFaTensor2 & operator/=(double d)
Definition: FFaTensor2.H:68
FFaTensor2()
Definition: FFaTensor2.H:34
friend FFaTensor2 operator-(const FFaTensor2 &)
Definition: FFaTensor2.C:190
double myT[3]
Definition: FFaTensor2.H:28
const double & operator[](int i) const
Definition: FFaTensor2.H:121
FFaTensor2 & operator*=(double d)
Definition: FFaTensor2.H:62
void prinsipalValues(double &max, double &min) const
Definition: FFaTensor2.C:151
friend FFaTensor2 operator+(const FFaTensor2 &, const FFaTensor2 &)
Definition: FFaTensor2.C:196
FFaTensor2(const double *t)
Definition: FFaTensor2.H:37
FFaTensor2(const float *t)
Definition: FFaTensor2.H:36
double maxShear() const
Definition: FFaTensor2.C:87
friend std::istream & operator>>(std::istream &s, FFaTensor2 &b)
Definition: FFaTensor2.C:281
const double * getPt() const
Definition: FFaTensor2.H:76
double * getPt()
Definition: FFaTensor2.H:77
friend std::ostream & operator<<(std::ostream &s, const FFaTensor2 &b)
Definition: FFaTensor2.C:275
FFaTensor2(double d)
Definition: FFaTensor2.H:35
FFaTensor2 & operator=(const FFaTensor1 &t)
Definition: FFaTensor2.C:53
double minPrinsipal() const
Definition: FFaTensor2.C:136
double maxPrinsipal(bool absMax=false) const
Definition: FFaTensor2.C:121
friend FFaTensor2 operator/(const FFaTensor2 &, double)
Definition: FFaTensor2.C:222
FFaTensor2 & operator-=(const FFaTensor2 &t)
Definition: FFaTensor2.H:56
FFaTensor2(double t11, double t22, double t12=0.0)
Definition: FFaTensor2.H:41
friend bool operator==(const FFaTensor2 &, const FFaTensor2 &)
Definition: FFaTensor2.C:231
friend FFaTensor2 operator*(const FFaTensor2 &, double)
Definition: FFaTensor2.C:211
double vonMises() const
Definition: FFaTensor2.C:76
FFaTensor2(const FFaTensor2 &t)
Definition: FFaTensor2.H:38
friend bool operator!=(const FFaTensor2 &, const FFaTensor2 &)
Definition: FFaTensor2.C:237
Definition: FFaTensor3.H:27
Definition: FFaMat33.H:15
Definition: FFaMat34.H:16
Class for point vectors in 3D space.
Definition: FFaVec3.H:40
real(sp), dimension(:,:,:), pointer b
Definition: diffractionModule.f90:22