@@ -33,7 +33,7 @@ perform dimensionality checks.
33
33
34
34
There are 2 node models used in the paper. The first node type has a constant
35
35
pressure.
36
- Additionally, we ad some "internal" state `q̃_inj` which we want to plot later.
36
+ Additionally, we ad some "internal" state `q̃_inj` which we want to plot later (see also [Observables](@ref)) .
37
37
=#
38
38
@mtkmodel ConstantPressureNode begin
39
39
@parameters begin
52
52
nothing # hide
53
53
54
54
#=
55
- The second node model is a variable pressure node. It has one output state, the pressure and one input state,
55
+ The second node model is a variable pressure node. It has one output state ( the pressure) and one input state,
56
56
the aggregated flows from the connected pipes.
57
57
As an internal state we have the injected flow from our source/load.
58
58
The source/load behaviour itself is provided via a time dependent function.
@@ -186,15 +186,16 @@ nothing # hide
186
186
187
187
#=
188
188
The equivalent "pressure capacity" at the nodes is calculated as a sum of the connected
189
- pipe parameters according ot (28).
189
+ pipe parameters according to (28).
190
190
191
- Here use defintions based on the speed and "standard" conditions. But is this correct?
191
+ Here use defintions based on the speed and "standard" conditions.
192
192
=#
193
193
C₂ = L₁₂* A/ (2 * ρ̃* c̃^ 2 ) + L₂₃* A/ (2 * ρ̃* c̃^ 2 ) # (28)
194
194
C₃ = L₁₃* A/ (2 * ρ̃* c̃^ 2 ) + L₂₃* A/ (2 * ρ̃* c̃^ 2 ) # (28)
195
+ nothing # hide
195
196
196
197
#=
197
- Alternatively, could calculate Z2 and Z3 based on the actuel pressure and simulation temperature.
198
+ Alternatively, we could calculate `Z2` and `Z3` based on the actuel pressure and simulation temperature.
198
199
Then we could calculated the speed of sound for the "correct" conditions at the node.
199
200
It seems to have very little effect on the actual results so I kept it simple.
200
201
=#
@@ -203,7 +204,7 @@ nothing #hide
203
204
#=
204
205
## Load Profile
205
206
206
- The paper specifies the load profile at two nodes. We use the package `LinearInterpolations`
207
+ The paper specifies the load profile at two nodes. We use the package [ `LinearInterpolations.jl`](https://github.com/jw3126/LinearInterpolations.jl)
207
208
to get a callable object which represents this picewise linear interpolation.
208
209
209
210
However, this function is not Symbolics.jl compatible, so we need to stop Symbolics.jl/ModelingToolkit.jl
0 commit comments