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

solve different files in different time

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

LinkBack Thread Tools Display Modes
Old   April 30, 2015, 08:44
Default solve different files in different time
New Member
Peng Liang
Join Date: Mar 2014
Posts: 25
Rep Power: 3
tjliang is on a distinguished road
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,

tjliang is offline   Reply With Quote

Old   May 4, 2015, 09:22
ali alkebsi
Join Date: Jan 2012
Location: Strasbourg, France
Posts: 74
Rep Power: 5
kebsiali is on a distinguished road
if (runTime.timeName() < (0.7)) {#include A.H}
{#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
kebsiali is offline   Reply With Quote


Thread Tools
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 On
Pingbacks are On
Refbacks are On

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 14:12
pimpleFoam: turbulence->correct(); is not executed when using residualControl hfs OpenFOAM Running, Solving & CFD 3 October 29, 2013 09:35
pisoFoam with k-epsilon turb blows up - Some questions Heroic OpenFOAM Running, Solving & CFD 26 December 17, 2012 04:34
UDF issue MASOUD Fluent UDF and Scheme Programming 14 December 6, 2012 14:39

All times are GMT -4. The time now is 13:57.