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

UDF: Have 3 dynamic mesh regions working well in 2D, but not in 3D

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 16, 2015, 21:45
Question UDF: Have 3 dynamic mesh regions working well in 2D, but not in 3D
  #1
New Member
 
Gabriel Naccache
Join Date: Oct 2015
Location: Montreal
Posts: 1
Rep Power: 0
gabriel09 is on a distinguished road
Hello everyone,

So I have done a simulation in 2D where I prescribed the motion of two domains using a UDF. The purpose of this simulation was to analyse the performance of a vertical axis wind turbine with one blade in a non circular path. The entire mesh is composed of an outer deforming stationary mesh, and an inner moving mesh that translates in a vertically oscillating motion. Inside this translating mesh, is another rotating sliding mesh.

I have completed the simulation in 2D and everything works fine. So I am testing this design in 3D, but it is not working correctly. The UDF is compiled correctly without any errors. When I launch the simulation, I can see that the mesh does indeed move; however, when I monitor the velocity of the blade, Fluent gives me zero velocity value. So I decided to make a dummy simulation and test each domain motion individually with the UDF and they both worked and fluent gave me the correct velocity on the blade.

I have attached the UDF to look at.

If anyone could help me with this problem, I would greatly appreciate it. Thanks everyone.
Attached Files
File Type: c Mesh_Motion.c (1.6 KB, 42 views)

Last edited by gabriel09; October 17, 2015 at 17:22.
gabriel09 is offline   Reply With Quote

Old   May 12, 2016, 07:06
Default Dragon fly motion
  #2
Senior Member
 
Arun raj.S
Join Date: Jul 2011
Posts: 207
Rep Power: 16
arunraj is on a distinguished road
Hi Gabriel,

I am simualting dragonfly motion. I want to use sliding mesh as I want to create structured mesh around the aerfoil. What changes I have to make in this udf. I have attached my domain. Could you tell me?. I have attached the udf which i have prepared but i am not sure whether it is proper or not

x(t),y)(t) = (Ao/2)*(1+cos(2*pi*f*t)*(cos(beta),sin(beta))
alpha(t) = alphao+B sin(2*pi*f*t)
Ao=2.5 cm
B=pi/4
alphao=pi/4
f=40 Hz
beta = 60 degree


I have differentiated the above function and applied in the udf

vel[0] = - A0/2 * 2*pi*f*cos(beta)*sin(2*pi*f*t)
vel[1] = - A0/2 * 2*pi*f*sin(beta)*sin(2*pi*f*t)
omega[2]= B *2*pi*f*cos(2*pi*f)
Attached Images
File Type: jpg Error.jpg (63.3 KB, 21 views)
Attached Files
File Type: c Mesh_Motion - Copy.c (738 Bytes, 15 views)
arunraj is offline   Reply With Quote

Reply

Tags
3d analysis, fluent, udf cg motion


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
2d Dynamic Mesh with udf pvc Fluent UDF and Scheme Programming 44 May 19, 2021 19:10
dynamic mesh udf hillat Fluent UDF and Scheme Programming 3 March 1, 2014 17:53
Dynamic mesh for rotating wall - UDF ? Tobard FLUENT 1 April 28, 2011 19:00
dynamic mesh udf sample wlt_1985 FLUENT 0 April 11, 2011 00:36
a problem about DEFINE_GEOM in dynamic mesh UDF speedcat FLUENT 1 May 16, 2005 04:09


All times are GMT -4. The time now is 17:56.