GunnsFluidLeak - nasa/gunns GitHub Wiki

GunnsFluidLeak

default_img

Background

This link extends GunnsFluidConductor with some malfunctions to model a leak between two nodes:

  • It adds a leak rate malfunction, which calculates effective conductivity required to create an initial desired leak flow rate at current network conditions, and then actual leak flow rates varies through the constant conductivity as pressures change.
  • It adds a leak hole size malfunction, in which effective conductivity equals a desired effective hole area, and actual leak flow rate varies through the constant conductivity as pressures change.

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

How To Use in GunnsDraw

The GunnsFluidLeak can be hooked up to nodes in exactly the same ways that regular fluid conductors can. Leaks always flow from the higher-pressure node to the lower-pressure node, so the arrangement of Ports 0 and 1 on the nodes does not matter. Internally, the flow rate has a positive value when flowing from Port 0 to 1.

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.

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.
  • Depending on the needs of your users, it may be good idea to include a couple of spare leak links in your networks that can be connected to nodes and create leaks anywhere they're needed on an ad-hoc basis. As with conductors, leaks can be stored with both ports on the Ground node.

Configuration Data Parameters:

Input Data Parameters:

  • malfBlockageFlag: Same as GunnsFluidConductor. This malfunction takes precedence over the leak rate and hole size malfunctions. It blocks those malfunctions because it scales the conductor's effective conductivity that they drive.
  • malfBlockageValue: Same as GunnsFluidConductor.
  • malfLeakHoleFlag (default = false): Initial state of the leak hole malfunction activation flag. This malfunction takes precedence over the leak rate malfunction. When it is active, the leak rate malfunction is ignored.
  • malfLeakHoleValue (default = 0.0 (m2), must be >= 0): The initial hole size of the leak hole malfunction.
  • malfLeakRateFlag (default = false): Initial state of the leak rate malfunction activation flag.
  • malfLeakRateValue (default = 0.0 (kg/s), must be >= 0): The initial leak rate of the leak rate malfunction.

Common Problems

  • N/A

References

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