GunnsFluidPhaseChangeConductor - nasa/gunns GitHub Wiki

GunnsFluidPhaseChangeConductor

default_img

Background

This link extends GunnsFluidConductor with the ability to flow between nodes of different liquid/gas phase. This is useful for simplified modelling of phase change in a fluid flow, as GUNNS can't yet automatically or realistically model phase change due pressure & temperature changes in the fluid.

This link only changes the phase of a single liquid/gas fluid type pair (water or ammonia, etc). All fluid flowing through the link gets converted to an equal mass of the operating fluid type in the phase of the receiving node. Any other type of fluid constituent in a mixture flowing through the link gets destroyed & replaced with the operating fluid type, so its constituent mass isn't conserved even though total fluid mass is.

This link always does a 100% phase change on all the mass flow without changing the temperature of the fluid passing through it. This is a major simplification because realistically, the phase change and energy in the fluid are coupled in a complex way that GUNNS can't yet model. Thus, energy is not conserved in this link.

How To Use in GunnsDraw

The valid connection options are shown below:

default_img

Port Connection Rules (These are limitations on the port connection to nodes that the link enforces in run-time):

  • Port 0 must connect to either a liquid node or the Ground node.
  • Port 1 must connect to either a gas node or the Ground node.

Other Rules (These are extra rules you should always try to follow):

  • To strictly conserve mass, follow these rules:
    • The liquid node should contain 100% mixture of the liquidType. In general, mixtures of liquids shouldn't be used in GUNNS anyway.
    • The gas node should contain 100% mixture of the gasType if the flow can go from the gas to liquid side. However, a mixture of multiple gasses can be used in the gas node if the flow will always be in the positive (liquid-to-gas) direction.
  • If strictly conserving mass isn't a requirement, then you can skip the above rules and the link will still otherwise work.

Configuration Data Parameters:

  • maxConductance: Same as GunnsFluidConductor.
  • liquidType (default = FluidProperties::, must be a liquid type present in the network, i.e. FluidProperties::GUNNS_WATER): This is the fluid type of the liquid phase of the fluid compound to be phase-changed (water, ammonia, etc.) Remember that fluid types naming convention imply the phase: names with the compound molecular formula denote gas phase (i.e. H2O), whereas spelled-out names of the compound denote liquid phase (WATER).
  • gasType (default = FluidProperties::, must be a gas type present in the network, i.e. FluidProperties::GUNNS_H2O): This is the fluid type of the gas phase of the fluid compound to be phase-changed. The gas type must have the same molecular weight as the liquidType. This constrains you to using a liquid/gas pair of the same compound, such as WATER/H2O or AMMONIA/NH3, etc.

Input Data Parameters:

Common Problems

  • N/A

References

  • N/A
⚠️ **GitHub.com Fallback** ⚠️