|
[Sponsors] | |||||
Floating point exception with fluid solver using polynomial mu and kappa - OpenFOAM v |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
New Member
Miguel Diaz
Join Date: Apr 2025
Posts: 2
Rep Power: 0 ![]() |
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. |
|
|
|
|
|
|
|
|
#2 |
|
New Member
Miguel Diaz
Join Date: Apr 2025
Posts: 2
Rep Power: 0 ![]() |
Sorry. It was a mistake. viscosity model was not defined earlier. Now it works properly.
|
|
|
|
|
|
![]() |
| Tags |
| fluid properties, temperature dependent, version 12 |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|