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

pimpleFoam imposible to run while simple no problem

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By HPE

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 20, 2021, 15:27
Unhappy pimpleFoam imposible to run while simple no problem
  #1
Senior Member
 
Franco
Join Date: Nov 2019
Location: Compiègne, France
Posts: 129
Rep Power: 7
otaolafr is on a distinguished road
Hello,
I am seeking help in a strange behavior that I have no clue where to go.

I have a case with a complex geometry, and cyclicAMI and symmetry boundaries (it is a quarter of cylinder where the InletAMI and OutletAMI are connected by cyclicAMI and sym_1 and sym_2 are symmetry planes).
I create my volume mesh using snappyHexMesh and after create the symmetry and cyclicAMI patches with createPatch up to here everything okey.

my issue comes here: if I run simpleFoam it runs correctly until it converges to 1-5 residuals for p and U. but if I run pimpleFoam the solver explodes with the typical error divided by zero where there is not much indication about the problem. it crashes after 3 or 4 iteration whatever the deltaT is (it is not a Co number problem as it crashes even with values down to maxCo 0.02)

and I dont know where to go from here as the fvSolution and fvSchemes seems okey, even if I use the results from a converged simpleFoam and from there I run pimple, it will crash after 3 or 4 iterations (in time)

I am attaching the fvSolutions and fvSchemes and also the link for the case as it can be difficult to have an idea with my description of the problem (but I not sure what can I said more than these... as the error does not give any clear information.)
small note, in the case i put a mesh that is quiet coarse, but the problem is still there even at finer meshes.
link for complete case: https://drive.google.com/file/d/1EYO...ew?usp=sharing



fvSchemes_1.txt

fvSolution.txt
any help or point in direction will be appreciated
otaolafr is offline   Reply With Quote

Old   May 20, 2021, 16:15
Default
  #2
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13
HPE is on a distinguished road
Please remove the 'bounded' keywords for any transient simulation.

Hope this helps.
otaolafr likes this.
HPE is offline   Reply With Quote

Old   May 20, 2021, 16:27
Default
  #3
Senior Member
 
Franco
Join Date: Nov 2019
Location: Compiègne, France
Posts: 129
Rep Power: 7
otaolafr is on a distinguished road
Quote:
Originally Posted by HPE View Post
Please remove the 'bounded' keywords for any transient simulation.

Hope this helps.
Hi man, nice to cross you again (as always thanks for the help!)

even when it is running in steadyState mode? see fvSchemes

I am going to try of course, only asking to learn a little bit more
best regards
otaolafr is offline   Reply With Quote

Old   May 20, 2021, 17:07
Default
  #4
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13
HPE is on a distinguished road
Hi

No no, please keep the "bounded" keyword for steady-state simulations. But remove it when you run transient simulations. This keyword is useful for steady cases, but destabilises transient cases (to my experience).
HPE is offline   Reply With Quote

Old   May 20, 2021, 17:31
Default
  #5
Senior Member
 
Franco
Join Date: Nov 2019
Location: Compiègne, France
Posts: 129
Rep Power: 7
otaolafr is on a distinguished road
Quote:
Originally Posted by HPE View Post
Hi

No no, please keep the "bounded" keyword for steady-state simulations. But remove it when you run transient simulations. This keyword is useful for steady cases, but destabilises transient cases (to my experience).
still exploding like crazy :/
log.pimpleFoam.txt
otaolafr is offline   Reply With Quote

Old   May 20, 2021, 17:44
Default
  #6
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13
HPE is on a distinguished road
I had been writing items - and everything was vanished... This forum is really low quality...

Anyways, some ideas:

fvSchemes:

- I assume you don't use steadyState for the ddtSchemes. If so, please change it to Euler.
- please use a limiter (e.g. cellMDLimited) in gradSchemes - and preferably - don't use it a default value there
- if things keep blowing up - use the most diffusive schemes in fvSchemes - you can search them, e.g. upwind for divergence
- check AMI settings - there was a limiter that can be applied to AMI to avoid zero-face issues - please search it (I must sleep - otherwise will post tomorrow) AMIWeights FO

fvSolution:

- relaxationfactor for p from 0.5 to 0.3
- relTol for pFinal from 0.01 to 0
- use the same smoother for the p solver
- nOuterCorrectors from 1 to 3


EDIT: could you please also add fieldMinMax FO to monitor min max p, U as well?
HPE is offline   Reply With Quote

Old   May 21, 2021, 17:12
Default 2 cents
  #7
New Member
 
Paulin FERRO
Join Date: May 2021
Location: France
Posts: 21
Rep Power: 5
pferro is on a distinguished road
Hello,


I agree with HPE.


you have no limiter on your schemes. This is very unlikely to obtain a non oscillating or stable solution with Gauss linear for div(phi,U). Instead : linearUpwindV grad(U) and add a limiter on grad(U) or limitedLinearV 1 or vanLeerV. Go to upwind for turbulence.
Eventually add a stronger limitation on non ortho correction : limited 0.7 instead of corrected.
For relaxation factor because you are want to use pimpleFoam I assume you want to get a transient result. The relaxation factors for the last PIMPLE iteration must be 1.


Good luck


Paulin
pferro is offline   Reply With Quote

Old   May 22, 2021, 09:34
Default
  #8
Senior Member
 
Franco
Join Date: Nov 2019
Location: Compiègne, France
Posts: 129
Rep Power: 7
otaolafr is on a distinguished road
Hello guys,
wow so much to learn, it is difficult to even follow you! eheheh, I should learn more about the schemes for the different terms.


Quote:
Originally Posted by HPE View Post
I had been writing items - and everything was vanished... This forum is really low quality...

Anyways, some ideas:

fvSchemes:

- I assume you don't use steadyState for the ddtSchemes. If so, please change it to Euler.
- please use a limiter (e.g. cellMDLimited) in gradSchemes - and preferably - don't use it a default value there
- if things keep blowing up - use the most diffusive schemes in fvSchemes - you can search them, e.g. upwind for divergence
- check AMI settings - there was a limiter that can be applied to AMI to avoid zero-face issues - please search it (I must sleep - otherwise will post tomorrow) AMIWeights FO

fvSolution:

- relaxationfactor for p from 0.5 to 0.3
- relTol for pFinal from 0.01 to 0
- use the same smoother for the p solver
- nOuterCorrectors from 1 to 3


EDIT: could you please also add fieldMinMax FO to monitor min max p, U as well?


Quote:
Originally Posted by pferro View Post
Hello,


I agree with HPE.


you have no limiter on your schemes. This is very unlikely to obtain a non oscillating or stable solution with Gauss linear for div(phi,U). Instead : linearUpwindV grad(U) and add a limiter on grad(U) or limitedLinearV 1 or vanLeerV. Go to upwind for turbulence.
Eventually add a stronger limitation on non ortho correction : limited 0.7 instead of corrected.
For relaxation factor because you are want to use pimpleFoam I assume you want to get a transient result. The relaxation factors for the last PIMPLE iteration must be 1.


Good luck


Paulin
- I assume you don't use steadyState for the ddtSchemes. If so, please change it to Euler.
well I was trying to use the pimple algorithm in steady state mode. thats why I was using the
- check AMI settings - there was a limiter that can be applied to AMI to avoid zero-face issues - please search it (I must sleep - otherwise will post tomorrow) AMIWeights FO
I did not understood your comment about these, and I am quiet interesting in this issue, as when I go in higher refimments (lower cell sizes) I am finishing with 0 weighed AMIs and then the simulation explodes.... I understand that this is comming from a face that does nothing that overlaps in the other patch. but what I dont get is as the refiment gets better the cyclicAMI should too (as the geometry is better represented)
the function that you sendme weightsAMI if I understood correctly it only help to visualize the weights in the patches but nothing else. do you know any particular way of getting better weights? the geometry I can not changed....
for the rest of the things I am going to integrate them to the fvSchemes and fvSolutions when I go back to work as I do not have acces right now, but I promis I will have a look. so much to learn thanks guys!
otaolafr is offline   Reply With Quote

Old   May 23, 2021, 15:45
Default
  #9
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13
HPE is on a distinguished road
Quote:
well I was trying to use the pimple algorithm in steady state mode.
I don't think this can work out.
HPE is offline   Reply With Quote

Reply

Tags
pimplefoam, simplevspimple


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
Simple specie diffusion problem with Fundamental solution of Laplace Equation mohibanwar ANSYS 0 September 20, 2020 23:58
problem during mpi in server: expected Scalar, found on line 0 the word 'nan' muth OpenFOAM Running, Solving & CFD 3 August 27, 2018 05:18
damBreak case parallel run problem behzad-cfd OpenFOAM Running, Solving & CFD 5 August 2, 2015 18:18
Simple Meshing Problem with Gambit Mario FLUENT 4 April 18, 2003 10:52
extremely simple problem... can you solve it properly? Mikhail Main CFD Forum 40 September 9, 1999 10:11


All times are GMT -4. The time now is 16:15.