57 Real scale_factor = -50.;
62 Real intervallorampa = 0.05;
66 Real percar = 60.0 / strokes;
68 Real pigreco2 = 6.2831853;
70 Real coeff02 = - 0.35;
72 Real coeff12 = - 0.05;
76 Real coeff42 = - 0.04;
77 Real prefirst = 0.15 * Tfin;
78 Real first = 0.2 * Tfin;
79 Real presecond = 0.3 * Tfin;
80 Real second = 0.51 * Tfin;
81 Real a, b1, b2, a22, a12, a11, a21, det, dt, coeff22, coeff23, coeff32, coeff33;
86 if (time < intervallorampa)
92 newtime = time + deltat - intervallorampa;
95 while (Taux < newtime)
99 Tcorr = newtime - Taux + Tfin;
106 if (Tcorr <= prefirst)
108 a = pigreco2 * Tcorr / first;
109 flux = coeff01 + coeff02 * cos (a);
112 else if ( (Tcorr > prefirst) && (Tcorr <= first) )
114 b1 = coeff01 - coeff31;
115 b2 = coeff02 * pigreco2 / first;
116 a22 = prefirst - first;
121 det = a22 * a11 - a12 * a21;
122 coeff32 = (a22 * b1 - a12 * b2) / det;
123 coeff33 = (a11 * b2 - a21 * b1) / det;
125 flux = coeff32 * dt * dt * dt * dt + coeff33 * dt * dt + coeff31;
128 else if ( (Tcorr > first) && (Tcorr <= presecond) )
130 a = pigreco2 * (Tcorr) / first;
131 flux = coeff41 + coeff42 * cos (a);
134 else if ( (Tcorr > presecond) && (Tcorr <= second) )
136 a = pigreco2 * (Tcorr - first) / first;
137 flux = coeff11 + coeff12 * cos (a);
139 else if (Tcorr > second)
141 a = pigreco2 * (second - first) / first;
142 b1 = coeff11 + coeff12 * cos (a) - coeff21;
143 b2 = - coeff12 * pigreco2 * sin (a) / first;
147 a21 = - 4 * a12 * a22;
149 det = a22 * a11 - a12 * a21;
150 coeff22 = (a22 * b1 - a12 * b2) / det;
151 coeff23 = (a11 * b2 - a21 * b1) / det;
153 flux = coeff22 * dt * dt * dt * dt + coeff23 * dt * dt + coeff21;
155 if (time < intervallorampa)
157 flux = ( time / intervallorampa ) * scale_factor * flux;
161 flux = scale_factor * flux;
175 #ifdef ANEURISM100170 638 ERROR_MSG (
"This entry is not allowed: ud_functions.hpp");
659 ERROR_MSG (
"This entrie is not allowed: ud_functions.hpp");
672 return - (t < (0.005 / 2) ) * std::sin (2 *
M_PI * t / 0.005) * std::sin (2 *
M_PI * t / 0.005);
679 return -50000 * std::sin (2 * 3.1415 * t / 0.005) * std::sin (2 * 3.1415 * t / 0.005);
Real fZero(const Real &, const Real &, const Real &, const Real &, const ID &)
Real d0(const Real &t, const Real &x, const Real &y, const Real &z, const ID &i)
Real E(const Real &, const Real &, const Real &, const Real &, const ID &)
Real fluxFunction(const Real &, const Real &, const Real &, const Real &, const ID &)
Real p0(const Real &t, const Real &x, const Real &y, const Real &z, const ID &i)
void updateInverseJacobian(const UInt &iQuadPt)
Real w0(const Real &t, const Real &x, const Real &y, const Real &z, const ID &i)
Real f(const Real &t, const Real &x, const Real &y, const Real &z, const ID &i)
Real benchmarkP(const Real &t, const Real &, const Real &, const Real &, const ID &)
Real uInterpolated(const Real &time, const Real &, const Real &, const Real &, const ID &i)
Real aortaPhisPress(const Real &t, const Real &x=0, const Real &y=0, const Real &z=0, const ID &i=0)
double Real
Generic real data.
Real u1(const Real &t, const Real &x, const Real &y, const Real &z, const ID &i)
Real u0(const Real &t, const Real &x, const Real &y, const Real &z, const ID &i)
Real u2(const Real &t, const Real &, const Real &, const Real &, const ID &i)