From 8ee2c7cfb57fa1cb471150b4d663440de8ed6bf8 Mon Sep 17 00:00:00 2001 From: Karthik Menon Date: Mon, 8 Jul 2024 21:37:09 -0700 Subject: [PATCH] test eqn --- docs/pages/add_block.md | 7 ++++++- docs/pages/main.md | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/pages/add_block.md b/docs/pages/add_block.md index c1e477a71..287292d8c 100644 --- a/docs/pages/add_block.md +++ b/docs/pages/add_block.md @@ -99,7 +99,12 @@ a*dQ_in/dt + b*P_in + c*(dP_in/dt)*Q_in + d = 0 ``` e*dP_out/dt + f*Q_out*Q_out + g*P_out + h*I_1 = 0 ``` - * For this block, the `P_in` and `Q_in` are the pressure and flow at the inlet respectively, `P_out` and `Q_out` are the pressure and flow at the outlet, and `I_1` is an internal variable. Test $dQ{in}/dt$. + +\f$e*dP_out/dt + f*Q_out*Q_out + g*P_out + h*I_1 = 0\f$ + +\f$$e*dP_out/dt + f*Q_out*Q_out + g*P_out + h*I_1 = 0\f$$ + + * For this block, the `P_in` and `Q_in` are the pressure and flow at the inlet respectively, `P_out` and `Q_out` are the pressure and flow at the outlet, and `I_1` is an internal variable. * The state vector is `[P_in, Q_in, P_out, Q_out, I_1]`. * The contributions to the local `F` matrix are `F[0,0] = b`, `F[1,2] = g` and `F[1,4] = h`. * The contributions to the local `E` matrix are `E[0,1] = a` and `E[1,2] = e`. diff --git a/docs/pages/main.md b/docs/pages/main.md index 4fefe7224..189fd0865 100644 --- a/docs/pages/main.md +++ b/docs/pages/main.md @@ -340,8 +340,8 @@ Note that the `FLOW` and `PRESSURE` boundary conditions accept mathematical expr "bc_name": "INFLOW", # Name of the boundary condition "bc_type": "FLOW", # Type of the boundary condition "bc_values": { - "Q": [ ..., ..., ... ], - "t": [ ..., ..., ... ] + "Q": [ ..., ..., ... ], # Comma-separated list of values + "t": [ ..., ..., ... ] # Comma-separated list of corresponding time stamps } }, ```