|
[Sponsors] |
![]() |
![]() |
#1 |
Guest
Posts: n/a
|
I want to let a wall moving in the flow field by using the UDF macro DEFINE_GIRD_MOTION not using the DEFING_CG_MOTION, can everybody help me how to realize it ?
thanks a lot lyf |
|
![]() |
![]() |
![]() |
#2 |
Guest
Posts: n/a
|
I have used it. Grid motion makes sense, since you want to describe the motion of each node independently (deforming wall), otherwise use cg motion (same speed for all nodes during time motion). I t is not difficult, look at the udf manual 6.1, the example for grid motion and you will understand. good luck!
|
|
![]() |
![]() |
![]() |
#3 |
Guest
Posts: n/a
|
Thank you stk. I have used the cg motion many times, but now I want to use the grid motion to relaize both the rigid motion and deform motion. I have studied the udf manual 6.1, but I can't understand it well, can you give me a simple case about the grid motion udf?
thanks a lot. lyf |
|
![]() |
![]() |
![]() |
#4 |
Guest
Posts: n/a
|
Hi,
I have a question regarding this topic. there are two options available to compile a UDF in Fluent viz. intrepret or compiled. In which of these cases do you require a 'C' compiler? Thanks |
|
![]() |
![]() |
![]() |
#5 |
Guest
Posts: n/a
|
Hi
Aravind, for most of my cases, i choose the last one lyf |
|
![]() |
![]() |
![]() |
#6 |
Member
ahmad
Join Date: Jul 2010
Posts: 57
Rep Power: 16 ![]() |
hi everybody...
i am trying to simulate peristaltic pump and for this i need to write an udf file to rotate on of edges about z axis,i will be thanfull if u could help me with this problem. thank you in advance.. |
|
![]() |
![]() |
![]() |
![]() |
#7 |
New Member
Naveed Raza
Join Date: Aug 2010
Posts: 2
Rep Power: 0 ![]() |
hi almostafa67, you should use the udf "define_CG_motion, and in this use use omega[2] instead of vel[2], you have to modify the udf.
|
|
![]() |
![]() |
![]() |
![]() |
#8 |
Member
ahmad
Join Date: Jul 2010
Posts: 57
Rep Power: 16 ![]() |
salamon alaikom dear naveed...
thank you for a very quick response;a friend helped me to write an udf file but when i compile it, fluent shows me this error massage Deleted old libudf\ntx86\2ddp\libudf.dll 1 file(s) copied. (system "copy "C:\PROGRA~1\ANSYSI~1\v120\fluent"\fluent12.0.16\s rc\makefile_nt.udf libudf\ntx86\2ddp\makefile") 1 file(s) copied. (chdir "libudf")() (chdir "ntx86\2ddp")() # Generating ud_io1.h test.c # Generating udf_names.c because of makefile test.obj udf_names.c udf_names.c(7) : error C2059: syntax error : '}' udf_names.c(8) : warning C4034: sizeof returns 0 Cannot change directory to z Done. i dont know what is '}' for!? dear naveed let me explain the case that i'm working on it maybe you have an easier solution for it: i'm trying to simulate peristaltic pump,in the images that a sent u (i simulated them in gambit), i want to rotate two/one small cylinder about center of bigger circle and for this used bellow udf: # include "udf.h" # include "dynamesh_tools.h" DEFINE_CG_MOTION(peristaltic,dt,cg_vel,cg_omega,ti me,dtime) { real omega; NV_S(cg_vel,=,0.0); NV_S(cg_omega,=,0.0); if (!Data_Valid_P()) return; omega = 4.0; cg_vel [0] = 0.0; cg_vel [1] = 0.0; cg_vel [2] = 0.0; cg_omega [0] = 0.0; cg_omega [1] = 0.0; cg_omega [2] = omega; } and faced error that mentioned befor. if u have any idea please let me know;i'm looking forward to ur help AKHI ![]() |
|
![]() |
![]() |
![]() |
![]() |
#9 |
New Member
Mas
Join Date: Jan 2010
Location: Japan
Posts: 24
Rep Power: 16 ![]() |
Hi almostafa67,
I think the error was cause by 2d 3d conflict. Your case is 2d but your udf is for 3d. Try this: DEFINE_CG_MOTION(peristaltic,dt,cg_vel,cg_omega,ti me,dtime) { real omega; NV_S(cg_vel,=,0.0); NV_S(cg_omega,=,0.0); if (!Data_Valid_P()) return; omega = 4.0; cg_vel [0] = 0.0; cg_vel [1] = 0.0; cg_omega [0] = 0.0; cg_omega [1] = omega; }
__________________
<Mas> |
|
![]() |
![]() |
![]() |
![]() |
#10 |
Member
ahmad
Join Date: Jul 2010
Posts: 57
Rep Power: 16 ![]() |
dear mas thank you for ur reply
![]() i solved the problem,and now i can rotate small circle for a short distance but i faced a new problem would u think about it and help me out? the problem is: the end points of the small circle has been locked and does not move(as u see it in the image) do u know how can i solve it?and how move small circle a larger distance? thank u in advance.... |
|
![]() |
![]() |
![]() |
![]() |
#11 |
New Member
Mas
Join Date: Jan 2010
Location: Japan
Posts: 24
Rep Power: 16 ![]() |
So, you moved the small circle. Good.
I think while moving the small circle, you also need to update the geometry of the inner diameter of the large circle.
__________________
<Mas> |
|
![]() |
![]() |
![]() |
![]() |
#12 |
Member
ahmad
Join Date: Jul 2010
Posts: 57
Rep Power: 16 ![]() |
how?
could u explain it more,plz... |
|
![]() |
![]() |
![]() |
![]() |
#13 |
New Member
Mas
Join Date: Jan 2010
Location: Japan
Posts: 24
Rep Power: 16 ![]() |
The inner boundary of the large circle should be define as "deforming" type in the dynamic mesh zones panel. Faceted type might do the trick. Please refer to dynamic mesh tutorial for meshing options.
__________________
<Mas> |
|
![]() |
![]() |
![]() |
![]() |
#14 |
Member
ahmad
Join Date: Jul 2010
Posts: 57
Rep Power: 16 ![]() |
||
![]() |
![]() |
![]() |
![]() |
#15 |
New Member
Join Date: Nov 2010
Posts: 22
Rep Power: 15 ![]() |
Dear all
I would really appreciate your help as I’m new to UDF and moving mesh Considering a simple cylinder with flexible walls and the elasticity of the wall is given. What is the best UDF function to go with in order to simulatae such example? Cheers |
|
![]() |
![]() |
![]() |
![]() |
#16 |
New Member
Mr. Nayak
Join Date: May 2016
Location: BANGALORE
Posts: 2
Rep Power: 0 ![]() |
Dear Almostafa67,
I was simulating 2D model of peristaltic pump using dynamic mesh approach in Fluent 16.1. I wrote a simple profile for angular velocity. After few degrees of motion, small circle edges get distorted and creates negative volume. I'm facing the same issue what you have faced. Please help me to resolve this issue. With many thanks... https://www.cfd-online.com/Forums/at...df-problem.jpg |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Commercial meshers] Fluent3DMeshToFoam | simvun | OpenFOAM Meshing & Mesh Conversion | 50 | January 19, 2020 15:33 |
How to use UDF to define a moving wall | lingo | FLUENT | 9 | August 19, 2014 09:14 |
stationary wall vs. moving wall | user0314 | FLUENT | 0 | August 26, 2011 09:42 |
udf variable for wall temperature | Kiran | FLUENT | 0 | July 31, 2008 08:31 |
Multicomponent fluid | Andrea | CFX | 2 | October 11, 2004 05:12 |