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

Finally giving up on my cht case, and I need some help

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By Yann
  • 1 Post By boffin5

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 11, 2023, 15:50
Default Finally giving up on my cht case, and I need some help
  #1
Senior Member
 
Alan w
Join Date: Feb 2021
Posts: 288
Rep Power: 6
boffin5 is on a distinguished road
Followers of this forum are aware of my long running travails in creating a chtMultiRegion case to simulate the installation of a coolant radiator on an airplane fuselage. My goal is to validate a real installation done on a light aircraft in Canada, specifically with regards to claims that the associated Meredith effect will result in a drag reduction due to the heated radiator exhaust.

Over the last many months, I have labored on this simulation, constantly running into problems, and constantly fixing them, only to run into more. I have tried to methodically troubleshoot by creating simple diagnostic cases, after which I apply lessons learned to the real simulation. And I have made substantial progress, but today, again I ran into the "max iterations exceeded" message. At this point I am flummoxed.

Please note that as a check, I took the geometry files, minus the radiator porous zone, and put them into a simpleFoam simulation, where it ran just fine.

At this point, I have tried everything I can think of, and have run out of options. This is a bitter feeling, as I desperately need to get the case to run. My goal is to continue communicating with the builder of the real airplane installation, and get to the bottom of the validity of the Meredith effect.

I have simply run out of ideas, and I am fervently hoping for help from the experts in this forum, who have generously helped me before. I am attaching some files pertaining to the case, and can gladly supply more if requested. Note that the runlog has words about "sym-fairing", but this is an artifact of a version where I had the fuselage and radiator fairing as separate stl files; since then I combined them. Also find below dropbox links to zip files of both the simpleFoam case and the chtmultiRegion case.

If I am so lucky as to get help, I will be thankful, beyond words.

Alan w

https://www.dropbox.com/scl/fi/grx0e...3s5ra1kwvhpli7

https://www.dropbox.com/scl/fi/uvb4k...g290f2j67wapay
Attached Files
File Type: txt runlog.txt (24.9 KB, 9 views)
File Type: txt constant-fluid-solid-fvOptions.txt (2.1 KB, 5 views)
File Type: txt fluid-fvSchemes-fvSolution.txt (1.7 KB, 2 views)
File Type: txt solid-boundary-conditions.txt (6.5 KB, 2 views)
File Type: txt fluid-boundary-conditions.txt (8.0 KB, 1 views)
boffin5 is offline   Reply With Quote

Old   June 11, 2023, 16:58
Default more case files
  #2
Senior Member
 
Alan w
Join Date: Feb 2021
Posts: 288
Rep Power: 6
boffin5 is on a distinguished road
Since I ran into the 5 file limit ....
Attached Images
File Type: png SnapCrab_NoName_2023-6-9_10-29-5_No-00.png (28.4 KB, 21 views)
Attached Files
File Type: txt region-properties-and-controlDict.txt (2.8 KB, 4 views)
File Type: txt fvSchemes-fvSolution.txt (485 Bytes, 1 views)
boffin5 is offline   Reply With Quote

Old   June 12, 2023, 05:09
Default
  #3
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,238
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
Hello Alan,

One idea, if you didn't already try it: you could keep the porous zone in your simpleFoam simulation, so you can make sure the porous zone behaves properly before switching to chtMultiRegionFoam.

Another thing: have you tried using some limiter in fvOptions, such as limitTemperature? It can sometimes help to avoid things blowing during the first iterations.

Hope this helps,
Yann
parthigcar likes this.
Yann is offline   Reply With Quote

Old   June 12, 2023, 11:00
Default
  #4
New Member
 
Join Date: Feb 2016
Posts: 23
Rep Power: 10
37269 is on a distinguished road
Why do you have your timestep set so high? I see in the controlDict that you have tried a lower value as well. Current setting is 1s, commented out are 0.001 for deltaT. Did that work better? Maybe try going even lower with that, at least in the beginning.

Your max. CFL is currently larger than 130,000. Not sure if that will give you a sensible solution at all.
37269 is offline   Reply With Quote

Old   June 12, 2023, 14:08
Default timestep change doesn't work
  #5
Senior Member
 
Alan w
Join Date: Feb 2021
Posts: 288
Rep Power: 6
boffin5 is on a distinguished road
Thank you 37269,
Even when I tried a timestep of 0.0001, it failed at the second timestep.
No matter what I do, it fails at the second timestep.
This is so perplexing, given this paradox:

Yann helped me set up a similar cht case, with everything the same except for the use of a simplified radiator fairing. It ran okay, therefore the setup file settings are okay.

However, for the cht case with the complicated geometry files, it fails. So given that the setup files are the same, this implies that the geometry files and mesh are at fault.

But, with the complicated geometry inserted into a simpleFoam case, it runs fine. This implies that the geometry files and mesh are okay.

My head is spinning on this one, and I am at a full stop.
boffin5 is offline   Reply With Quote

Old   June 13, 2023, 15:19
Default OMG - It runs!
  #6
Senior Member
 
Alan w
Join Date: Feb 2021
Posts: 288
Rep Power: 6
boffin5 is on a distinguished road
It turns out that my boundary conditions had problems. I made changes as shown in the attached files, and at long last, I have a chtMultiRegion simulation, as illustrated by the flow in the image!

But now, I would like to make sure that data is not just garbage; I have questions about my assumptions in the boundary conditions. Mainly, as to my boundary conditions for the radiator itself. As seen in the attached image, in addition to BC's for the domain inlet and outlet, I have a radiator inlet and outlet, for which I applied similar BC's. All the boundary conditions are attached, but here is a snippet:
Code:
object      U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 1 -1 0 0 0 0];

internalField   uniform (0.01 0 0);

boundaryField
{
    #includeEtc "caseDicts/setConstraintTypes"
    
    "frontier|ground"
    {
        type            slip;
    }
        
    inlet
    {
        type            fixedValue;
        value           uniform (0.01 0 0);
    }
    
    outlet
    {
        type            inletOutlet;
        inletValue      uniform (0 0 0);
        value           uniform (0 0 0);
    }
    
    sym-fuselage
    {
        type            noSlip;
    }
        
    rad_radinlet
    {
        type            fixedValue;
        value           uniform (0.01 0 0);
    }
    
    rad_radoutlet
    {
        type            inletOutlet;
        inletValue      uniform (0 0 0);
        value           uniform (0 0 0);
    }

    rad_radfrontier
    {
        type            noSlip;
    }
       
    solid_to_fluid
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
    
    "proc.*"
    {
        type processor;
    }

}
Is this reasonable?
Also, I have BC's for the domain, termed as 'frontier' and 'ground'. In this case 'ground' is the same as 'frontier'; I only have it this way in case I do a simulation of a car. It is shown as 'slip' above, and for most of the other BC's. Again, I don't know if this is correct; I couldn't find similar examples in the tutorials.

I want to give sincere thanks to peterhess, who gave me invaluable advice, and to many others in the forum, who have beared with me through the last months and years.

Alan w
Attached Images
File Type: png SnapCrab_NoName_2023-6-13_10-54-58_No-00.png (95.5 KB, 20 views)
File Type: png SnapCrab_NoName_2023-6-13_10-24-52_No-00.png (58.6 KB, 14 views)
Attached Files
File Type: txt boundary-conditions-solid.txt (5.5 KB, 2 views)
File Type: txt boundary-conditions-fluid.txt (6.5 KB, 2 views)
37269 likes this.
boffin5 is offline   Reply With Quote

Old   June 15, 2023, 13:18
Default well, that didn't last long
  #7
Senior Member
 
Alan w
Join Date: Feb 2021
Posts: 288
Rep Power: 6
boffin5 is on a distinguished road
Pleased with getting my cht case to run, I was ready to iterate the flow values!

So I changed the fluid p from 84559 to 84307, and the T from 551.15 to 280.
For the solid radiator, I changed p from 84559 to 84307, and the T from 623.15 to 280.

And then it failed, with the "max iterations exceeded" message

So I looked at this thread: FOAM FATAL ERROR Maximum number of iterations exceeded

Following advice there, in fvSolution I changed ddtSchemes from steadyState to Euler. I found that this necessitated this addition in the fvSolution solvers:
"rho.*" {solver diagonal};

Still, it failed.

Another entry in thread says to change the solver from newton to brent, without explaining how. I looked into it, but it looks complicated. Perhaps someone can provide a detailed guide as to how to do it?

For now, I'm again at a full stop, wondering why my simulation works with one set of environment values, but fails when I make minor changes.
boffin5 is offline   Reply With Quote

Old   June 15, 2023, 13:36
Default forgot runlog
  #8
Senior Member
 
Alan w
Join Date: Feb 2021
Posts: 288
Rep Power: 6
boffin5 is on a distinguished road
Here is the latest failure report. Actually, this one was done with a timestep of 0.01.
Attached Files
File Type: txt runlog.txt (13.2 KB, 6 views)
boffin5 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
[Salome] Trivial tips to generate geometry with Salome for CHT case student666 OpenFOAM Meshing & Mesh Conversion 0 October 5, 2017 01:08
Is Playstation 3 cluster suitable for CFD work hsieh OpenFOAM 9 August 16, 2015 15:53
[Commercial meshers] CHT case meshing with Pointwise akrasemann OpenFOAM Meshing & Mesh Conversion 0 June 17, 2014 06:31
2D case giving 3D result lovecraft22 OpenFOAM 10 July 21, 2011 03:18
Transient case running with a super computer microfin FLUENT 0 March 31, 2009 12:20


All times are GMT -4. The time now is 21:28.