45 "Inflow boundary condition");
66 const Array<
OneD,
const Array<OneD, NekDouble> > &inarray,
67 Array<
OneD, Array<OneD, NekDouble> > &A_0,
68 Array<
OneD, Array<OneD, NekDouble> > &beta,
76 Array<OneD, MultiRegions::ExpListSharedPtr> vessel(2);
81 vessel[0]->EvaluateBoundaryConditions(time);
88 Q = (vessel[0]->UpdateBndCondExpansion(n))->GetCoeffs()[0];
90 A_r = inarray[0][offset];
91 u_r = inarray[1][offset];
101 (vessel[0]->UpdateBndCondExpansion(n))->UpdatePhys()[0] = A_l;
102 (vessel[1]->UpdateBndCondExpansion(n))->UpdatePhys()[0] = u_l;
130 W2 = u_r - 4*sqrt(beta/(2*rho))*sqrt(sqrt(A_r));
134 while ((proceed) && (iter < MAX_ITER))
138 fa = Q - W2*A_calc - A_calc*4*sqrt(beta/(2*rho))*sqrt(sqrt(A_calc));
139 dfa = -W2 - 5*sqrt(beta/(2*rho))*sqrt(sqrt(A_calc));
140 delta_A_calc = fa/dfa;
141 A_calc = A_calc - delta_A_calc;
143 if (sqrt(delta_A_calc*delta_A_calc) < Tol)
148 uu = W2+4*sqrt(beta/(2*rho))*sqrt(sqrt(A_calc));