46 #include <lifev/core/LifeV.hpp> 59 Real e = std::exp (-d*d*t*nu);
64 return -a * e * ( std::exp (a * x) * std::sin (a * y + d * z) + std::exp (a * z) * std::cos (a * x + d * y) );
66 return -a * e * ( std::exp (a * y) * std::sin (a * z + d * x) + std::exp (a * x) * std::cos (a * y + d * z) );
68 return -a * e * ( std::exp (a * z) * std::sin (a * x + d * y) + std::exp (a * y) * std::cos (a * z + d * x) );
83 Real e = std::exp (-d* d* t * nu);
91 return -a* e * ( a* std::exp (a* x) * std::sin (a* y + d* z) - a* std::exp (a* z) * std::sin (a* x + d* y) );
93 return -a* e * ( d* std::exp (a* y) * std::cos (a* z + d* x) + a* std::exp (a* x) * std::cos (a* y + d* z) );
95 return -a* e * ( a* std::exp (a* z) * std::cos (a* x + d* y) - d* std::exp (a* y) * std::sin (a* z + d* x) );
103 return -a* e * ( a* std::exp (a* x) * std::cos (a* y + d* z) - d* std::exp (a* z) * std::sin (a* x + d* y) );
105 return -a* e * ( a* std::exp (a* y) * std::sin (a* z + d* x) - a* std::exp (a* x) * std::sin (a* y + d* z) );
107 return -a* e * ( d* std::exp (a* z) * std::cos (a* x + d* y) + a* std::exp (a* y) * std::cos (a* z + d* x) );
115 return -a* e * ( d* std::exp (a* x) * std::cos (a* y + d* z) + a* std::exp (a* z) * std::cos (a* x + d* y) );
117 return -a* e * ( a* std::exp (a* y) * std::cos (a* z + d* x) - d* std::exp (a* x) * std::sin (a* y + d* z) );
119 return -a* e * ( a* std::exp (a* z) * std::sin (a* x + d* y) - a* std::exp (a* y) * std::sin (a* z + d* x) );
139 return - a*a/2.0*std::exp(-2.0*d*d*nu*t)*(std::exp (2.0*a*x)+std::exp(2.0*a*y)+std::exp(2.0*a*z) +
140 2.0*std::sin(a*x+d*y)*std::cos(a*z+d*x)*std::exp(a*(y+z)) +
141 2.0*std::sin(a*y+d*z)*std::cos(a*x+d*y)*std::exp(a*(z+x)) +
142 2.0*std::sin(a*z+d*x)*std::cos(a*y+d*z)*std::exp(a*(x+y)) );
148 Real dinamic_viscosity = 0.01;
153 Real n[3] = {0.0, 0.0, -1.0};
157 for (
UInt k = 0; k < 3; k++){
163 for (
UInt k = 0; k < 3; k++){
Real exactPressure(const Real &t, const Real &x, const Real &y, const Real &z, const ID &i)
Real exactVelocity(const Real &t, const Real &x, const Real &y, const Real &z, const ID &i)
double Real
Generic real data.
Real normalStress(const Real &t, const Real &x, const Real &y, const Real &z, const ID &i)
Real gradientVelocity(const UInt &icoor, const Real &t, const Real &x, const Real &y, const Real &z, const ID &i)
uint32_type UInt
generic unsigned integer (used mainly for addressing)