Skip to content

Commit

Permalink
state vector
Browse files Browse the repository at this point in the history
  • Loading branch information
menon-karthik committed Jul 9, 2024
1 parent cd8e096 commit e68fd50
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/pages/add_block.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ Below are details on the steps required to implement a new block in svZeroDSolve
\f$ e \frac{dP_{out}}{dt} + f Q_{out} Q_{out} + g P_{out} + h I_{1} = 0 \f$

* For this block, \f$P_{in}\f$ and \f$Q_{in}\f$ are the pressure and flow at the inlet respectively, \f$P_{out}\f$ and \f$Q_{out}\f$ are the pressure and flow at the outlet, and \f$I_{1}\f$ is an internal variable.
* The state vector is \f$[P_{in}, Q_{in}, P_{out}, Q_{out}, I_{1}]\f$.
* 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`.
* The contributions to the local `C` vector are `C[0] = c*(dP_in/dt)*Q_in + d` and `C[1] = f*Q_out*Q_out`.
Expand Down

0 comments on commit e68fd50

Please sign in to comment.