GunnsFluidLiquidWaterSensor - nasa/gunns GitHub Wiki

GunnsFluidLiquidWaterSensor

default_img

This link extends GunnsFluidConductor with extra data attributes for output to sensor models:

  • A relative humidity value that stores the fractional RH (1.0 = 100% relative humidity) of the Port 0 node contents.
  • A "liquid present" flag indicating whether water vapor can condense in the Port 0 node gas mixture (RH >= 1.0).

The link does not modify the mixture of the fluid passing through it.

How To Use in GunnsDraw

The GunnsFluidSensor can be hooked up to nodes in exactly the same ways that regular fluid conductors can. However, this link only measures the Port 0 node so Port 1 is usually attached to Ground with maxConductivity configured to zero to avoid leaking through the link. The typical configuration is shown here:

default_img

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

  • Ports 0 and 1 cannot connect to the same non-Ground node.
  • Port 1 is optional in GunnsDraw. If not drawn, like shown in the example above, GunnsDraw will automatically connect it to the Ground node.

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

  • Do not mix fluid phases across the link. That is, both nodes should contain the same phase (gas or liquid), and not different phases.
  • This link is only useful when connected to gas nodes.
  • Note: remember that this link is a conductor and will flow between the nodes if maxConductivity is not zero! In most applications you'll want zero flow through the link.

Configuration Data Parameters:

  • maxConductivity: Same as GunnsFluidConductor. Note that in most applications you'll want to set this to zero to avoid flow leaking through the sensor link.
  • expansionScaleFactor: Same as GunnsFluidConductor.

Input Data Parameters:

Common Problems

  • N/A

References

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