CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Help for setting varying timesteps

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 10, 2009, 04:46
Default Help for setting varying timesteps
  #1
New Member
 
Andrej Hoyningen
Join Date: Jul 2009
Posts: 22
Rep Power: 16
darookie is on a distinguished road
The simple solution is always hard to get. After having searched in the forum for a good solution to set varying timesteps with an CEL expression without sucess, here is my way to obtain:
first 300 iterations -> 0.7s
next 300 iterations -> 0.01s

CEL Expression:
0.7[s]-0.69*step(citern-301)[s]

I hope I can help somebody who has the same task.
andrej
darookie is offline   Reply With Quote

Old   September 10, 2009, 06:32
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
You could also have done it with a 1D interpolation function. Same end effect, but possibly easier to understand.
ghorrocks is offline   Reply With Quote

Old   September 11, 2009, 05:08
Default
  #3
New Member
 
Andrej Hoyningen
Join Date: Jul 2009
Posts: 22
Rep Power: 16
darookie is on a distinguished road
I wanted to change the time in a jump function. But is a linear change better in regard to convergence?
darookie is offline   Reply With Quote

Old   September 11, 2009, 07:32
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
You can define step functions in the 1D interpolation function. The following series of points define a step function good enough for most people:
(0,0),
(0.999999999999,0),
(1,1),
(2,1)

Yes, a sudden change in time step size can cause convergence issues. It will cause accuracy issues as well. Ramping the time step change will help both problems.
ghorrocks is offline   Reply With Quote

Reply

Tags
cel expression, time, timestep, varying 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
time varying inlet velocity Zhe Liu CFX 0 July 31, 2008 06:56
Timesteps in steady state Daniel CFX 3 June 1, 2006 02:10
Time Varying Boundary Conditon ashish CFX 3 February 15, 2005 06:21
Time Varying BC A.S. Siemens 1 January 31, 2005 06:37
How to model varying food models in a Blender Raymond CFX 0 July 9, 2004 23:40


All times are GMT -4. The time now is 15:28.