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

How to use UDF to define a moving wall

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 20, 2004, 16:54
Default How to use UDF to define a moving wall
  #1
Big Stone
Guest
 
Posts: n/a
Hi,Guys

Can anyone help me to use UDF to define a moving wall? Thanks

  Reply With Quote

Old   February 21, 2004, 20:58
Default Re: How to use UDF to define a moving wall
  #2
Andrew Garrard
Guest
 
Posts: n/a
Yes, if you know how to do a UDF it is easy - You use a DEFINE_PROFILE(name, thread, i)

If you don't it will be something like this:

DEFINE_PROFILE(moving_wall, thread, i) {

face_t f;

begin_f_loop(f, thread)

{

F_PROFILE = 10; /* insert speed of wall here, I have used 10 */

}

end_f_loop(f, thread)

}

I haven't compiled it, but it will be pretty similar to that.
  Reply With Quote

Old   February 22, 2004, 10:18
Default Re: How to use UDF to define a moving wall
  #3
ccc
Guest
 
Posts: n/a
hi Big Stone,

Can you make your problem more clear? Does the wall move in the direction parallel or perpendicular to itself? For different cases, the method is totally different.

good luck.

  Reply With Quote

Old   February 22, 2004, 21:27
Default Re: How to use UDF to define a moving wall
  #4
Big Stone
Guest
 
Posts: n/a
Thanks for Andrew and ccc advice, Actually I want a wall move as sin(t), but I could not find a Macro for wall moving. Andrew and ccc, can you give me more details. Thanks

  Reply With Quote

Old   February 22, 2004, 22:12
Default Re: How to use UDF to define a moving wall
  #5
ccc
Guest
 
Posts: n/a
hi big stone,

which direction does the wall move in, parallel or perpendicular to itself?

if parallel, Andrew's method is ok. However, if perpendicular, you have to refer to the dynamic mesh module in fluent6.1. If it's your case, i would like to tell you more.

good luck.
  Reply With Quote

Old   February 22, 2004, 22:56
Default Re: How to use UDF to define a moving wall
  #6
Big Stone
Guest
 
Posts: n/a
Hi, Ccc

thank you very much. my case is that the wall move perpendicularly to itself, the wall move sinusoidally with time like sine function. the magnitude of the wall moving is small. Could you give me more details? I know little about UDF. Thanks.

BTW, Andrew method can only be used to define a boundary not for a moving wall? can you try it. Thanks
  Reply With Quote

Old   February 23, 2004, 04:23
Default Re: How to use UDF to define a moving wall
  #7
Andrew Garrard
Guest
 
Posts: n/a
You can use the UDF I suggested and hook it into the momentum part of the define -> wall boundary condition panel. Select moving wall, absolute and traslational and you can specify how the wall moves in the X, Y and Z directions. This will not chage the flow geometry, it will simply impart momentum onto the fluid adjcent to the wall, so if the magnitude of the movement is small compared to the flow gap this method may should work fine.
  Reply With Quote

Old   February 23, 2004, 04:52
Default Re: How to use UDF to define a moving wall
  #8
ccc
Guest
 
Posts: n/a
hi big stone,

Andrew is right. Since the magnitude of moving is samll, Andrew method applies and may be more effective comparing to dynamic mesh.

good luck.

  Reply With Quote

Old   February 23, 2004, 08:47
Default Re: How to use UDF to define a moving wall
  #9
Big Stone
Guest
 
Posts: n/a
Hi,

Maybe I mislead you guys. I want to define a specific velocity for the wall. the problem is that I can not find a macro for defining wall velocity as I said to you in last poster. Thanks

Big Stone.
  Reply With Quote

Old   February 23, 2004, 09:51
Default Re: How to use UDF to define a moving wall
  #10
Andrew Garrard
Guest
 
Posts: n/a
I am struggling the think of a way of making the expanation clearer. Have you made a UDF before? There is no define function for wall velocity, just as there is no define function for, say, inlet velocity or wall temperature, which are created using UDF's very easily. You have to use a DEFINE_PROFILE and hook it into the wall velocity section in boundary conditions in the fluent GUI.
  Reply With Quote

Old   February 23, 2004, 10:03
Default Re: How to use UDF to define a moving wall
  #11
Big Stone
Guest
 
Posts: n/a
Hi, Andrew

Thanks I got it.
  Reply With Quote

Old   December 18, 2016, 22:08
Default Update the speed of the frame of reference regularly
  #12
New Member
 
Ayoub
Join Date: Nov 2012
Posts: 9
Rep Power: 13
AYOUB is on a distinguished road
Dear Andrew

I was wondering if you could help me how to update the speed of the frame of reference regularly?

Thanks
AYOUB is offline   Reply With Quote

Old   August 1, 2020, 04:34
Default
  #13
Member
 
vav noon
Join Date: May 2020
Posts: 49
Rep Power: 5
vavnoon is on a distinguished road
which direction does the wall move in, parallel or perpendicular to itself?

if parallel, Andrew's method is ok. However, if perpendicular, you have to refer to the dynamic mesh module in fluent6.1.

[/QUOTE]

Dear friends,

Could anyone please clear me the direction of wall motion? What is the difference between parallel and perpendicular direction?

I do appreciate it.

Best regards
vavnoon is offline   Reply With Quote

Old   August 2, 2020, 19:28
Default
  #14
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
for more information on UDF for dynamic mesh read Dynamic mesh chapter in Ansys Fluent Customization manual
__________________
best regards


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

Old   February 13, 2021, 07:24
Arrow
  #15
New Member
 
HATIM
Join Date: Nov 2019
Posts: 1
Rep Power: 0
hatim elassad is on a distinguished road
Quote:
Originally Posted by ccc
;110715
hi Big Stone,

Can you make your problem more clear? Does the wall move in the direction parallel or perpendicular to itself? For different cases, the method is totally different.

good luck.
hello everyone,
I want to create UDF code for moving wall perpendicular to flow direction
can you help me with this, please
hatim elassad 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
[Commercial meshers] Fluent3DMeshToFoam simvun OpenFOAM Meshing & Mesh Conversion 50 January 19, 2020 15:33
Wall motion as a UDF, is it possible? linch FLUENT 1 August 31, 2009 09:18
Missing math.h header Travis FLUENT 4 January 15, 2009 11:48
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 20:30
Convergence moving mesh lr103476 OpenFOAM Running, Solving & CFD 30 November 19, 2007 14:09


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