36 #ifndef EVALUTATION_ARCTAN_HPP 37 #define EVALUTATION_ARCTAN_HPP 39 #include <lifev/core/LifeV.hpp> 41 #include <lifev/eta/array/OperationSmallArcTan.hpp> 42 #include <lifev/eta/expression/ExpressionArcTan.hpp> 44 #include <lifev/core/fem/QuadratureRule.hpp> 49 namespace ExpressionAssembly
61 template <
typename EvaluationBaseType>
62 class EvaluationArcTan
68 typedef typename EvaluationBaseType::return_Type BaseReturn_Type;
96 EvaluationArcTan (
const EvaluationArcTan& eval)
97 : M_evaluationBase (eval.M_evaluationBase),
98 M_epsilon (eval.M_epsilon),
100 M_delta (eval.M_delta)
104 template <
typename BaseExpressionType>
105 explicit EvaluationArcTan (
const ExpressionArcTan<BaseExpressionType>& expression)
106 : M_evaluationBase (expression.base() ),
107 M_epsilon (expression.epsilon() ),
108 M_K (expression.K() ),
109 M_delta (expression.delta() )
113 ~EvaluationArcTan() {}
122 void update (
const UInt& iElement)
124 M_evaluationBase.update (iElement);
128 static void display ( std::ostream& out = std::cout )
131 EvaluationBaseType::display (out);
142 template<
typename CFEType >
143 void setGlobalCFE (
const CFEType* globalCFE)
145 M_evaluationBase.setGlobalCFE (globalCFE);
149 template<
typename CFEType >
150 void setTestCFE (
const CFEType* testCFE)
152 M_evaluationBase.setTestCFE (testCFE);
156 template<
typename CFEType >
157 void setSolutionCFE (
const CFEType* solutionCFE)
159 M_evaluationBase.setSolutionCFE (solutionCFE);
165 M_evaluationBase.setQuadrature (qr);
175 return_Type value_q (
const UInt& q)
const 177 return ( M_K ) * std::atan ( M_epsilon * ( M_evaluationBase.value_q (q) ) ) + ( M_delta );
181 return_Type value_qi (
const UInt& q,
const UInt& i)
const 183 return ( M_K ) * std::atan ( M_epsilon * ( M_evaluationBase.value_qi (q, i) ) ) + ( M_delta );
187 return_Type value_qij (
const UInt& q,
const UInt& i,
const UInt& j)
const 189 return ( M_K ) * std::atan ( M_epsilon * ( M_evaluationBase.value_qij (q, i, j) ) ) + ( M_delta );
205 EvaluationBaseType M_evaluationBase;
211 template<
typename EvaluationBaseType>
212 const flag_Type EvaluationArcTan<EvaluationBaseType>::S_globalUpdateFlag
213 = EvaluationBaseType::S_globalUpdateFlag;
215 template<
typename EvaluationBaseType>
216 const flag_Type EvaluationArcTan<EvaluationBaseType>::S_testUpdateFlag
217 = EvaluationBaseType::S_testUpdateFlag;
219 template<
typename EvaluationBaseType>
220 const flag_Type EvaluationArcTan<EvaluationBaseType>::S_solutionUpdateFlag
221 = EvaluationBaseType::S_solutionUpdateFlag;
uint32_type flag_Type
bit-flag with up to 32 different flags
void updateInverseJacobian(const UInt &iQuadPt)
double Real
Generic real data.
QuadratureRule - The basis class for storing and accessing quadrature rules.
class OperationSmallAddition Class containing information about the power operation between the *Smal...
uint32_type UInt
generic unsigned integer (used mainly for addressing)