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

if (timestep X == true) OR if (current_timestep == timestep X)

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   March 14, 2014, 08:43
Default if (timestep X == true) OR if (current_timestep == timestep X)
  #1
Senior Member
 
Join Date: Jan 2012
Posts: 166
Rep Power: 14
maybee is on a distinguished road
hi,

I need to implement specific code for specific timesteps. Therefore I though about doing something like

Code:
if (timestep X == true) {...}
OR if

Code:
(current_timestep == timestep X) {...}
Does someone know how I can do so?

greetings
maybee
maybee is offline   Reply With Quote

 


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
Modifying sonicFoam to run with variable timestep - strange results dalaron OpenFOAM Programming & Development 1 September 2, 2013 07:21
Restart 2-way FSI with different timestep? Lance CFX 10 April 17, 2013 00:37
Timestep and Pressure Correction Relationship in SIMPLE rks171 Main CFD Forum 23 May 4, 2012 01:04
Adequate timestep selection for multidomain problem gerardosrez CFX 6 November 28, 2010 17:50
Timestep study ijk CFX 6 April 9, 2010 07:38


All times are GMT -4. The time now is 08:51.