36 #ifndef EVALUTATION_SYMMETRICTENSOR_HPP 37 #define EVALUTATION_SYMMETRICTENSOR_HPP 40 #include <lifev/core/LifeV.hpp> 42 #include <lifev/eta/array/OperationSmallSymmetricTensor.hpp> 44 #include <lifev/eta/expression/ExpressionSymmetricTensor.hpp> 46 #include <lifev/core/fem/QuadratureRule.hpp> 51 namespace ExpressionAssembly
63 template <
typename EvaluationType>
64 class EvaluationSymmetricTensor
100 EvaluationSymmetricTensor (
const EvaluationSymmetricTensor& eval)
101 : M_evaluation (eval.M_evaluation)
105 template<
typename Expression>
106 explicit EvaluationSymmetricTensor (
const ExpressionSymmetricTensor<Expression>& expression)
107 : M_evaluation (expression.exprEx() )
111 ~EvaluationSymmetricTensor()
121 void update (
const UInt& iElement)
123 M_evaluation.update (iElement);
127 static void display (std::ostream& out = std::cout)
130 EvaluationType::display (out);
141 template<
typename CFEType >
142 void setGlobalCFE (
const CFEType* globalCFE)
144 M_evaluation.setGlobalCFE (globalCFE);
148 template<
typename CFEType >
149 void setTestCFE (
const CFEType* testCFE)
151 M_evaluation.setTestCFE (testCFE);
155 template<
typename CFEType >
156 void setSolutionCFE (
const CFEType* solutionCFE)
158 M_evaluation.setSolutionCFE (solutionCFE);
164 M_evaluation.setQuadrature (qr);
174 return_Type value_q (
const UInt& q)
const 176 return ( M_evaluation.value_q (q) + M_evaluation.value_q (q).transpose() ) / 2.0 ;
180 return_Type value_qi (
const UInt& q,
const UInt& i)
const 182 return ( M_evaluation.value_qi (q, i) + M_evaluation.value_qi (q, i).transpose() ) / 2.0;
186 return_Type value_qij (
const UInt& q,
const UInt& i,
const UInt& j)
const 188 return ( M_evaluation.value_qij (q, i, j) + M_evaluation.value_qij (q, i, j).transpose() ) / 2.0;
199 EvaluationSymmetricTensor();
204 EvaluationType M_evaluation;
208 template<
typename EvaluationType >
209 const flag_Type EvaluationSymmetricTensor<EvaluationType>::S_globalUpdateFlag
210 = EvaluationType::S_globalUpdateFlag;
212 template<
typename EvaluationType >
213 const flag_Type EvaluationSymmetricTensor<EvaluationType>::S_testUpdateFlag
214 = EvaluationType::S_testUpdateFlag;
216 template<
typename EvaluationType >
217 const flag_Type EvaluationSymmetricTensor<EvaluationType>::S_solutionUpdateFlag
218 = EvaluationType::S_solutionUpdateFlag;
uint32_type flag_Type
bit-flag with up to 32 different flags
void updateInverseJacobian(const UInt &iQuadPt)
class OperationSmallTranspose Class containing information about the transpose operation for Small* c...
QuadratureRule - The basis class for storing and accessing quadrature rules.
uint32_type UInt
generic unsigned integer (used mainly for addressing)