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

Specify an endTime that isn't a multiple of timestep

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 3, 2017, 05:22
Default Specify an endTime that isn't a multiple of timestep
  #1
New Member
 
James Shaw
Join Date: May 2014
Posts: 8
Rep Power: 11
hertzsprung is on a distinguished road
I need to obtain a solution at a particular simulated time, but I also need to use a timestep that does not divide exactly into endTime. For example, endTime=10s, timestep=3s. I'd like to have solves at t=3s, t=6s, t=9s then, using a timestep=1s, obtain the final solution at t=10s.

Can I configure this in the controlDict and obtain a solution in a single run?
hertzsprung is offline   Reply With Quote

Old   August 3, 2017, 10:24
Default
  #2
Member
 
Joshua
Join Date: Dec 2016
Location: St. Louis, Missouri
Posts: 91
Rep Power: 9
Joshua14 is on a distinguished road
You should be fine with an endTime of 10s and a writeTime of 3s as it should automatically write at endTime regardless of writeTime.

I suggest making a small test case that runs in a matter of seconds to test this with your version of OF.

Joshua
Joshua14 is offline   Reply With Quote

Old   August 4, 2017, 04:18
Default
  #3
New Member
 
James Shaw
Join Date: May 2014
Posts: 8
Rep Power: 11
hertzsprung is on a distinguished road
Quote:
Originally Posted by Joshua14 View Post
You should be fine with an endTime of 10s and a writeTime of 3s as it should automatically write at endTime regardless of writeTime.

I suggest making a small test case that runs in a matter of seconds to test this with your version of OF.
I've tried with a small scalarTransportFoam case, https://github.com/hertzsprung/openfoamEndTime. It outputs 3,6 and 9 directories only.
hertzsprung is offline   Reply With Quote

Reply

Tags
controldict, timesteps


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
how to set periodic boundary conditions Ganesh FLUENT 15 November 18, 2020 06:09
error with smaller timestep ? Thomas MADELEINE FLUENT 0 August 8, 2016 13:02
[OpenFOAM.org] Install openFOAM 3.0.1 in Ubuntu 16.04 LTS from Deb packs Pier84 OpenFOAM Installation 4 June 18, 2016 16:22
obtaining transient results from multiple timestep files suyesh FLUENT 1 May 13, 2016 09:52
OpenFOAM static build on Cray XT5 asaijo OpenFOAM Installation 9 April 6, 2011 12:21


All times are GMT -4. The time now is 00:42.