|
[Sponsors] |
August 29, 2020, 08:28 |
Udf for 2D rotating cylinder
|
#1 |
New Member
ruixuan shen
Join Date: Aug 2020
Posts: 4
Rep Power: 6 |
Dear firends:
I have to rotating three cylinders in different speed in a 2D modle, last time I use the moving wall and finish as speed is a constant. I rotating three cylinder with the moving wall and don't use the udf or dynamic mesh. now I have to rotating speed as a function, it can like a "u=asin(wt)" or "u=at". I use the TUI and have this below commend. Can I only use UDF profile to achieve? this is my first time to use UDF and could help me how to write it thanks a lot /define/boundary-conditions> wall (wall1 wall2 wall_cy1 wall_cy2 wall_cy3) zone id/name [wall1] wall_cy2 Wall Motion [motion-bc-moving]: Change current value? [no] no Shear Boundary Condition [shear-bc-noslip]: Change current value? [no] no Define wall motion relative to adjacent cell zone? [no] no Apply a rotational velocity to this wall? [no] yes Define wall velocity components? [no] Use Profile for Rotation Speed? [no] yes Use UDF Profile for Rotation Speed? [no] no |
|
August 30, 2020, 21:12 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
what you are doing is not UDF, but TUI commands
so you are setting parameters for boundary conditions to wall_cy2 its the same, if you are doing it with mouse in graphical interface last two options are: Use Profile for Rotation Speed? [no] yes Use UDF Profile for Rotation Speed? [no] no here: Use Profile is an option to use profile - file which contains table inside, it could be time vs parameter, depends on your needs Use UDF is an option to use UDF, but not profile, in UDF you have much more flexibility, however, could be more difficult to define. use DEFINE_PROFILE macro if you want to go ahead with UDF (read Ansys Fluent Customization manual for details and examples) From version 19.0 you can use expressions, so for your case expressions is an easiest way, from my point of view, you can define "u=asin(wt)" or "u=at"
__________________
best regards ****************************** press LIKE if this message was helpful |
|
August 31, 2020, 08:59 |
|
#3 | |
New Member
ruixuan shen
Join Date: Aug 2020
Posts: 4
Rep Power: 6 |
Quote:
Yes I'm trying to use the TUI command in Jounal and want to Autorun it. I use the Fluent 17.0, and now iI don't know what macro should I use the udf in Dynamic Mesh part or only use DeFine_PROFILE macro in the moving wall |
||
Tags |
udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Boundary condition for forced convection inside rotating cylinder | saka123 | OpenFOAM Running, Solving & CFD | 1 | July 5, 2020 17:05 |
Cylinder UDF, oscillate about an origin | iceman53y | Fluent UDF and Scheme Programming | 5 | November 2, 2018 14:05 |
Flow past rotating cylinder: Problem with ForeCoeffs | raf1111 | OpenFOAM | 1 | December 16, 2013 10:45 |
Rotating cylinder with GGI | lbeaudet | OpenFOAM Running, Solving & CFD | 4 | July 6, 2009 03:13 |
Rotating Cylinder | Nick | Siemens | 1 | June 21, 2006 07:42 |