43 std::string TerminalOutflow::className =
45 "Terminal", TerminalOutflow::create,
46 "Terminal outflow boundary condition");
48 TerminalOutflow::TerminalOutflow(
67 boost::ignore_unused(time);
89 RT = (vessel[0]->UpdateBndCondExpansion(n))->GetCoeffs()[0];
91 ASSERTL0((-1 <= RT && RT <= 1),
"RT must be between -1 and 1");
92 int nq = vessel[0]->GetTotPoints();
95 A_l = inarray[0][offset + nq - 1];
96 u_l = inarray[1][offset + nq - 1];
99 alpha[omega][nq - 1]);
103 u_r = (1 - RT) * W1 - u_l;
106 (vessel[0]->UpdateBndCondExpansion(n))->UpdatePhys()[0] = A_r;
107 (vessel[1]->UpdateBndCondExpansion(n))->UpdatePhys()[0] = u_r;
#define ASSERTL0(condition, msg)
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, std::string pDesc="")
Register a class with the factory.
Array< OneD, MultiRegions::ExpListSharedPtr > m_vessels
PulseWavePressureAreaSharedPtr m_pressureArea
virtual ~TerminalOutflow()
virtual void v_DoBoundary(const Array< OneD, const Array< OneD, NekDouble >> &inarray, Array< OneD, Array< OneD, NekDouble >> &A_0, Array< OneD, Array< OneD, NekDouble >> &beta, Array< OneD, Array< OneD, NekDouble >> &alpha, const NekDouble time, int omega, int offset, int n) override
std::shared_ptr< SessionReader > SessionReaderSharedPtr
@ beta
Gauss Radau pinned at x=-1,.
The above copyright notice and this permission notice shall be included.
std::shared_ptr< PulseWavePressureArea > PulseWavePressureAreaSharedPtr
BoundaryFactory & GetBoundaryFactory()