Chi-Tech
|
#include <chi_meshtensor_rank2_dim3.h>
Public Member Functions | |
TensorRank2Dim3 () | |
TensorRank2Dim3 (const double value) | |
TensorRank2Dim3 (const TensorRank2Dim3 &that) | |
TensorRank2Dim3 & | operator= (const TensorRank2Dim3 &that) |
chi_mesh::Vector3 & | operator[] (int index) |
TensorRank2Dim3 | operator+ (const TensorRank2Dim3 &that) const |
TensorRank2Dim3 & | operator+= (const TensorRank2Dim3 &that) |
TensorRank2Dim3 | operator- (const TensorRank2Dim3 &that) const |
TensorRank2Dim3 & | operator-= (const TensorRank2Dim3 &that) |
TensorRank2Dim3 | operator* (const double value) const |
TensorRank2Dim3 & | operator*= (const double value) |
TensorRank2Dim3 | operator/ (const double value) const |
TensorRank2Dim3 & | operator/= (const double value) |
TensorRank2Dim3 | Transpose () |
Vector3 | Dot (const chi_mesh::Vector3 &v) const |
chi_mesh::Vector3 | Diag () const |
double | DiagSum () const |
std::string | PrintS () |
Data Fields | |
std::vector< chi_mesh::Vector3 > | t |
Tensor entries. More... | |
General rank 2 tensor to be used with Vector3
Definition at line 8 of file chi_meshtensor_rank2_dim3.h.
|
inline |
Default constructor.
Definition at line 13 of file chi_meshtensor_rank2_dim3.h.
|
inlineexplicit |
Constructor with specified value.
Definition at line 19 of file chi_meshtensor_rank2_dim3.h.
|
inline |
Copy constructor.
Definition at line 25 of file chi_meshtensor_rank2_dim3.h.
chi_mesh::Vector3 chi_mesh::TensorRank2Dim3::Diag | ( | ) | const |
Returns the diagonal of a rank-2 dim-3 tensor as a vector3.
Definition at line 56 of file chi_mesh_utilities.cc.
|
inline |
Returns the sum of the diagonal. Sometimes useful to get divergence of a vector given its gradient.
Definition at line 163 of file chi_meshtensor_rank2_dim3.h.
chi_mesh::Vector3 chi_mesh::TensorRank2Dim3::Dot | ( | const chi_mesh::Vector3 & | v | ) | const |
Dot product of rank-2 tensor with a vector.
Definition at line 44 of file chi_mesh_utilities.cc.
|
inline |
Component-wise multiplication by scalar.
Definition at line 95 of file chi_meshtensor_rank2_dim3.h.
|
inline |
In-place component-wise multiplication by scalar.
Definition at line 107 of file chi_meshtensor_rank2_dim3.h.
|
inline |
Component-wise addition.
Definition at line 47 of file chi_meshtensor_rank2_dim3.h.
|
inline |
In-place component-wise addition.
Definition at line 59 of file chi_meshtensor_rank2_dim3.h.
|
inline |
Component-wise subtraction.
Definition at line 71 of file chi_meshtensor_rank2_dim3.h.
|
inline |
In-place component-wise subtraction.
Definition at line 83 of file chi_meshtensor_rank2_dim3.h.
|
inline |
Component-wise division by scalar.
Definition at line 119 of file chi_meshtensor_rank2_dim3.h.
|
inline |
In-place component-wise division by scalar.
Definition at line 131 of file chi_meshtensor_rank2_dim3.h.
|
inline |
Component-wise copy
Definition at line 31 of file chi_meshtensor_rank2_dim3.h.
|
inline |
Element access.
Definition at line 39 of file chi_meshtensor_rank2_dim3.h.
|
inline |
Prints the vector to a string and then returns the string.
Definition at line 174 of file chi_meshtensor_rank2_dim3.h.
|
inline |
Classical transpose of the tensor.
Definition at line 143 of file chi_meshtensor_rank2_dim3.h.
std::vector<chi_mesh::Vector3> chi_mesh::TensorRank2Dim3::t |
Tensor entries.
Definition at line 10 of file chi_meshtensor_rank2_dim3.h.