Open bradcarman opened 7 months ago
vol = DynamicVolume(0; p_int, area=A, x_int=x₀, x_max=10*x₀)
that 0 should be a keyword argument?
No it's a function argument (N). The function signature is:
@component function DynamicVolume(N, add_inertia = true, reversible = false;
p_int,
area,
x_int = 0,
x_max,
x_min = 0,
x_damp = x_min,
direction = +1,
# Tube
perimeter = 2 * sqrt(area * pi),
shape_factor = 64,
head_factor = 1,
# Valve
Cd = 1e2,
Cd_reverse = Cd,
minimum_area = 0,
name)
The following code gives the error
LoadError: Could not parse 0 of component vol
. Note: `MassVolume() is given to show the working version, when trying to recreate this with @mtkmodel the error is given.Currently using ModelingToolkit v8.75.0 with Julia v1.10.0