CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

User defined time step - Possible to put variable time stepping in it?

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 1 Post By AlexanderZ
  • 2 Post By obscureed
  • 1 Post By obscureed

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   May 4, 2018, 07:44
Default User defined time step - Possible to put variable time stepping in it?
  #1
New Member
 
Join Date: Mar 2018
Posts: 24
Rep Power: 8
maccheese is on a distinguished road
Hi,

i am working on a simulation which contains the motion of a rigid wall zone defined by a profile.

The motion is divided into 3 phases:

1. Translation from A to B
2. Certain time span without motion
3. Translation from B back to A

I want to solve the simulation with a variable time step. At the beginning of my simulation, due to the movement of the wall zones a quite small initial time step is needed (to prevent mesh folding), which is 1e-6 in this case.

During phase 2, Fluent automatically increases the time step to sizes up to a few hundreths, which is fine and contributes to an acceptable calculation time.

The transition from phase 2 to 3 is where my problem is. Fluent would need to decrease the time step size to ~ 1e-6 for the wall zones to move back again. The variable time stepping can not cope with this and the simulation stops with negative cell volume error due to mesh folding. Although I defined a really small minimum time change factor, which would allow Fluent to reduce the time step size from one time step to the next to a size small enough for the mesh to not fold, Fluent fails with this.

So it looks like I need to use a user defined time step.

My question is if I can define a udf in the following way:

Fixed time step for certain amount of time at the beginning.

Use Variable Time stepping for Phase 2 of the simulation

Fixed time step for certain amount of time at the end.

So in other words, can I define the usage of the variable time stepping method in a user defined time step?

Thanks in advance!
maccheese 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
[Other] Contribution a new utility: refine wall layer mesh based on yPlus field lakeat OpenFOAM Community Contributions 58 December 23, 2021 02:36
AMI speed performance danny123 OpenFOAM 21 October 24, 2020 04:13
Floating point exception error lpz_michele OpenFOAM Running, Solving & CFD 53 October 19, 2015 02:50
simpleFoam error - "Floating point exception" mbcx4jc2 OpenFOAM Running, Solving & CFD 12 August 4, 2015 02:20
pisoFoam with k-epsilon turb blows up - Some questions Heroic OpenFOAM Running, Solving & CFD 26 December 17, 2012 03:34


All times are GMT -4. The time now is 07:33.