45 "Terminal outflow 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,
70 int omega,
int offset,
int n)
75 Array<OneD, MultiRegions::ExpListSharedPtr> vessel(2);
86 RT = (vessel[0]->UpdateBndCondExpansion(n))->GetCoeffs()[0];
89 "RT must be comprised between -1 and 1");
90 int nq = vessel[0]->GetTotPoints();
93 A_l = inarray[0][offset+nq-1];
94 u_l = inarray[1][offset+nq-1];
98 c_0 = sqrt(beta[omega][nq-1]/(2*
m_rho))*sqrt(sqrt(A_0[omega][nq-1]));
102 c_l = sqrt(beta[omega][nq-1]/(2*
m_rho))*sqrt(sqrt(A_l));
103 u_r = (1-RT)*((u_l-u_0) + 4*(c_l-c_0)) - u_l;
106 (vessel[0]->UpdateBndCondExpansion(n))->UpdatePhys()[0] = A_r;
107 (vessel[1]->UpdateBndCondExpansion(n))->UpdatePhys()[0] = u_r;