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

Mixing SIMPLE algorithm with other equations

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 9, 2021, 01:57
Default Mixing SIMPLE algorithm with other equations
  #1
New Member
 
fc
Join Date: Aug 2021
Posts: 1
Rep Power: 0
reytisker is on a distinguished road
I want to write a solver that solves a certain PDE, and at each timestep it has to use the Stokes solution of a Navier Stokes equation, for which I can use the simpleFoam solver as a basis (it's basically some kind of reaction diffusion equation for very low Reynolds number). If the simpleFoam main loop is as follows

Code:
while(simple.loop(runTime)
{
    #include "UEqn.H"
    #include "pEqn.H"
}
and my equation is solved in another file, "aEqn.h", then the next is wrong

Code:
while(simple.loop(runTime)
{
    #include "UEqn.H"
    #include "pEqn.H"
    #include "aEqn.h"
}
since aEqn will use values of U that haven't converged yet. I tried something like what follows, but doesn't work either because I don't know how to have two different runTime loops, one for the U convergence, and another for the real time defined by the time evolution of "aEqn":

Code:
while(runTime.loop())
{
    while(simple.loop(??))
    {

        #include "UEqn.H"
        #include "pEqn.H"
    }

    #include "aEqn.h"
}
What would be the proper way to implement this kind of solver?
reytisker is offline   Reply With Quote

Old   September 12, 2021, 03:56
Default
  #2
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16
mAlletto will become famous soon enough
If you want two different loops look at the pimple solver
mAlletto is offline   Reply With Quote

Reply

Tags
simple algorithm, solver development


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
ANSYS fluent vs OpenFoAM simple algorithm/ PIMPLE algorithm gentodin Main CFD Forum 1 December 24, 2020 03:43
SIMPLE algorithm SamR Main CFD Forum 19 April 26, 2019 14:06
The SIMPLE algorithm is not too simple for me Zeke Main CFD Forum 2 June 18, 2012 05:06
SIMPLE algorithm for two-phase rks171 Main CFD Forum 4 April 20, 2012 10:02
What is advantage of SIMPLE algorithm? Geon-Hong Main CFD Forum 1 May 18, 2010 08:46


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