46 "RCR outflow boundary condition");
68 const Array<
OneD,
const Array<OneD, NekDouble> > &inarray,
69 Array<
OneD, Array<OneD, NekDouble> > &A_0,
70 Array<
OneD, Array<OneD, NekDouble> > &beta,
72 int omega,
int offset,
int n)
78 Array<OneD, MultiRegions::ExpListSharedPtr> vessel(2);
87 NekDouble RT=((vessel[0]->GetBndCondExpansions())[n])->GetCoeffs()[0];
88 NekDouble C=((vessel[1]->GetBndCondExpansions())[n])->GetCoeffs()[0];
97 int nq = vessel[0]->GetTotPoints();
99 A_l = inarray[0][offset+nq-1];
100 u_l = inarray[1][offset+nq-1];
103 c_0 = sqrt(beta[omega][nq-1]/(2*
m_rho))*sqrt(sqrt(A_0[omega][nq-1]));
107 R1 = rho*c_0/A_0[omega][nq-1];
120 (vessel[0]->UpdateBndCondExpansion(n))->UpdatePhys()[0] = A_r;
121 (vessel[1]->UpdateBndCondExpansion(n))->UpdatePhys()[0] = u_r;
145 c_l = sqrt(beta/(2*rho))*sqrt(sqrt(A_l));
152 while ((proceed) && (iter < MAX_ITER))
156 fa = R*W1*A_calc-4*R*sqrt(beta/(2*rho))*A_calc*sqrt(sqrt(A_calc))-pext-beta*(sqrt(A_calc)-sqrt(A_0))+pout;
157 dfa = R*W1-5*R*sqrt(beta/(2*rho))*sqrt(sqrt(A_calc))-beta/(2*sqrt(A_calc));
158 delta_A_calc = fa/dfa;
159 A_calc = A_calc - delta_A_calc;
161 if (sqrt(delta_A_calc*delta_A_calc) < Tol)
167 u_u=(pext+beta*(sqrt(A_calc)-sqrt(A_0))-pout)/(R*A_calc);