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

udf for changing rotational velocity

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 24, 2010, 04:16
Default udf for changing rotational velocity
  #1
New Member
 
Join Date: Jun 2010
Posts: 7
Rep Power: 16
peterchen is on a distinguished road
Hi,

I'd like to create an UDF to change the wall rotation during an unsteady simulation after a certain amount of time.

It seems that I can't put the UDF in the wall settings if I'm selecting a rotating wall.

Is there an easy solution or do I have to select "components" instead of "rotational" and change the UDF?

Thanks for your help,

peter
peterchen is offline   Reply With Quote

Old   September 24, 2010, 05:03
Default
  #2
Senior Member
 
Max
Join Date: Mar 2009
Posts: 133
Rep Power: 17
coglione is on a distinguished road
There is a macro called THREAD_VAR(thread).wall.omega
that can be used to set the rotational speed (rad/s) for a given wall-thread. Your udf can't be hooked in the BC-menue of this wall but you may use e.g. DEFINE_ADJUST or EXECUTE_AT_END to update the rotation speed. In the GUI you will still see a constant (initial) value but it will change actually according to your specifications.

cheers
coglione is offline   Reply With Quote

Old   September 24, 2010, 05:24
Default
  #3
New Member
 
Join Date: Jun 2010
Posts: 7
Rep Power: 16
peterchen is on a distinguished road
Sounds good, thanks for the advice
peterchen is offline   Reply With Quote

Old   September 29, 2010, 12:43
Default
  #4
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20
dmoroian is on a distinguished road
Another alternative is to use a scheme script that is run every time step. In this script you may use a TUI command to setup your rotating wall velocity.
dmoroian is offline   Reply With Quote

Old   October 19, 2010, 07:43
Default
  #5
New Member
 
Join Date: Jun 2010
Posts: 7
Rep Power: 16
peterchen is on a distinguished road
Quote:
Originally Posted by coglione View Post
There is a macro called THREAD_VAR(thread).wall.omega
that can be used to set the rotational speed (rad/s) for a given wall-thread. Your udf can't be hooked in the BC-menue of this wall but you may use e.g. DEFINE_ADJUST or EXECUTE_AT_END to update the rotation speed. In the GUI you will still see a constant (initial) value but it will change actually according to your specifications.

cheers
I tried using the macro, but I always get the ACCESS_VIOLATION error.
peterchen is offline   Reply With Quote

Reply


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
UDF paraboloid velocity inlet rosco FLUENT 10 June 2, 2017 09:01
Velocity of Fluid @ different positions of Particle in DPM using UDF pmghadge FLUENT 1 June 16, 2009 20:11
UDF Unsteady velocity profile Rashad FLUENT 0 February 27, 2008 15:57
Urgent! Help on UDF to set inlet velocity Ray Hong FLUENT 4 December 30, 2005 13:32
UDF component in Cyliderical Velocity? Hongchan Kim FLUENT 3 April 24, 2001 13:20


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