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

Error Prevention: Negative Temperature Throws Fatal Error in Fluid Sim

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By ben_

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 27, 2017, 02:23
Default Error Prevention: Negative Temperature Throws Fatal Error in Fluid Sim
  #1
New Member
 
Annonymouse
Join Date: Jul 2017
Posts: 5
Rep Power: 9
ben_ is on a distinguished road
Hello!

I am just starting with OpenFoam, and this is my first time posting, so feel free to point out something obvious that you would assume someone else would know

I am modelling a steady state, thermal fluid flow through a pipe elbow. I am getting an error when the thermofluid model (thermoI) gets passed a negative temperature. I am also often getting the error where a variable fails to converge in the number of iterations.

I get these errors when I change the turbulence model from k-epsi to k-omega, when I extend the length of the pipe, when I run with different pipe geometries and in general when I try to change variables quickly. I would like to know where the error comes from and know how to interpret it to run simulations. This error throws even if I set basic conditions with no heat transfer.

I think it might be that my initial conditions are very extreme: ~15MPa, ~600-800K, helium fluid, pipe diameter of 10 mm. Are there any strategies to designing runs to prevent this error (add mesh refinement, etc)?

I am using a 'const' transport equation and a 'hconst' thermo equation.

Best,

Ben

Last edited by ben_; August 27, 2017 at 04:04.
ben_ is offline   Reply With Quote

Old   August 28, 2017, 13:56
Default Update
  #2
New Member
 
Annonymouse
Join Date: Jul 2017
Posts: 5
Rep Power: 9
ben_ is on a distinguished road
I use this code in fvOptions and it does not crash (thanks KarenRei).

temperatureLimit
{
type limitTemperature;
active true;

limitTemperatureCoeffs
{
selectionMode all;
min 100;
max 5000;
}
}

However, there are still problems with converging the enthalpy calculation. Any ideas on that?
Ramzy1990 likes this.
ben_ is offline   Reply With Quote

Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error message: Insufficient Catalogue Size Paresh Jain CFX 33 August 16, 2024 06:09
[openSmoke] libOpenSMOKE Tobi OpenFOAM Community Contributions 562 January 25, 2023 10:21
Problem in setting Boundary Condition Madhatter92 CFX 12 January 12, 2016 05:39
is internalField(U) equivalent to zeroGradient? immortality OpenFOAM Running, Solving & CFD 7 March 29, 2013 02:27
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 10:11


All times are GMT -4. The time now is 01:24.