46 #include <lifev/core/LifeV.hpp> 58 Real i_HeartBeat = 0.0;
59 Real T_heartbeat = 0.8;
62 if ( time < T_heartbeat )
66 else if ( time >= T_heartbeat && time < 2*T_heartbeat )
70 else if ( time >= 2*T_heartbeat && time < 3*T_heartbeat )
74 else if ( time >= 3*T_heartbeat && time < 4*T_heartbeat )
79 if ( (time >= 0.05 && time <= 0.42) || (time >= (0.05+T_heartbeat) && time <= (0.42+T_heartbeat) ) || (time >= (0.05+2*T_heartbeat) && time <= (0.42+2*T_heartbeat) ) || (time >= (0.05+3*T_heartbeat) && time <= (0.42+3*T_heartbeat) ) )
82 Q = -2.314569820334801e+09*std::pow(time-i_HeartBeat*T_heartbeat,9) +
83 4.952537061974133e+09*std::pow(time-i_HeartBeat*T_heartbeat,8) -
84 4.532060231242586e+09*std::pow(time-i_HeartBeat*T_heartbeat,7) +
85 2.325743716202249e+09*std::pow(time-i_HeartBeat*T_heartbeat,6) -
86 7.387577876374097e+08*std::pow(time-i_HeartBeat*T_heartbeat,5) +
87 1.514516710083440e+08*std::pow(time-i_HeartBeat*T_heartbeat,4) -
88 2.018053394181958e+07*std::pow(time-i_HeartBeat*T_heartbeat,3) +
89 1.667954643625200e+06*std::pow(time-i_HeartBeat*T_heartbeat,2) -
90 7.160662399848596e+04*(time-i_HeartBeat*T_heartbeat) +
91 1.184312187078482e+03;
99 Real Q_inflow = 394*Q;
100 Real Q_flag4 = 20.25*Q;
101 Real Q_flag5 = 21.82*Q;
102 Real Q_flag6 = 1.43*Q;
103 Real Q_flag7 = 24.77*Q;
104 Real Q_flag8 = 4.69*Q;
105 Real Q_flag9 = 21.54*Q;
107 Real pressureValue = 1500.0/2.51*(Q_inflow - Q_flag4 - Q_flag5 - Q_flag6 - Q_flag7 - Q_flag8 - Q_flag9);
109 return pressureValue;
double Real
Generic real data.
Real fPressure(const Real &time, const Real &, const Real &, const Real &, const ID &)