How to Print to Console in Flownex

Categories:

Today we will cover how to use a Quick Iterative Script to print residuals during a designer setup. Console printouts are an easy and accessible way to add transparency to specific properties during a simulation. Printing residuals to the console will allow us to quickly track convergence across multiple steady state iterations while using a designer. In this demo we are using Flownex version 8.14.0.4676.

Exposing Flow Properties

We will be using Task Exposer component to allow an Iterative Quick Script to read the residual properties form the flow solver.

Picture1 1

Selecting “Flow Solver” will expose properties form the Flow Solver. This will allow us to access the values of maximum residuals at each pressure iteration within our network.

picture 2 1

Implementing a Quick Script

Next, we will create a Quick Iterative Script. A Quick Iterative Script will allow us to run our code during each pressure iteration.

Picture3 1

We will need to edit the Iterative Quick Script by adding variables and methods to print residual value to the console. The AddTextLine() method will be used to print each residual and add new lines for readability.

Picture4 2

The Quick Iterative Script allows us to implement this code with minimal formatting. This script will execute during every pressure iteration, printing our output to the console. The residuals and iteration number will be provided by the flow solver, through a data transfer link.

We will also allow the user to manually input the number of main solver iterations the solver will execute before scripts execute.

Transferring Data

Now that we have created our script, we can create data transfer links to assign and read properties form the Iterative Quick Script. We will be reading the maximum residuals for momentum, continuity, and energy in addition to the (pseudo) timestep iteration form the Flow Solver.

Picture5 1

Lastly, we can setup a data transfer link from our script to the Task Exposer to specify the number of iterations run before our script executes.

picture 5

Residual Printouts

We can utilize this script to print residuals to our console. A designer setup similar to Tutorial 22, Step 6(C) is shown to demonstrate the console output.

Picture7 1

After pressing “Run Designer”, we can see the residuals for each iteration plotted within the console!

Get Your Ansys Products & Support from the Engineers who Contribute to this Blog.

Technical Expertise to Enable your Additive Manufacturing Success.

Share this post:

Upcoming Events

Apr 21
, 2026
Reduce Component Weight in Demanding Service Conditions - Webinar
Apr 22
, 2026
Certification by Analysis for Propulsion Systems: Building Confidence through Modeling, Uncertainty, and Credibility - Webinar
Apr 22
, 2026
Modeling a Pressurized Water Reactor in Flownex - Webinar
Apr 22
, 2026
Ansys 2026 R1: Ansys Discovery What’s New
Apr 23
, 2026
Access the Right Material Data Directly Inside Your Simulation Workflow - Webinar
Apr 23
, 2026
Ansys 2026 R1: Ansys Digital Twin What’s New
Apr 27
- Apr 30
, 2026
Nuclear and Emerging Technologies for Space (NETS) 2026
Apr 28
, 2026
Uncertainty Quantification for Real‑World Model Deployment in Industrial Systems - Webinar
Apr 28
, 2026
Ansys 2026 R1: Ansys Sherlock and Electronics Reliability What’s New
Apr 29
, 2026
Ansys 2026 R1: Structural Mechanics What’s New
Apr 30
, 2026
Ansys 2026 R1: What’s New in Ansys Optics
May 07
, 2026
Ansys 2026 R1: Ansys LS-DYNA What's New
May 13
, 2026
2026 Arizona Manufacturing Showcase
Jun 18
, 2026
E-Mobility and Clean Energy Summit
Jul 15
, 2026
Arizona Aerospace Summit
Aug 10
- Aug 11
, 2026
2026 CEO Leadership Retreat + Golf Tournament
Oct 21
, 2026
2026 Southern Arizona Tech + Business Expo
Nov 18
, 2026
2026 Governor’s Celebration of Innovation

Contact Us

Most of our customers receive their support over the phone or via email. Customers who are close by can also set up a face-to-face appointment with one of our engineers.

For most locations, simply contact us: