diff --git a/docs/src/API/hydraulic.md b/docs/src/API/hydraulic.md index 1ad93e9ae..e9903eb33 100644 --- a/docs/src/API/hydraulic.md +++ b/docs/src/API/hydraulic.md @@ -1,4 +1,4 @@ -# ModelingToolkit Standard Library: Hydraulic Components +# [ModelingToolkit Standard Library: Hydraulic Components](@id hydraulic) ```@contents Pages = ["hydraulic.md"] diff --git a/docs/src/index.md b/docs/src/index.md index 7416e8570..90aed9b00 100644 --- a/docs/src/index.md +++ b/docs/src/index.md @@ -28,7 +28,7 @@ The following are the constituant libraries of the ModelingToolkit Standard Libr - [Electrical Components](https://docs.sciml.ai/ModelingToolkitStandardLibrary/stable/API/electrical/) - [Magnetic Components](https://docs.sciml.ai/ModelingToolkitStandardLibrary/stable/API/magnetic/) - [Thermal Components](https://docs.sciml.ai/ModelingToolkitStandardLibrary/stable/API/thermal/) - - [Hydraulic Components](https://docs.sciml.ai/ModelingToolkitStandardLibrary/stable/API/hydraulic/) + - [Hydraulic Components](@ref hydraulic) ## Contributing diff --git a/src/Hydraulic/IsothermalCompressible/utils.jl b/src/Hydraulic/IsothermalCompressible/utils.jl index b2c9cd756..a7bcd50a5 100644 --- a/src/Hydraulic/IsothermalCompressible/utils.jl +++ b/src/Hydraulic/IsothermalCompressible/utils.jl @@ -34,7 +34,7 @@ Connector port for hydraulic components. end """ - HydraulicFluid(; density=997, bulk_modulus=2.09e9, viscosity=0.0010016, name) + HydraulicFluid(; density = 997, bulk_modulus = 2.09e9, viscosity = 0.0010016, gas_density = 0.0073955, gas_pressure = -1000, n = 1, let_gas = 1, name) Fluid parameter setter for isothermal compressible fluid domain. Defaults given for water at 20°C and 0Pa gage (1atm absolute) reference pressure. Density is modeled using the Tait equation of state. For pressures below the reference pressure, density is linearly interpolated to the gas state (when `let_gas` is set to 1), this helps prevent pressures from going below the reference pressure.