CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Floating point exception with fluid solver using polynomial mu and kappa - OpenFOAM v

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 29, 2025, 13:36
Default Floating point exception with fluid solver using polynomial mu and kappa - OpenFOAM v
  #1
New Member
 
Miguel Diaz
Join Date: Apr 2025
Posts: 2
Rep Power: 0
miguelCai is on a distinguished road
Hello everyone,
I'm working on a heat transfer simulation using OpenFOAM v12 with the fluid solver and turbulence model kOmegaSST. I'm trying to define the dynamic viscosity mu and thermal conductivity kappa as temperature-dependent using polynomial coefficients in constant/physicalProperties.
My thermoType is set as:
type heRhoThermo;
mixture pureMixture;
transport polynomial;
thermo hPolynomial;
equationOfState perfectGas;
specie specie;
energy sensibleEnthalpy;


Inside mixture/transport, I define:


viscosityModel polynomial;
muCoeffs<8> (1.26e-6 4.227e-8 -6.3532e-12 0 0 0 0 0 ); //Pa.s

thermalConductivityModel polynomial;
kappaCoeffs<8> (-0.0041379389 7.26286393e-05 -5.084428e-09 0 0 0 0 0); // [W/m/K]


The solver compiles the dynamic library but crashes at runtime with:


Foam::fluidThermo::nu() const
Floating point exception (core dumped)


I’ve confirmed the mesh is fine, the case runs correctly with constant mu and kappa, and all other fields (U, p, T, k, omega, nut, etc.) are correctly initialized.
Has anyone encountered this issue or managed to run fluid with temperature-dependent mu and kappa using the polynomial option in OpenFOAM v12?
Any insight would be greatly appreciated.
Thanks in advance!

Last edited by miguelCai; April 30, 2025 at 02:48.
miguelCai is offline   Reply With Quote

Old   April 30, 2025, 10:39
Default
  #2
New Member
 
Miguel Diaz
Join Date: Apr 2025
Posts: 2
Rep Power: 0
miguelCai is on a distinguished road
Sorry. It was a mistake. viscosity model was not defined earlier. Now it works properly.
miguelCai is offline   Reply With Quote

Reply

Tags
fluid properties, temperature dependent, version 12

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 07:03.