|
[Sponsors] |
April 30, 2015, 08:44 |
solve different files in different time
|
#1 |
Member
Peng Liang
Join Date: Mar 2014
Posts: 59
Rep Power: 12 |
Hello Foamers,
how can i solve for example FileA.H in time t<0.7s and FileB.H for t>=0.7s? I don't know quite well about codes. Could someone offer me help so as to achieve it? Best Regards, Peng |
|
May 4, 2015, 09:22 |
|
#2 |
Member
ali alkebsi
Join Date: Jan 2012
Location: Strasbourg, France
Posts: 82
Rep Power: 14 |
if (runTime.timeName() < (0.7)) {#include A.H}
else {#include B.H}; try with this although i think there will be a problem with the dimension of the 0.7 But remember that i assume that inside A.H or B.H you do your solve.blabla command |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sudden jump in Courant number | NJG | OpenFOAM Running, Solving & CFD | 7 | May 15, 2014 13:52 |
Unstabil Simulation with chtMultiRegionFoam | mbay101 | OpenFOAM Running, Solving & CFD | 13 | December 28, 2013 13:12 |
pimpleFoam: turbulence->correct(); is not executed when using residualControl | hfs | OpenFOAM Running, Solving & CFD | 3 | October 29, 2013 08:35 |
pisoFoam with k-epsilon turb blows up - Some questions | Heroic | OpenFOAM Running, Solving & CFD | 26 | December 17, 2012 03:34 |
UDF issue | MASOUD | Fluent UDF and Scheme Programming | 14 | December 6, 2012 13:39 |