45 "Power law pressure area relationship for the arterial system");
73 (2 *
m_rho * c0 * c0 / b) *
74 (pow((
A / A0), b / 2) - 1)
75 - A0 * gamma * dAUdx / (
A *
sqrt(
A));
88 c = c0 * pow((
A / A0), b / 4);
123 A = A0 * pow(((b / (8 * c0)) * (W1 - W2) + 1), 4 / b);
145 I = (4 / b) * (c - c0);
152 const std::string &type)
155 if (type ==
"Bifurcation")
160 for (
int i = 0; i < 3; ++i)
162 GetC(c[i],
beta[i], Au[i], A0[i], alpha[i]);
168 J.SetValue(0, 3, c[0] / Au[0]);
176 J.SetValue(1, 4, -c[1] / Au[1]);
184 J.SetValue(2, 5, -c[2] / Au[2]);
186 J.SetValue(3, 0, Au[0]);
187 J.SetValue(3, 1, -Au[1]);
188 J.SetValue(3, 2, -Au[2]);
189 J.SetValue(3, 3, uu[0]);
190 J.SetValue(3, 4, -uu[1]);
191 J.SetValue(3, 5, -uu[2]);
193 J.SetValue(4, 0, 2 * uu[0]);
194 J.SetValue(4, 1, -2 * uu[1]);
196 J.SetValue(4, 3, 2 * c[0] * c[0] / Au[0]);
197 J.SetValue(4, 4, -2 * c[1] * c[1] / Au[1]);
200 J.SetValue(5, 0, 2 * uu[0]);
202 J.SetValue(5, 2, -2 * uu[2]);
203 J.SetValue(5, 3, 2 * c[0] * c[0] / Au[0]);
205 J.SetValue(5, 5, -2 * c[2] * c[2] / Au[2]);
210 else if (type ==
"Merge")
215 for (
int i = 0; i < 3; ++i)
217 GetC(c[i],
beta[i], Au[i], A0[i], alpha[i]);
223 J.SetValue(0, 3, -c[0] / Au[0]);
231 J.SetValue(1, 4, c[1] / Au[1]);
239 J.SetValue(2, 5, c[2] / Au[2]);
241 J.SetValue(3, 0, Au[0]);
242 J.SetValue(3, 1, -Au[1]);
243 J.SetValue(3, 2, -Au[2]);
244 J.SetValue(3, 3, uu[0]);
245 J.SetValue(3, 4, -uu[1]);
246 J.SetValue(3, 5, -uu[2]);
248 J.SetValue(4, 0, 2 * uu[0]);
249 J.SetValue(4, 1, -2 * uu[1]);
251 J.SetValue(4, 3, 2 * c[0] * c[0] / Au[0]);
252 J.SetValue(4, 4, -2 * c[1] * c[1] / Au[1]);
255 J.SetValue(5, 0, 2 * uu[0]);
257 J.SetValue(5, 2, -2 * uu[2]);
258 J.SetValue(5, 3, 2 * c[0] * c[0] / Au[0]);
260 J.SetValue(5, 5, -2 * c[2] * c[2] / Au[2]);
265 else if (type ==
"Interface")
270 for (
int i = 0; i < 2; ++i)
272 GetC(c[i],
beta[i], Au[i], A0[i], alpha[i]);
277 J.SetValue(0, 2, c[0] / Au[0]);
283 J.SetValue(1, 3, -c[1] / Au[1]);
285 J.SetValue(2, 0, Au[0]);
286 J.SetValue(2, 1, -Au[1]);
287 J.SetValue(2, 2, uu[0]);
288 J.SetValue(2, 3, -uu[1]);
290 J.SetValue(3, 0, 2 * uu[0]);
291 J.SetValue(3, 1, -2 * uu[1]);
292 J.SetValue(3, 2, 2 * c[0] * c[0] / Au[0]);
293 J.SetValue(3, 3, -2 * c[1] * c[1] / Au[1]);
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, std::string pDesc="")
Register a class with the factory.
void v_GetCharIntegral(NekDouble &I, const NekDouble &beta, const NekDouble &A, const NekDouble &A0, const NekDouble &alpha=0.5) override
void GetC0(NekDouble &c0, const NekDouble &beta, const NekDouble &A0)
void v_GetUFromChars(NekDouble &u, const NekDouble &W1, const NekDouble &W2) override
PowerPressureArea(Array< OneD, MultiRegions::ExpListSharedPtr > pVessel, const LibUtilities::SessionReaderSharedPtr pSession)
~PowerPressureArea() override
void v_GetW2(NekDouble &W2, const NekDouble &u, const NekDouble &beta, const NekDouble &A, const NekDouble &A0, const NekDouble &alpha=0.5) override
static std::string className
void v_GetPressure(NekDouble &P, const NekDouble &beta, const NekDouble &A, const NekDouble &A0, const NekDouble &dAUdx, const NekDouble &gamma=0, const NekDouble &alpha=0.5) override
void v_GetJacobianInverse(NekMatrix< NekDouble > &invJ, const Array< OneD, NekDouble > &Au, const Array< OneD, NekDouble > &uu, const Array< OneD, NekDouble > &beta, const Array< OneD, NekDouble > &A0, const Array< OneD, NekDouble > &alpha, const std::string &type) override
void GetB(NekDouble &b, const NekDouble &c0)
void v_GetAFromChars(NekDouble &A, const NekDouble &W1, const NekDouble &W2, const NekDouble &beta, const NekDouble &A0, const NekDouble &alpha=0.5) override
void v_GetC(NekDouble &c, const NekDouble &beta, const NekDouble &A, const NekDouble &A0, const NekDouble &alpha=0.5) override
void v_GetW1(NekDouble &W1, const NekDouble &u, const NekDouble &beta, const NekDouble &A, const NekDouble &A0, const NekDouble &alpha=0.5) override
static PulseWavePressureAreaSharedPtr create(Array< OneD, MultiRegions::ExpListSharedPtr > &pVessel, const LibUtilities::SessionReaderSharedPtr &pSession)
void GetCharIntegral(NekDouble &I, const NekDouble &beta, const NekDouble &A, const NekDouble &A0, const NekDouble &alpha=0.5)
void GetC(NekDouble &c, const NekDouble &beta, const NekDouble &A, const NekDouble &A0, const NekDouble &alpha=0.5)
LibUtilities::SessionReaderSharedPtr m_session
std::shared_ptr< SessionReader > SessionReaderSharedPtr
@ beta
Gauss Radau pinned at x=-1,.
@ P
Monomial polynomials .
PressureAreaFactory & GetPressureAreaFactory()
scalarT< T > sqrt(scalarT< T > in)