Volume
Lumped fluid volume with steady-state mass and energy conservation.
Volume represents an internal fluid control volume whose pressure and specific enthalpy are solved from continuity and energy balance. It is useful for compressible, heated, cooled, or mixed-flow nodes where both pressure and thermodynamic state must be solved.
Parameters
| Name | Type | Description |
|---|---|---|
name | str | Component name |
network | Network | Network that owns this component |
pressure | State | Internal volume pressure |
enthalpy | State | Internal volume specific enthalpy |
volume | float | Volume of the control volume |
total_ | State | Total specific enthalpy entering the volume |
total_ | State, optional | Total specific enthalpy leaving the volume. If omitted, |
heat_ | State or float, optional | Net heat rate into the volume. Positive values add energy |
temperature | State, optional | Fluid temperature in the volume |
density | State, optional | Fluid density in the volume |
internal_ | State, optional | Fluid specific internal energy in the volume |
mass_ | State, optional | Total mass flow rate entering the volume |
mass_ | State, optional | Total mass flow rate leaving the volume |
Iteration Variables
| Name | Type | Description |
|---|---|---|
pressure | State | Internal volume pressure |
enthalpy | State | Internal volume specific enthalpy |
Residuals
| Name | Type | Description |
|---|---|---|
mass_ | float | Enforces steady-state mass conservation. mass_flow_in - mass_flow_out = 0 |
energy_ | float | Enforces steady-state flow energy conservation. mass_flow_in * total_enthalpy_in
- mass_flow_out * total_enthalpy_out
+ heat_rate = 0If |