Skip to content

Volume

fullflow.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
namestr

Component name

networkNetwork

Network that owns this component

pressureState

Internal volume pressure

enthalpyState

Internal volume specific enthalpy

volumefloat

Volume of the control volume

total_enthalpy_inState

Total specific enthalpy entering the volume

total_enthalpy_outState, optional

Total specific enthalpy leaving the volume. If omitted, enthalpy is used.

heat_rateState or float, optional

Net heat rate into the volume. Positive values add energy

temperatureState, optional

Fluid temperature in the volume

densityState, optional

Fluid density in the volume

internal_energyState, optional

Fluid specific internal energy in the volume

mass_flow_inState, optional

Total mass flow rate entering the volume

mass_flow_outState, optional

Total mass flow rate leaving the volume

Iteration Variables

Name Type Description
pressureState

Internal volume pressure

enthalpyState

Internal volume specific enthalpy

Residuals

Name Type Description
mass_balancefloat

Enforces steady-state mass conservation.

mass_flow_in - mass_flow_out = 0
energy_balancefloat

Enforces steady-state flow energy conservation.

mass_flow_in * total_enthalpy_in - mass_flow_out * total_enthalpy_out + heat_rate = 0

If total_enthalpy_out is not assigned, the volume enthalpy is used as the outlet total enthalpy. If heat_rate is not assigned, it is treated as zero.