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

solve different files in different time

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 30, 2015, 09:44
Default solve different files in different time
  #1
Member
 
Peng Liang
Join Date: Mar 2014
Posts: 59
Rep Power: 12
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,

Peng
tjliang is offline   Reply With Quote

Old   May 4, 2015, 10:22
Default
  #2
Member
 
ali alkebsi
Join Date: Jan 2012
Location: Strasbourg, France
Posts: 82
Rep Power: 14
kebsiali is on a distinguished road
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
kebsiali is offline   Reply With Quote

Reply

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
Sudden jump in Courant number NJG OpenFOAM Running, Solving & CFD 7 May 15, 2014 14: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 16:50.