CompressedAirSystemAPI
Index
Ai4EComponentLib.CompressedAirSystem.AirStroageTankAi4EComponentLib.CompressedAirSystem.ConstantValveAi4EComponentLib.CompressedAirSystem.FlowPortAi4EComponentLib.CompressedAirSystem.PurifierAi4EComponentLib.CompressedAirSystem.SISOComponentAi4EComponentLib.CompressedAirSystem.SimplifiedPipeAi4EComponentLib.CompressedAirSystem.SourceAi4EComponentLib.CompressedAirSystem.StraightPipeAi4EComponentLib.CompressedAirSystem.TransitionPipeAi4EComponentLib.CompressedAirSystem.VarySpeedCompressorAi4EComponentLib.CompressedAirSystem.pipeFriction_turbulentAi4EComponentLib.CompressedAirSystem.pipeReAi4EComponentLib.CompressedAirSystem.pipeVelocityAi4EComponentLib.CompressedAirSystem.stateEquation
CompressedAirSystem Components
Ai4EComponentLib.CompressedAirSystem.AirStroageTank — MethodAirStroageTank(; name, V, T, p0)
Air tank.
Valve with constant resistance.
Arguments:
V: [m³] Volume, defaults: 20T: [K] Temperature, defaults: 300p0: [Pa] Initial pressure, defaults: 1e5
Connectors:
inletinlet of componentsoutletoutlet of components
Ai4EComponentLib.CompressedAirSystem.ConstantValve — MethodConstantValve(; name, R)
Valve with constant resistance.
Connectors:
inletinlet of componentsoutletoutlet of components
Ai4EComponentLib.CompressedAirSystem.FlowPort — MethodFlowPort(; name)
Port(inlet or outlet) in CompressedAirSystem.
States:
p(t): [Pa] The pressure at this portqm(t): [kg/s] The mass flow rate passing through this portT(t): [K] The mass flow rate passing through this portρ(t): [kg/m³] The density passing at this portμ(t): [Pa⋅s] The absolute viscosity at this portqv(t): [m³/s] The volume flow rate passing through this port
Ai4EComponentLib.CompressedAirSystem.Purifier — MethodPurifier(; name, c, Δp, T)
General purifier.
Arguments:
c: Purification coefficient, percentage of residual mass flow after purification to inlet mass flow, defaults: 1.0Δp: [Pa] Absolute pressure drop across the componentT: [K] Outlet temperature after cooling
Connectors:
inletinlet of componentsoutletoutlet of components
Ai4EComponentLib.CompressedAirSystem.SISOComponent — MethodSISOComponent(; name)
The Component with two ports inlet and outlet and mass flow qm flows from inlet to outlet. It plays the same role as Oneport in the circuit system.
States:
qm(t): [kg/s] The mass flow rate passing through this componentΔp(t): [Pa] The pressure difference at a componentρ_mean(t): [kg/m³] The density at a componentμ_mean(t): [Pa⋅s] The absolute viscosity at a componentqv_mean(t): [m³/s] The volume flow rate passing through this component
Connectors:
inletinlet of componentsoutletoutlet of components
Ai4EComponentLib.CompressedAirSystem.SimplifiedPipe — MethodSimplifiedPipe(; name, R0)
Simplified pipe model
Arguments:
R0: [kg/m^7] Resistance coefficient of pipeline
Connectors:
inletinlet of componentsoutletoutlet of components
Ai4EComponentLib.CompressedAirSystem.Source — MethodSource(; name, boundary)
Source is a general source, which can generate pressure boundary("p"), temperature boundary("T") or mass flow boundary("qm") with different input parameters.
Valve with constant resistance.
Arguments:
boundary:Dictwith boundaries
Connectors:
source: port of source
inletBoundary = Dict(
"p" => 1.0e5(1 + 0.001sin(t)),
"T" => 300,
)Ai4EComponentLib.CompressedAirSystem.StraightPipe — MethodStraightPipe(; name, D, L, ϵ)
Straight round pipe and height difference is not considered. Friction coefficient is obtained from Modi diagram.
Arguments:
D: [m] Pipe diameter, defaults: 1.0L: [m] Pipe length, defaults: 1.0ϵ: [m] Absolute roughness of pipeline, defaults: 0.05
Connectors:
inletinlet of componentsoutletoutlet of components
Ai4EComponentLib.CompressedAirSystem.TransitionPipe — MethodTransitionPipe(; name, n, f, D, L, T, p0, qm0)
Simplified pipe model
Arguments:
f: [kg/m⁷] Resistance coefficient of pipelinen: Number of pipe discrete nodeD: [m] Pipe diameter, defaults: 1.0L: [m] Pipe length, defaults: 1.0T: [K] Ambient temperature, defaults: 300p0: [Pa] Initial pressure of each nodeqm0: [kg/(m²⋅s)] Initial specific momentum of each node
Connectors:
inletinlet of componentsoutletoutlet of components
Ai4EComponentLib.CompressedAirSystem.VarySpeedCompressor — MethodVarySpeedCompressor(
;
name,
n0,
h_polCoff,
etaCoff,
surgeCoff,
chokeCoff
)
Variable speed compressor.
\[h_polCoff = a1 * inlet.qv^2 + a2 * inlet.qv * n / n0 + a3 * (n / n0)^3) * g\]
\[etaCoff = b1 * inlet.qv^2 * (n0 / n)^2 + b2 * inlet.qv * n0 / n + b3\]
\[surgeCoff = (c1 * n * n + c2 * n + c3) / 3600\]
\[chokeCoff = (d1 * n * n + d2 * n + d3) / 3600\]
States:
qm(t): [kg/s] The mass flow raten(t): [rpm] speedϵ(t): pressure ratioh_pol(t): [J] Energy headh_tot(t): [J] Total Worketa_pol(t): Surge limit coefficientqv_surge(t): [kg/s] Surge flow rateqv_choke(t): [kg/s] choke flow rateσ(t)
Arguments:
n0: [rpm] Rated speedh_polCoff: Work coefficientetaCoff: Efficiency coefficientsurgeCoff: Surge limit coefficientchokeCoff: Choke limit coefficient
Connectors:
inletinlet of componentsoutletoutlet of components
Ai4EComponentLib.CompressedAirSystem.pipeFriction_turbulent — MethodpipeFriction_turbulent(f, Re, ϵ, D) -> Any
Fitting Formula for Friction Coefficient of Turbulent Pipe
Ai4EComponentLib.CompressedAirSystem.pipeRe — MethodpipeRe(ρ, u, D, μ) -> Any
Reynolds number
Ai4EComponentLib.CompressedAirSystem.pipeVelocity — MethodpipeVelocity(Δp, ρ, L, D, f) -> Any
Flow rate in pipe
Ai4EComponentLib.CompressedAirSystem.stateEquation — MethodstateEquation(p, ρ, T) -> Any
State Equation of Dry Air