|
[Sponsors] |
March 28, 2011, 13:53 |
Moving wall with velocity profile
|
#1 |
New Member
Join Date: Mar 2011
Posts: 28
Rep Power: 15 |
Hi everyone!
I need to study a transient flow inside a closed cylinder which is starting to rotate. It seems impossible to put a velocity profile instead of a constant value under rotating wall boundary conditions with Fluent. Is there another way to do this? Is there somebody here who already tried such a transient simulation? Thank you very much for your help! |
|
March 28, 2011, 14:44 |
|
#3 | |
New Member
Join Date: Mar 2011
Posts: 28
Rep Power: 15 |
Quote:
Thank you! |
||
March 29, 2011, 12:15 |
|
#5 |
New Member
Join Date: Mar 2011
Posts: 28
Rep Power: 15 |
Dear Amir,
Ok, I am trying to use these UDF. Since I am not really used to this option, it is difficult for me to understand how to implement coordinates of surface elements, as you said. Would it be possible to have an example of the kind of script you was thinking about? I haven't found anything similar in Fluent UDF Guide. Thank you very much for your help! Tobard. |
|
March 29, 2011, 12:41 |
|
#6 | |
Senior Member
|
Hi,
it's something like this (as a part of UDF): Quote:
|
||
March 30, 2011, 13:20 |
|
#7 | ||
New Member
Join Date: Mar 2011
Posts: 28
Rep Power: 15 |
Hi,
Following your advice and trying to understand UDF philosophy, I have written the following function (I think I will have to do 2 different files in order to fill both X and Y velocity component fields in Fluent boundary conditions later, but it is a global base): Quote:
Besides when I try to interpret this with Fluent, I get these errors: Quote:
Thank you very much for your help! Tobard |
|||
March 30, 2011, 17:01 |
|
#8 | |
Senior Member
|
Hi,
I proposed you these changes: Quote:
you're right, you need another UDF for y velocity which is similar to above. regards, |
||
March 30, 2011, 18:19 |
|
#9 |
New Member
Join Date: Mar 2011
Posts: 28
Rep Power: 15 |
Thank you, it helps me much! I just would like to understand some points:
- My study needs to change ONLY wall (boundary) velocity (and then observe inertia and viscosity action into the fluid). Does your function really allow that? Using it under boundary conditions menu would then only apply it on boundary faces? - Is it better to use F_PROFILE instead of F_U or F_V? I am afraid that F_PROFILE may change both X and Y velocity components although I need to change them one by one. (Furthermore F_U and F_V would allow me to not use trigonometrical functions, writing u= -omega*y and v= omega*x) - Does Fluent accept using several interpreted UDFs at the same time? Or do I have to compile them? Thank you again, I think it will work now! Regards, Tobard |
|
March 31, 2011, 04:35 |
|
#10 | |||
Senior Member
|
Hi,
Quote:
Quote:
R*omega*sin(theta)=R*omega*sin(atan(y/x))=y*omega these relations are applicable to both procedures. note that using DEFINE_PROFILE for setting boundary conditions is more conservative and reliable than using other functions. Quote:
Regards, Amir Last edited by Amir; March 31, 2011 at 05:54. |
||||
April 4, 2011, 11:22 |
|
#11 |
New Member
Join Date: Mar 2011
Posts: 28
Rep Power: 15 |
Hi,
I post this last message to thank you: my simulation is now working, using DEFINE_PROFILE just as you said. A little feedback: working with direct coordinates rather than using trigonometrical functions avoids sign problems. Regards, Tobard Last edited by Tobard; April 13, 2011 at 16:16. |
|
April 13, 2011, 16:10 |
|
#12 |
New Member
Join Date: Mar 2011
Posts: 28
Rep Power: 15 |
Hi everybody!
I come here again because I encountered some new difficulties: I succeed in putting a profile law making the wall of my 2D cylinder rotate. Now I would like to improve my model by dividing my cylinder in several zones (adding a wall along portion of diameter, basically). The whole assembly is not rotating as expected because "you cannot use the moving wall condition to model problems where the wall has a motion normal to itself. FLUENT will neglect any normal component of wall motion that you specify using the methods below." (Fluent User Guide). A moving reference frame would allow me to make my walls rotate. But is it possible to hook a UDF to a moving reference frame (I see no available field for that)? Is there another way to do it? Thank you so much for your help! Tobard |
|
April 14, 2011, 16:42 |
|
#14 |
New Member
Join Date: Mar 2011
Posts: 28
Rep Power: 15 |
I work on Fluent 12.0.1 or 12.1 and it seems not to be better. Do you think a moving mesh could be a solution? My geometry is similar to a disk split into to parts...
Tobard Last edited by Tobard; April 15, 2011 at 12:25. |
|
May 3, 2011, 15:41 |
|
#16 |
New Member
Join Date: Mar 2011
Posts: 28
Rep Power: 15 |
Dear Amir,
Do you know where I could find samples or UDF functions close to my problem? I really don't see how to write (and hook) a UDF making my walls move and it is really difficult to find any help on the Internet. Any concrete suggestion would be appreciated... Thank you very much. Tobard |
|
May 4, 2011, 16:22 |
|
#17 | |
Senior Member
|
Hi,
I wrote a UDF which rotate a wall but you can change that easily; here you are: Quote:
|
||
May 5, 2011, 20:03 |
|
#18 |
New Member
Join Date: Mar 2011
Posts: 28
Rep Power: 15 |
Dear Amir,
What a relief to receive your answer! It greatly helped me and my problem is solved: it rotates! I sincerely thank you! Tobard |
|
May 16, 2011, 12:19 |
|
#19 |
New Member
Join Date: Mar 2011
Posts: 28
Rep Power: 15 |
Dear Amir,
Sorry for coming to you again... My simulations with Dynamic mesh give me strange results. Do you know how Fluent manage the transition between two time steps? The velocity is well defined at the boundary but seems not able to diffuse into the whole fluid zone...! I tried with a DEFINE_CD_MOTION function instead of the DEFINE_GRID_MOTION one with no improvement. So I really don't know where this problem comes from. Is there restrictions in the use of Dynamic mesh? Have you ever encountered such an issue? Thank you again for your help! Tobard |
|
May 16, 2011, 13:14 |
|
#20 |
Senior Member
|
Hi Tobard,
pay attention to locations where you hooked this UDF for. In other words, in dynamic zones, set e.g. walls, define interior and other rotating boundaries except the fluid zones. regards, Amir |
|
Tags |
fluent, rotating wall, transient, velocity profile |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF for slip and moving wall | lichun Dong | FLUENT | 3 | March 26, 2014 05:37 |
calculated velocity profile as new wall boundary | wouter | OpenFOAM | 0 | March 4, 2011 19:55 |
The velocity of wall boundary condtion | Dhb | FLUENT | 1 | January 14, 2010 14:00 |
Prescribed inflow velocity profile - how to? | Alan | Main CFD Forum | 10 | October 28, 2005 13:14 |
Variables Definition in CFX Solver 5.6 | R P | CFX | 2 | October 26, 2004 03:13 |