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

Can I simulate multiple velocities at same time step in transient simulation?

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

View Poll Results: Can we control change any parameter such as velocity at each time step in transient?
yes 1 100.00%
no 0 0%
Voters: 1. You may not vote on this poll

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 13, 2021, 20:37
Default Can I simulate multiple velocities at same time step in transient simulation?
  #1
New Member
 
Muhammad Atif
Join Date: Jul 2019
Posts: 2
Rep Power: 0
m.atifme20 is on a distinguished road
Hello,
I am running a transient simulation (using ANSYS2020R2) to study the effect of deflector position on the drag force of a tractor-trailer. I have written a UDF with CG_MOTION macro to rotate the deflector up and down which is working fine so far.
My next task is to rotate the deflector lets say, 1 degree (1st-time step) and before moving it to 2 degrees, I want to see the effect of different velocities (e.g 40 to 60mph) at this time step. I also want to see the effect of changing the yaw angle (0,10,20,30 degree etc.) when deflector is at 1 degree. Once all the yaw angles and velocities are solved for the first-time step then I want to change the angle of the deflector to 2 degrees (by changing to the next time step) and perform the same calculations again.
One way of doing is creating a separate project for each yaw angle and run multiple analysis which is a very hectic and time-consuming process.
I was wondering if there is a way to do it with UDF. Take one velocity and run a defined number of iteration to reach convergence then change velocity for the same time step and deflector position, and iterate again. once all velocities are done, change time to the next time step (which will change deflector to 2 degrees) and perform same velocity calculations again.
Any suggestion on how this can be achieved?
Can we actually change velocity at a one-time step and iterate it again and again for different 3 4 velocities and then move to the next time step and repeat same calculations?
I hope my question is making sense to you.
m.atifme20 is offline   Reply With Quote

Old   May 12, 2021, 05:08
Default
  #2
New Member
 
Join Date: May 2019
Location: I'm a Queenslander
Posts: 19
Rep Power: 4
RobR_CFD is on a distinguished road
makes sense to me.... if you figure it out Id be interested
RobR_CFD is offline   Reply With Quote

Old   May 13, 2021, 02:01
Default
  #3
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 1,724
Rep Power: 28
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
Code:
Can we actually change velocity at a one-time step and iterate it again and again for different 3 4 velocities and then move to the next time step and repeat same calculations?
this is not possible as far as I know (within one timestep)
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Reply

Tags
coding, fluent, iteration, time step, udf

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
SU2 7.0.7 Built on CentOS 7, parallel computation pyscript mpi exit error? EternalSeekerX SU2 3 October 9, 2020 18:28
High Courant Number @ icoFoam Artex85 OpenFOAM Running, Solving & CFD 11 February 16, 2017 13:40
simpleFoam error - "Floating point exception" mbcx4jc2 OpenFOAM Running, Solving & CFD 12 August 4, 2015 02:20
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 02:58
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 18:07


All times are GMT -4. The time now is 23:03.