|
[Sponsors] |
January 29, 2020, 12:05 |
rhoSimpleFoam - Newbie Issues
|
#1 |
Member
Andy Robertson
Join Date: Mar 2009
Location: Long Island NY
Posts: 46
Rep Power: 17 |
Folks,
First time using OpenFoam about 30 yrs using other tools, but feeling like a newb ;-) Running a small tube bundle problem. Used the square bend as my starting template and it runs just fine. The job starts, gets to time = 1 and then just stops. attached is the dict, and log file. I can upload the whole thing if necessary. But first question. Can I get more verbose output? Is there a reference pressure in here somewhere? Not sure why the pressure control is showing pMin as low as it is. I have set the back pressure at the outlet to be just above atmospheric. I would expect the inlet pressure to rise to whatever is required to push the flow. I have clearly made an error in my setup, but can't seem to find it. Any help is appreciated. Thanks Andy |
|
January 29, 2020, 15:02 |
Follow Up #1
|
#2 |
Member
Andy Robertson
Join Date: Mar 2009
Location: Long Island NY
Posts: 46
Rep Power: 17 |
So I ran
rhoSimpleFoam -dry-run And... it looks like the solver tries to run So.... Is running -dry-run really just running the first time step /iter? If so , why does it seem to hang when I try and run the whole job? Hmmm Any help is appreciated Thanks Andy |
|
January 29, 2020, 17:56 |
Follow Up # 2
|
#3 |
Member
Andy Robertson
Join Date: Mar 2009
Location: Long Island NY
Posts: 46
Rep Power: 17 |
So Dry run does not as far as I can tell give me an snapshot of the initial field. That is always an useful debugging tool. Is there a way to do that in OpenFoam?
I did try some different smoother settings and was told residuals were 1e200. Clearly something wrong. My guess is my initialization of BCs, but I cant find it. On question. nCellsInCoarsestLevel was set to some number of order 10 in the example. For a 625,000 cell model that seems ludicrously small. Is there any documentation on solver/bc dependencies? solver initial condition dependencies? I have my sym boundaries in all my time 0 files. Not sure that is necessary, or that I specified them correctly. My mesh has 4 sym planes, 2 define discontinuous boundaries. Do those need to be broken up? Any help is appreciated Thanks Andy |
|
January 30, 2020, 04:33 |
|
#4 |
Senior Member
Troy Snyder
Join Date: Jul 2009
Location: Akron, OH
Posts: 220
Rep Power: 19 |
Andy,
More information is needed. Most notably, your boundary condition files and a log file after the simulation has run for a while. I would not overly focus on the specifics of the linear solver settings at this stage. I assume that since your first post your simulation now runs for a bit as you have stated the residuals are very large, i.e. the solution is diverging. |
|
January 30, 2020, 11:09 |
Status
|
#5 |
Member
Andy Robertson
Join Date: Mar 2009
Location: Long Island NY
Posts: 46
Rep Power: 17 |
Troy,
So it doesn't really run, I fiddled with changed to simpler diagonal solver and got a little output. Log file is fairly sparse. I know the mistake is mine, but just not getting enough feedback from the code to determine the issue. Can I get a more verbose log file? It is also not clear what the difference is between symmetry and symmetryPlane The Log and BC files are below Any help is appreciated Thanks Andy Log file: PHP Code:
Clearly I have a major problem with my setup alphat PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
T PHP Code:
U PHP Code:
|
|
March 10, 2020, 06:47 |
|
#6 |
New Member
james freak
Join Date: Jan 2020
Posts: 14
Rep Power: 6 |
I have similar trouble.
Last edited by me45; March 10, 2020 at 17:17. |
|
March 10, 2020, 10:28 |
|
#7 |
New Member
Join Date: Feb 2020
Posts: 10
Rep Power: 6 |
Right now you're setting an inlet velocity as BC. However, I don't see any info on your inlet density. rhoSimpleFoam is a compressible solver so I think you need that.
When you use a compressible solver, there's two ways of combining BCs for the inlet and outlet. First option: Set a total pressure at the inlet and a static pressure at the outlet. This can be quite unstable if you have a complicated flowfield. Second option: Set a massflow at the inlet and a static pressure at the outlet. The massflow BC works as like this: inlet { type flowRateInletVelocity; massFlowRate constant $yourvalue; rhoInlet 0.5; // This is just an optional first guess and can be left out completely. } This method is quite stable, I've used it successfully to simulate very similar cases to yours. If you really want to use a total pressure/static pressure setup, you can use the massflow to initialize the solution and then later change it to total pressure. I've found this to be quite stable. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
transsonic nozzle with rhoSimpleFoam | Unseen | OpenFOAM Running, Solving & CFD | 8 | July 1, 2022 07:54 |
Convergence issues for Flat plate with sharp edge | rajnarayang | FLUENT | 3 | June 20, 2017 13:02 |
rhoSimpleFoam angledDuctExplicitFixedCoeff tutorial fails in parallel | donQi | OpenFOAM Running, Solving & CFD | 1 | February 22, 2016 20:47 |
Multigrid Stability Issues | ThomasHermann | SU2 | 1 | November 5, 2014 17:18 |
rhoSimpleFoam. patchField error. | 123 | OpenFOAM Running, Solving & CFD | 4 | June 6, 2014 16:22 |