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

Poisson equation in custom solver diverges for large boundary values

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Tobi

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 22, 2017, 00:05
Default Poisson equation in custom solver diverges for large boundary values
  #1
Senior Member
 
Bobby
Join Date: Oct 2012
Location: Michigan
Posts: 454
Rep Power: 16
babakflame is on a distinguished road
Dear Fellows

I have written a non-dimensional custom solver based on interFoam in OpenFoam 2.1.x.
In this solver there is a Poisson equation which is solved for a custom variable. (here \varphi).
However, my solver crashes by insanely reducing time step if I increase the Dirichlet values at the boundaries.

The snippet related to Poisson equation is as follows:
Code:
fvScalarMatrix UeEqn
            (
                fvm::laplacian(eps,Ue) == -rhoE * gamma
            );
 UeEqn.solve();
Here, Ue is the only unknown variable. rhoE is solved in the previous equation and gamma is a scale appears by non-dimensionalization.


These are my relevant settings in fvSolutions and fvSchemes files:

Code:
"(Ue|UeExt)"
    {
        solver         PCG;
        preconditioner   DIC;
        tolerance        1e-14;
        relTol           0.0;
    };
Code:
laplacianSchemes
{
    default         Gauss linear corrected;
}
I have tried the following approaches to improve solver performance but failed

  • employing smoothsolver and/or increasing relTol
  • employing under-relaxation
  • increasing the Dirichlet boundary condition from lower values to desired value gradually.
Is there any way to solve that Poisson equation with high boundary values? I am thinking of moving my solver to OpenFoam-dev or OpenFoam 4. Is there any chance that fvSolvers in these recent versions act more stably?

Has any body experienced this issue or any suggesstion??

Thanks
babakflame is offline   Reply With Quote

Old   May 23, 2017, 18:58
Default
  #2
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi Bobi,

I have no idea about your solver and equations and I also never had »large boundary value problems (whatever large means)« ... one thing that might help. Under relaxation and making outer loops till the equation converged. Or field relaxation. For the pressure (poission eqn) we also use field relaxation. Out of the box I have no other idea -- sorry.
babakflame likes this.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   May 23, 2017, 21:11
Default
  #3
Senior Member
 
Bobby
Join Date: Oct 2012
Location: Michigan
Posts: 454
Rep Power: 16
babakflame is on a distinguished road
Thanks Tobi
babakflame 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
Centrifugal fan j0hnny CFX 13 October 1, 2019 14:55
My radial inflow turbine Abo Anas CFX 27 May 11, 2018 02:44
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 18:44
Low Mixing time Problem Mavier CFX 5 April 29, 2013 01:00
Poisson equation with Neumann boundary conditions cregeo Main CFD Forum 8 July 26, 2004 05:58


All times are GMT -4. The time now is 00:37.