Fluid_Aspect_Course_5_2 - nasa/gunns GitHub Wiki

Fluid Aspect Course 5.2: Reducing the Variables

Disconnect all other aspects

It’s best to delay developing the aspect and fluid-fluid network interfaces until after you’ve tuned the network, since you’re going to have to disconnect them all before tuning anyway.

Using its GunnsDraw shape data and the input file, a GunnsFluidExternalDemand link can be initialized to create a constant-pressure/temperature/mixture boundary condition without hooking it up to a GunnsFluidExternalSupply.

Turn off/constrain all thermal & mixture effects

Temperature affects density and pressure, which affects flow rate. Changing temperature will throw off your tuning, so best to avoid it. It is possible to set up networks with constant and controlled temperatures.

  • All thermal effects can be removed by zeroing their heat transfer coefficients. In run-time, the terms to set are:
  • Conversely, it is possible to force the exit flow of links that do convection a desired constant temperature. This is useful when you have design points you are tuning for that are at different temperatures in different locations around the system:
    • In GunnsFluidValve and similar, set mWallTemperature and give it a very large HTC (see above).
    • The GunnsFluidHeatExchanger has a mTemperatureOverride term that, when set to > 0, forces the exit temperature.

Before you start tuning flows & pressures, look at all the node temperatures (In Trick View, display the entire mNodes.mContent.mTemperature array) and make sure they’re stable at the values you want. Find the links that are causing the wrong temperatures and do the above tricks to control them.

Switch to ideal pumps/fans

Replace all GunnsGasFan and GunnsLiquidCentrifugalPump links with their base class GunnsFluidPotential. Configure the GunnsFluidPotential to have the same conductance, and set their mSourcePressure term to create a constant pump/fan pressure rise for the design point that you are tuning for.

Lock valve positions

Set all valve positions to the configuration that you are tuning for. All GunnsFluidValve links will stay at their current mPosition unless driven by some external model, so you can set mPosition since you haven’t interfaced them to their controller models yet. For the self-actuating pressure-sensitive valves like regulators & check valves, you have to use their mMalfFailTo malfunction to force them to the desired position. For these, you’ll usually want to tune your system with them in the full-open position.

Previous Page / Next Page

⚠️ **GitHub.com Fallback** ⚠️