CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Mixing SIMPLE algorithm with other equations

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   September 9, 2021, 00:57
Default Mixing SIMPLE algorithm with other equations
New Member
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

    #include "UEqn.H"
    #include "pEqn.H"
and my equation is solved in another file, "aEqn.h", then the next is wrong

    #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":


        #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, 02:56
Senior Member
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 601
Rep Power: 14
mAlletto will become famous soon enough
If you want two different loops look at the pimple solver
mAlletto is offline   Reply With Quote


simple algorithm, solver development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 02:43
SIMPLE algorithm SamR Main CFD Forum 19 April 26, 2019 13:06
The SIMPLE algorithm is not too simple for me Zeke Main CFD Forum 2 June 18, 2012 04:06
SIMPLE algorithm for two-phase rks171 Main CFD Forum 4 April 20, 2012 09:02
What is advantage of SIMPLE algorithm? Geon-Hong Main CFD Forum 1 May 18, 2010 07:46

All times are GMT -4. The time now is 10:36.