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

solving explicitly in time in openfoam

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By MSF

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 2, 2017, 12:42
Default solving explicitly in time in openfoam
  #1
New Member
 
Join Date: Apr 2011
Posts: 13
Rep Power: 15
D.R. is on a distinguished road
Hello Foamers,

I have found that the solvers in openFoam solve using an implicit formulation, something along the lines of,

Code:
fvScalarMatrix Eqn_1 //original
(
         fvm::ddt(kappa, A_1)
==
         fvm::laplacian(gamma, A_1)
);

Eqn_1.solve();
I have went through the forums and openfoam documentation and have found mention of explicit solutions to these full equations, however, I can not find any examples in the code where the equation is finally solved explicitly instead of implicitly.

Does anyone have an example of this? i.e.
Code:
Solve( fvc::ddt(kappa, A_1)
==
fvc::laplacian(gamma,A_1));
or something along these lines? (Note: my example for fvc::ddt() has been attempted and did not work.)

Any help would be appreciated, thank you for your time.
D.R. is offline   Reply With Quote

Old   November 2, 2017, 17:38
Default
  #2
MSF
New Member
 
Join Date: Apr 2014
Location: Germany
Posts: 24
Rep Power: 12
MSF is on a distinguished road
Hi

If you use
Code:
Solve( fvm::ddt(kappa, A_1)
==
fvc::laplacian(gamma,A_1));
It's explicit.

Best Moritz
D.R. and onofrio like this.
MSF is offline   Reply With Quote

Old   November 3, 2017, 10:35
Default
  #3
New Member
 
Join Date: Apr 2011
Posts: 13
Rep Power: 15
D.R. is on a distinguished road
Thanks for the help, though I had a typo before, and had to use a lower case,
Code:
solve(...);
Is it the same functionality, i.e. is it still explicit, if it is written as,
Code:
fvScalarMatrix Eqn_1
(
fvm::ddt(kappa, A_1)
==
fvc::laplacian(gamma, A_1)
);
Eqn_1.solve();
?
D.R. is offline   Reply With Quote

Old   November 3, 2017, 11:45
Default
  #4
MSF
New Member
 
Join Date: Apr 2014
Location: Germany
Posts: 24
Rep Power: 12
MSF is on a distinguished road
Yes. There is no difference regarding explicit or implicit time stepping between these two formulations. You can also look at 2.5.1 Treatment of temporal discretization in OpenFOAM (programmers guide).

Best
Moritz
MSF is offline   Reply With Quote

Reply

Tags
explicit, fvc::ddt(), fvm::ddt(), implict


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
Maximum number of iterations exceeded chtmultiregionsimpleFoam Moncef OpenFOAM Running, Solving & CFD 28 July 13, 2020 15:26
Cannot run the code properly: very large time step continuity error crst15 OpenFOAM Running, Solving & CFD 9 December 14, 2014 19:17
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20
Unstabil Simulation with chtMultiRegionFoam mbay101 OpenFOAM Running, Solving & CFD 13 December 28, 2013 14:12
SLTS+rhoPisoFoam: what is rDeltaT??? nileshjrane OpenFOAM Running, Solving & CFD 4 February 25, 2013 05:13


All times are GMT -4. The time now is 18:49.