XE-Prime | Nuclear Thermal Propulsion

Part 2 – Approach & Methodology

XE-Prime in Test Stand
XE-Prime Test Firing

After identifying the XE-Prime as our candidate for a 1D fluid thermal simulation case, we set to work gathering our knowns, unknowns, and developing the approach for modeling.

  • Using publicly available reports, create thermal hydraulic model of Xe-Prime Engine in Flownex
  • Compare Mass Flows, Temperatures, and Pressures with both experimental and predicted values from literature
Table D-14 from Rover Nuclear Rocket Engine Program Overview of Rover Engine Tests Final Report (Feb 1991)

The above table gives readers a good example of the available characteristic results at different measurement locations in the Xe-Prime system.

In the below figures we can see the flow systems we will be modeling in Flownex.

Schematic from slide deck: Nuclear Thermal Propulsion Ground Test History – The Rover/NERVA Program (Feb 2014)
Figure 18 from XE-Prime Final Report Volume 1 (Dec 1969)

Assumptions

  • Steady State Analysis (for now)
  • 1D Thermal Hydraulic Model
  • Working Fluid = Two-phase Hydrogen
  • Heat flux from core to be explicitly applied
  • Internal heat transfer (EX: Nozzle Regen) to be fixed and lossless
  • General Empirical Relationship component to be used for flow segments with unknown geometries.

Challenges

  • Reactor characteristics are classified
    • Geometry unknown, not enough information available to characterize either the flow or the neutronics behavior.
    • Classified information is contained in a supplement to the Xe-Prime Final Report Volume III.
  • Poor quality scans of downstream flow paths
    • While, in general, we could interrogate the reports to find diameters and lengths for different flow segments, some of the downstream paths were very poorly scanned (see below). This was especially challenging for instances where there were internal venturis for passive flow control and where there were valves with no known defining characteristics.
Figure 54 from XE-Prime Final Report Volume 1 (Dec 1969)

Characterizing Pressure Drop – Flow Relationship with Unknown Geometries

  1. With help from Vince, an explicit “MEB” (Mass and Energy Balance) compound component was used to help back out the characteristics for our General Empirical Relationship component.
    1. User inputs the known operating temperature and pressure, the compound will adjust an explicit fixed mass flowrate in order to maintain the input pressure. An explicit heat flux is applied to maintain the input temperature.
  2. Using the known operating conditions, we can plot dP/rho vs Q for a range of steady state operating points.
  3. Fit power-law curve to the dataset
  4. Back out the power coefficients to be applied to the General Empirical Relationship component.

We expect this to be a reasonable approach to represent the pressure drop – flow relationship for flow segments where geometry is unknown. For the two example flow segments the relationship aligns well with a Bernoulli sort of representation. One major limitation to this approach is that the General Empirical Relationship component, is, by default, volume-less. This is not a problem for steady state analyses, but will compromise our ability to determine the full system fluid inventory and the volume-less nature would impact accuracy of future transient analysis.

Summary of Approach and Methodology

  • Create a geometry-informed 1D model of the Xe-Prime NTP Engine
  • Develop and apply a modeling method to account for flow segments with limited geometric characteristics
  • Build full model, from propulsion tank outlet through the exit nozzle, in Flownex.

Xe-Prime | Nuclear Thermal Propulsion

Part 1 – Motivation

Ever since my grandparents first pulled out the “outer space” placemats I’ve had a healthy interest in the stars. After attending a couple of NETS conferences, hosted by the American Nuclear Society, I seized an opportunity to make my own contribution to the space industry by modeling a Nuclear Thermal Propulsion engine in Flownex.

The reason for this effort is two-fold. First, I just wanted to see if it could be done. Second, in my experience at these conferences, lots of really smart scientists and engineers are developing outstanding novel technologies and designs, but spend a large effort solving the thermal-hydraulics of their systems manually or through custom scripted routines. I suspect it would benefit the entire industry if we can enable the scientists to focus on the science by qualifying existing tools (like Flownex) on difficult applications, like nuclear thermal propulsion.

I cleared this effort with my boss and our marketing department, now I needed to find an example. Nuclear thermal propulsion has existed as a theoretical technology for space transport since the 1940s. In ~1955 Los Alamos began development work on NTP engines with Project Rover. Then, in 1960, NASA, in collaboration with the Atomic Energy Commission opened the Space Nuclear Propulsion Office. This brings us to NERVA – Nuclear Engine for Rocket Vehicle Application, which was the child of these organizations marriage and a continuation of the Project Rover effort.

As part of the NERVA project several conceptual NTP engines were designed, built, and even test fired.

I began parsing through old reports, presentations, and test data. There was a ton of material to sift through. Much of it poorly xeroxed. One of the reports I was interested in was only available as a microfiche scan at a university library. The good news is that filtering through all of the available reports and data, there was a clear choice for an engine which had flow diagrams, geometry, some reactor details, and most important, test results for a range of operating conditions! The Xe-Prime.

XE’ Experimental Engine

In summary, curiosity sparked my interest in modeling a nuclear thermal propulsion system. I wanted to see if it could be done with a commercial off the shelf tool (Flownex). If this is a viable workflow, I believe it could improve research efficiencies, enabling our best engineers and scientists to innovate without having to spend valuable time creating 1D fluid systems models from the ground up.

An Independence Day Brisket Analysis

The smell of fireworks and freedom is in the air! This year, my contribution to the family’s Independence day festivities is a smoked brisket. Unfortunately, I have learned from experience that cooking at elevation (~7000ft) is not the same as it is in the valley (~1000ft). To avoid potential embarrassment it only makes sense to run a few simulations before lighting the smoker.

Why?

Smoking a brisket can be tricky, some would say it’s more of an art than a science but at PADT science is our art so we’re going to lean into the science hard. It can take anywhere from 6 to 24 hours to smoke a brisket depending on a variety of factors. Let’s identify what those factors are;

  • Weight of the Brisket
  • The Moisture Content of the Brisket
  • Air Flow
  • Ambient Air Conditions

The influence of the weight (or mass) of the meat is the main influencer of overall smoke time. The bigger our cut, the more time it’s going to take to smoke. Air flow is going to affect the oxygen available for combustion, effecting the energy available for cooking the brisket, as well as having an effect on heat transfer from the hot air to the brisket. The ambient air conditions will have an effect on energy requirements, heat transfer, and the boiling point of water.

Brisket Stall

The moisture content is going to be our trickiest variable to monitor. We want our brisket to come out of the smoker juicy but as we heat the beef we will evaporate some of the water. This is where the term brisket stall comes from. We eggheads may be more familiar with the scientific description evaporative or adiabatic cooling.

At a certain temperature and pressure water boils and becomes a vapor. This phase transition takes energy, which we are providing by combusting wood chips or pellets, in my case, bourbon barrel oak. Unfortunately, when we hit this critical point we may see all of the energy going to converting water to vapor. Losing too much moisture to vaporization can ruin our brisket. We might increase combustion to add more heat and end up overcooking the meat. We could wait it out and end up drying out the brisket. Worst case scenario is a combination of both!

To avoid this issue many backyard barbecuers recommend the Texas crutch. The brisket can be wrapped in foil or butcher paper. This helps us overcome the stall point by putting a physical barrier in place to reduce the ability for the water vapor to escape the meat.

The Birth of a Brisket Digital Twin

Okay, so not exactly a digital twin. Maybe next time I will incorporate sensor data into the model via OPC server but for now we’re keeping everything digital. I’m using a thermal-fluid modeling tool called Flownex to create a 1D simulation of our brisket and smoker.

The brisket is being modeled using a compound component. I’ve iterated a few times on how exactly I wanted to model it. For the first iteration I kept it simple and used a solid node with an assigned mass and custom solid material characteristics for beef across a temperature range [Baghe-Kandan et, al].

Unfortunately, although our beef’s thermal characteristics (conductivity and thermal capacitance), is temperature dependent, we do not observe the characteristic stall associated with the adiabatic cooling near the boiling point of water. This is due to not modeling any water evaporating, duh.

Beef Brisket V2 was also a failure. I tried to model the solid portion of the brisket separate from the water with heat transfer between the two. It kind of worked, but was needlessly complex, and I didn’t see any effect of a change in elevation on the cooking behavior.

For Beef Brisket V3 I went back to basics. Forget about the smoker, lets just model the solid and liquid that makes up the meat with an applied heat flux and see if we see the stall happen in transient.

The beta testing for V3 was successful! As seen in the above recording, we can see a huge drop in temperature of our solid as soon as our temperature reaches the boiling point of water. We also can see the difference between a sea level analysis and one representing a system operating at 7000 feet above sea level. For the final version of our brisket model I swapped out the two-phase tank with a open container component (to let our water evaporate to atmosphere), and added script to do some basic calculations.

Transient Simulation and Conclusions

Let’s run the transient simulation in parallel for a smoker at sea level and a smoker at 7000 feet elevation and see what happens!

As we can see in the above transient analysis both briskets experience “stall” once the water begins to evaporate. The brisket at elevation hits its stall at around 199°F, at around the 6 hour mark, the brisket at sea level stalls at 212°F near the 8 hour mark. What this means is that if we are fighting an impossible battle if we try to hit the typically recommended 205°F pull temperature when cooking at altitude! We’d dry our brisket out and burn the meat before we’d hit that mark. I think I’ll be pulling this brisket at ~192°F

Happy Independence Day!

Flownex Version Control with GIT Client

Flownex 2024 has added version control in the form of a Git Client. In Git, all versions of a project and related files are stored in either a local or a remote repository (aka “repo”). This benefits the user as we are able to revert to older versions of a project merge changes made by multiple users, create branches within a design, and capture all changes in a log. The repository can also function as a form of backup.

Accessing the Git Client

There are two ways to access Flownex’ Git client. We can either navigate directly to the executable: C:\Program Files\Flownex SE X.X.X.XXXX\GitClient.exe, or we can open the Git client from the Flownex GUI itself.

To open the GIT client we will want to navigate to the configuration tab in the Flownex GUI and click on “Open Git Client”.

Prerequisites for Setting Up a Local Git Repository

Before we can begin storing versions of our project we want to create a repository. The first thing we must do is specify the Local Repository Credentials found in the settings tab.

The Flownex Git utility automatically records modifications and changes made to a network model. Through the Command History settings, we can omit certain user actions from the recording. Typical exclusions include:

  • “Open page”
  • “Deselect all”
  • “Select”
  • “Close page”

There is further reading on the settings customizations in section 24.1 of the Flownex General User Manual.

Creating a Git Repository

We will want to define our repository directory location in the Path or Repository field found near the top of the Git Client GUI. In this example I use the location E:\Tech Tips\5.31.2024.

If a valid Git repo does not already exist at this location we will click “Create” to make one. A new repo with a master branch will be created and an initial commit will also be performed when we click create.

Committing Changes to Git Repository

Once we’ve defined our GIT repo location we can create and commit the current version of our Flownex network. This can be done by clicking “Save and Commit” in the Flownex GUI in the Configuration Ribbon.

This will save our project and open the Git client. We should see the command history for any changes since the previous commit. At this point we can add any notes and commit our changes to the Git repository. Then we should click “Commit” to save.

Note that if we haven’t already defined our user credentials (found in the Settings tab of the Git Client GUI), we will get an error when trying to commit or create the repository.

Reverting to an Older Version

Through the Git client it is now quite simple to roll back to a previous version of a project.

To roll back to an older version of a project we should first ensure that the Flownex project in question is closed. Next, we will launch the standalone Flownex Git Client

We will need to navigate to our Git repo and then we can simply right-click on the version of the project which we’re reverting to and select “Revert to this Version”.

All changes after the selected version will be reverted without changing affecting the Git log. In this case, I can re-open the project and will see that the inlet pipe length has reverted to it’s original 100 m length.

Additional Operations

Other actions and operations available through the Git Client are described below. We can find more detailed information on these in section 24.2 and 24.3 of the Flownex General User Manual.

  • Export this Version
    • Used to export a copy of a selected version of a project.
  • Create and Switch to Branch
    • Used to create new version branches within a given master.
  • Switching between Branches
    • Users are able to switch between branches for a given project.
  • Merging Branches
    • This action will merge changes captured from separate branches into a specified “To” branch.
  • Add Remote and Push
    • This function will push existing local repo branches to a remote repo.
  • Clone
    • Used to copy a remote repo to a local location.
  • Fetch and Merge (Pull)
    • Retrieves changes from a remote repo after a clone or previous fetch.
  • Push
    • Updates all locally made changes to the remote repo.
  • Track Remote Branches as Local
    • This option allows for tracking a non-master branch from a cloned or fetched remote repo.

New Feature! Create a Reduced Order Model in Flownex

In the 2022 Flownex release (8.14.0) a new feature has been added to create Reduced Order Models. Today I’ll go over the basics for creating a reduced order model and how this can be utilized.

To demonstrate this functionality I built a simple network representing a shell and tube heat exchanger. In this model we’ve got liquid water on both the hot and the cold side. For simplicities sake we’ll keep the conditions such that the phase is always liquid.

The ROM builder setup is found under the “Configuration” ribbon in Flownex.

To configure our Reduced Order Model we will want to create a configuration and then define our Inputs (independent variables) and our Results (dependent variables). We do this by dragging and dropping inputs and results into the ROM Builder Configuration Window. For this example the independent variables will be the hot and cold side inlet mass flow rates and temperatures.

We’ll notice there are three different statuses for the ROM configuration. “New”, “SensitivityAnalysisCompleted”, and “NeuralNetworkTrained”. To complete the sensitivity analysis portion we need to set bounds for our independent variables, enter the total number of runs, and then click “Generate and Overwrite”. If we already have started creating our ROM and we simply want to expand the dataset we may want to choose “Generate and Append”.

Flownex will then run the sensitivity analysis which will provide the dataset to train our neural network.

In the creation of the neural network there are a variety of “hyperparameters” which can be adjusted to change the complexity and depth of the model. In this example we will stick with the default values but you can read all about what each of these parameters does in Chapter 23 of the Flownex General User Manual. At this point we can click the button to Build and Train our neural network! In the top right of the ROM Builder window we can see the approximate time remaining.

There are a few graphs we can view in the different tabs to assess the accuracy of our model. I am particularly fond of the results – predicted vs actual. This gives us an understanding, at a glance, of the deviation in what the ROM predicts vs Flownex results.

The last step is to export this as a standalone Functional Mockup Unit (FMU) for use in either other Flownex networks or in another tool like Ansys Twinbuilder.

Golf Club Rack Design and Build

Design

The design for this club rack was inspired by this post on r/GolfSimulator. However, I needed to fit the entire stand in 36″ space and also wanted to implement slightly larger spacing for woods and driver. I also wanted to move the “slot” for the clubs further into the cross-piece so that the clubs are less likely to slip out of their defined spots.

The CAD mockup actually was slightly wider than I ended up going. The gap between the furthest right slot and the right-riser is slightly smaller than appears in the rendering.

Materials List

3.5″ Pine Stock (from single 8′ stick)

(1) @ 36″ for slotted cross-piece

(2) @ 29.25″ for risers

2.5″ Pine Stock (from single 8′ stick)

(1) @ 36″ for base front

(1) @ 34.5″ for base back

(2) @ 7.75″ for base sides

3/4″ Plywood

(1) 34.5″ x 10.5″

Wood Stain

Polyurethane

Scrap Putting Green turf

Tools List

Miter Saw

Drill Press w/ 1.25″ hole bit

Kreg Jig (w/ screws and pocket hole plugs)

Palm Sander (80,150,220 grit)

Router

Build

  1. Cut all wood to appropriate lengths.
  2. Join all base pieces and risers with kreg jig using screws and wood glue for piece of mind.
    • Note that I tried to keep all pocket holes either internal or on the back so that they are less likely to be noticed.
  3. Drill holes for club slots in cross-piece
  4. Router all edges with either round-over or chamfer.
  5. Attach cross piece to risers using kreg jig, wood screws, and glue.
  6. Glue in pocket hole plugs for any visible pocket holes.
  7. Sand everything. 80 > 150 > 220
  8. Stain
  9. 3 coats of Poly, hand-sanding in between coats w/ 220 grit.
  10. Cut turf to fit base

Build Photos

Neat Input Keyboard Tricks

Do you ever find that the units on your Flownex input don’t match what you’re inputting? But you don’t notice until you’ve already typed in the value? There’s a trick to avoid redundant typing! After typing in our input we simply hold CTRL while changing the unit.

Here’s what it looks like if we hold Ctrl while choosing a new unit for a diameter input.

If we instead choose the unit while not holding Ctrl we see the units convert automatically.

If you’re more of a keyboard commando and like to avoid mouse-clicks we can also type in the units ourselves.

Some helpful keyboard shortcuts when entering units for areas, volumes, etc…

Alt + 0176 = ° (Superscript “0” used for degrees)

Alt + 0178 = ² (Superscript “2”)

Alt + 0179 = ³ (Superscript “3”)

Other Useful Input Keyboard Shortcuts

We can specify that an input is a global parameter by using “$” in the property input. Here is another blog post that goes into more detail on how to get the most out of Global Parameters.

Plotting Thermodynamic Cycles in Flownex

Often we find ourselves wanting to visualize results in a way to quickly understand how our thermal-fluid system is behaving. This is particularly desired when dealing with thermodynamic cycles. What I’d like to showcase today is how we can use the X-Y graph to plot an Organic Rankine Cycle. In today’s example I am using Flownex version 8.14.0.4675.

Rankine Cycle Modeling in Flownex

I won’t spend too much time on the system model itself, just note that we are working with a very simple network of flow components to lay the groundwork for the example. We use flow resistance elements to build the bulk of the network. We also use composite heat transfer elements to add/remove energy from the fluid. A turbine is used to extract power and, for simplicities sake, rather than model a pump we fixed the mass flowrate on one of the flow resistance components.

Creating the TS Diagram

To create the TS diagram we might first think we should use the Operating Point Plot. While this plot is indeed used for TS diagrams, since we want to plot multiple points we should instead use the XY Graph found in the components library under Visualization > Graphs. The XY Graph can be dragged and dropped onto the drawing canvas.

Another option would be to add the XY Graph as its own page. This can be done by clicking on the Project View pane, selecting the “Graphs” button, then right-clicking on the folder and adding a new graph page.

Then, to add our TS data points, we’ll simply drag and drop the Fluid Data Reference from the key components/nodes in our system onto our newly created graph.

Lastly, if we’d like to connect the data points we can do so by editing the properties of the XY Graph to connect points.

There we have it! A TS diagram with our operational points overlaid all in Flownex! Recall we can expose a lot of additional formatting for our graphs by checking the boxes under Advanced Formatting for either Graph formatting or Line formatting.

Save your back-end with the Flownex Backtracker

We’ve all experienced that fear. When we sit down at our computer and realize that all of our applications are closed. That Windows decided to do a restart in the middle of the night. If we are running any long simulations the thought of having to restart from the beginning is a tough pill to swallow. Luckily, in Flownex, we can use the backtracker functionality to create re-start points during the simulation. In today’s demo I am using the most recent Flownex release, 8.14.0.4675.

Enabling the Backtracker

The Backtracker is useful both for resuming long transients and for troubleshooting transient behavior around a transient action. The Backtrack setup can be found in the Configuration ribbon at the top of the Flownex GUI.

After clicking Backtrack setup we will see the backtracker pane available on the right side of the GUI similar to “Snaps”. We will want to click the floppy disk (save) button in the Backtrack pane to enable saving of backtracks. The button will have a blue outline when backtracking is enabled. The “X” button will delete all backtracks.

Backtracker Inputs

In the Backtracker interface we have several inputs we can define. The most important to define are the interval and the count.

  • Interval
    • Defines how often a backtrack is saved. The default unit for interval is in seconds.
  • Count
    • Determines the count of recent backtracks that are retained in the Backtracker. If we want to capture the entire transient we should multiply the count by interval to make sure the entire duration is covered.
  • “Use prefix number”
    • This checkbox along with the “Start number” will save the backtracks with the desired number as a prefix, counting up with each concurrent backtrack save.
  • “Use snap name as prefix”
    • This checkbox will ensure that the backtracks saved have the prefix of whatever snap was loaded before the run was initiated.
  • “Steps after snap load to first backtrack”
    • This allows us to specify how many timesteps should complete (after initial snap load) before the first backtrack is saved.

Breath Easy and Run Transients

At this point we should be able to run our transient and see the backtracker populate. To load a saved backtrack point we should ensure our simulation is in an inactive state before right-clicking on the backtrack and choosing load. From this point we can resume our transient simulation.

Bonus Tip!

  • When troubleshooting a transient right-click on the backtrack just before the event and select “copy to snap” so that you can retain and load the state of the network at this start point.