|
[Sponsors] |
June 4, 2014, 12:24 |
@Developers: External RK4 time stepping
|
#1 |
New Member
nilesh
Join Date: Mar 2014
Location: Kanpur / Mumbai, India
Posts: 27
Rep Power: 12 |
Hi,
I need to implement RK4 for the external time stepping (i.e. instead of first order dual time stepping). From what I understood, line no 6125 of solver_direct_mean.cpp has to be modified (I do not mind entering the coefficients directly as constants at this point of time instead of taking them from the config file). However, I do not understand how to go about finding the solution (space derivatives) at the intermediate stages of the Runge kutta iteration. Please help me with this. Thanks. |
|
June 4, 2014, 17:44 |
|
#2 |
New Member
nilesh
Join Date: Mar 2014
Location: Kanpur / Mumbai, India
Posts: 27
Rep Power: 12 |
Sorry, apparently that line is only for calculating the residue. I am confused by the object oriented structure of the code. Which is the function to be called for calculating the space derivative part? Does ->GetSolution() which returns SOLUTION only return the solution or also calculated it?
I am very eager (desperate) to use RK3 (or RK4) for the external loop. If any user is interested, we can collaborate and work on it. Thanks. |
|
June 5, 2014, 16:22 |
|
#3 |
New Member
David Manosalvas-Kjono
Join Date: Feb 2014
Posts: 25
Rep Power: 12 |
Nilesh,
RK time integration is already implemented in the code, all you need to do is select this option in your config file. David |
|
June 7, 2014, 11:22 |
|
#4 |
New Member
nilesh
Join Date: Mar 2014
Location: Kanpur / Mumbai, India
Posts: 27
Rep Power: 12 |
||
June 13, 2014, 14:55 |
|
#5 |
New Member
David Manosalvas-Kjono
Join Date: Feb 2014
Posts: 25
Rep Power: 12 |
Nilesh,
Can you elaborate a bit more on why would you like to do that? David |
|
June 13, 2014, 15:39 |
|
#6 |
New Member
nilesh
Join Date: Mar 2014
Location: Kanpur / Mumbai, India
Posts: 27
Rep Power: 12 |
I wanted to use RK3 for the external time marching which is presently being done by euler explicit or 3-time level BDF method. I have done it for the the SU2_CFD module as of now (without support for mesh deformation or turbulence models) and the results look great.
Would be nice if you include it throughout the SU2 suite. Thanks. |
|
June 24, 2014, 17:53 |
|
#7 |
Super Moderator
Thomas D. Economon
Join Date: Jan 2013
Location: Stanford, CA
Posts: 271
Rep Power: 14 |
Hi,
Just to make sure everything is clear.. you mean that you would like to perform time-accurate simulations with an explicit RK scheme rather than the current dual-time stepping method (1st- or 2nd-order BDF), right? We do have a "time-stepping" mode for unsteady calculations (check the config file options), which will essentially use a global time step for the entire mesh and solve the flow in a time-accurate manner with the chosen scheme. You might try experimenting with this to see if it meets your needs. Otherwise, perhaps we can chat a little more about your implementation. All the best, Tom |
|
June 25, 2014, 03:58 |
|
#8 | |
New Member
nilesh
Join Date: Mar 2014
Location: Kanpur / Mumbai, India
Posts: 27
Rep Power: 12 |
Quote:
|
||
June 25, 2014, 21:30 |
|
#9 |
Super Moderator
Thomas D. Economon
Join Date: Jan 2013
Location: Stanford, CA
Posts: 271
Rep Power: 14 |
I see.. yep, please let us know your experience, and if you are still running into issues, we should be able to modify the code quickly to resolve it.
T |
|
March 23, 2015, 05:58 |
Issue with "TIME_STEPPING"
|
#10 | |
New Member
Deep Ray
Join Date: Jan 2014
Posts: 6
Rep Power: 12 |
Quote:
1) The solution files are not being saved in an incremental manner. The solutions are overwritten into the previous file. However, the incremental storage is working for the dual time stepping scenario. 2) It is unclear how to specify the final time for the simulation using TIME_STEPPING. I have been trying to look into the cfg files of various unsteady examples. Unfortunately all of them seem to use the dual time stepping strategy. I am attaching my cfg file for your reference. Thanks. |
||
Tags |
dual time stepping method, explicit, rk4, su2 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Transient simulation not converging | skabilan | OpenFOAM Running, Solving & CFD | 14 | December 17, 2019 00:12 |
Micro Scale Pore, icoFoam | gooya_kabir | OpenFOAM Running, Solving & CFD | 2 | November 2, 2013 14:58 |
How to write k and epsilon before the abnormal end | xiuying | OpenFOAM Running, Solving & CFD | 8 | August 27, 2013 16:33 |
number of iterations per time step | chouki | FLUENT | 1 | August 13, 2013 01:11 |
pisoFoam with k-epsilon turb blows up - Some questions | Heroic | OpenFOAM Running, Solving & CFD | 26 | December 17, 2012 04:34 |