JuliaCon 2025

Modeling of Fluid Systems in JuliaSim
2025-07-24 , Main Room 1 (Main stage)

This talk demonstrates how the difficult problem of modeling fluid systems is tackled in JuliaSim. We will cover various numerical and symbolic challenges that we face and then provide a detailed discussion of how we model the properties of different types of fluids across a range of engineering applications including applications like HVAC, power fluids and so on.


There are a wide variety of modeling and simulation tools on the market. One thing that distinguishes one tool from another is how they approach some of the particularly challenge modeling domains. One such challenging modeling domain is modeling of fluid systems.

Fluid systems present a number of challenges for modeling. First, they can often be quite numerically stiff. Furthermore, fluids can be highly non-linear in their behavior, especially in the context of phase changes or chemical reactions. Third, computing fluid properties for fluids is an entire topic on its own and is especially complicated by mixtures of different fluids (especially in different phases). Finally, any given component in a fluid model has to concern itself not only with how the component itself (e.g., valves, tanks, compressors) behaves but with the orthogonal concern of how the fluid contained in it also behaves.

In this talk, we'll cover how we model fluid systems in JuliaSim. This includes using multiple dispatch in Julia to build up component models from an abstract representation of the fluid and its properties. We'll also discuss how we specify which fluids to use in each distinct circuit within our models and the kinds of user friendly diagnostics we provide in cases where uses make errors in this process. Lastly, we'll discuss how we handle the concept of "thermodynamic state" across different types of fluids and property models.

I am currently the Senior Directory of Product Management for JuliaSim at JuliaHub. I have built my whole career on my passion for modeling, simulation and software and before coming to work for JuliaHub I had the privilege of working on engineering software at companies like Ford, LMS, Dassault Systèmes and Ricardo.

He works as a modeling and simulation engineer at JuliaHub.

He loves to code, paint, write and trek. He likes Julia ecosystem and contributes to it.

This speaker also appears in: