Skip to content

Commit

Permalink
test eqn
Browse files Browse the repository at this point in the history
  • Loading branch information
menon-karthik committed Jul 9, 2024
1 parent 084f865 commit 8ee2c7c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion docs/pages/add_block.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/main.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
},
```
Expand Down

0 comments on commit 8ee2c7c

Please sign in to comment.