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

CHT-natural convection, floating point error in first time step

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 28, 2025, 18:32
Default CHT-natural convection, floating point error in first time step
  #1
New Member
 
Colin
Join Date: Nov 2022
Posts: 4
Rep Power: 4
renegade_eng is on a distinguished road
Hi all,

OF newbie here. This is not my first case, but most of my previous OF sims were external aerodynamics, not CHT, and there aren't that many

I've been trying to simulate the heat dissipation from a custom heatsink for a set of radio amplifiers. At first I was using a forced convection setup, but was having sigfpe problems during the first time step, so I decided to make a simpler case with just the heatsink and amps sitting in a cubic meter of air to see if I could isolate the problem to my air inflow/outflow conditions.

It didn't work.

Now my natural convection case solves most of one time step, then throws a sigfpe while running the isothermalFluid::correctBuoyantPressure() function...the stacktrace looks like division by zero occurs in "operator/<Foam::fvsPatchField, Foam::surfaceMesh>(). I have no idea what that means, or what part of my setup is causing it. I wondered if maybe it was a zero area/face patch, but I can't find any.

I've tinkered around with boundary and initial conditions, and fvSchemes and Solution for the "air" region, mostly trying to match the CHT and then the HotRoom tutorials. I've also adjusted the mesh resolution/refinement a few times. Those got my to solving most of the first time step

Any help would be greatly apprciated

I'm attaching the output from foamMultiRun and here is a Dropbox link to the tar.gz of my case (it was too big to attach).

---------------------------

PS: I've tried searching the forum, the internet, and looking at the manual. Nothing I've seen so far seemed related, but if I just missed it, please point me in the right direction. Thanks!
Attached Files
File Type: txt log.txt (13.6 KB, 5 views)

Last edited by renegade_eng; April 29, 2025 at 17:32. Reason: Grammar and adding more history of attempted solutions
renegade_eng is offline   Reply With Quote

Old   May 21, 2025, 14:31
Default Dumb Mistake
  #2
New Member
 
Colin
Join Date: Nov 2022
Posts: 4
Rep Power: 4
renegade_eng is on a distinguished road
Hi FOAMers,

I found the issue. For some reason (seems likely because this is a compressible case), setting the initial value of p_rgh to 0 caused the division by zero FPE. Seems pretty obvious now
renegade_eng is offline   Reply With Quote

Reply

Tags
cht problem, chtmulitregionfoam, openfoam 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convergence problem of OF WUYing OpenFOAM Running, Solving & CFD 2 September 20, 2021 11:09
Setting up Lid driven Cavity Benchmark with 1M cells for multiple cores puneet336 OpenFOAM Running, Solving & CFD 11 April 7, 2019 01:58
pressure in incompressible solvers e.g. simpleFoam chrizzl OpenFOAM Running, Solving & CFD 13 March 28, 2017 06:49
plot over time fferroni OpenFOAM Post-Processing 7 June 8, 2012 08:56
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 bookie56 OpenFOAM Installation 8 August 13, 2011 05:03


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