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

help! udf for moving and deforming mesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 29, 2002, 23:29
Default help! udf for moving and deforming mesh
  #1
xie haibo
Guest
 
Posts: n/a
hi,everyone

I want to use UDF to apply the motion to one boundary.and I know the velocity of motion. But I don't know how to use DEFINE_CG_MOTION marco.

can anybody give me some UDF examples about this? Thanks!
  Reply With Quote

Old   November 3, 2002, 22:07
Default Re: help! udf for moving and deforming mesh
  #2
J.W.Ryu
Guest
 
Posts: n/a
Hello,

Following is UDF that I am using for moving voundary. By time step, velocity of moving mesh is being changed.

Thanks,

/****** Boundary Condition - [ Dynamic Meshing ] ********/

DEFINE_CG_MOTION(pull, dt, vel, omega, time, dtime) { Thread *t; face_t f; real x[ND_ND], y, u_vel ; real tt = RP_Get_Real ("flow-time");

/* time dependent velocity always can be changed by experimental condition */

if (tt <= 12045.6)

{

u_vel = 1.67e-5 - 2.82e-9*tt + 3.98e-13*pow(tt,2.0) ;

}

else if (tt < 32696.6)

{

u_vel = 1.18e-5 - 6.91e-10*tt + 3.43e-14*pow(tt,2.0) ;

}

else if (tt <= 41492.)

{

u_vel = 6.9e-6 - 8.01e-11*tt + 1.79e-15*pow(tt,2.0) ;

}

else if (tt <= 102991.9)

{

u_vel = 4.79e-6 + 1.79e-11*tt ;

}

else if (tt <= 188854.2)

{

u_vel = 1.15e-5 - 4.59e-11*tt ;

}

else if (tt <= 233493.3)

{

u_vel = 2.8e-6 + 1.23e-12*tt + 5.67e-17*pow(tt,2.0) ;

}

else

{

u_vel= 6.182e-06 ;

}

vel[0] = u_vel;

}
  Reply With Quote

Old   November 4, 2002, 04:52
Default Re: help! udf for moving and deforming mesh
  #3
xie haibo
Guest
 
Posts: n/a
hi,J.W.Ryu

thank you very much!

I have another question.I want to know which mode to select to compile the UDF? interpreted or compiled? thanks again!

Xie Haibo
  Reply With Quote

Old   November 4, 2002, 07:47
Default Re: help! udf for moving and deforming mesh
  #4
J.W.Ryu
Guest
 
Posts: n/a
Hi, Xie,

UDF that I posted is a part of my UDF, which has Moving mesh and other source/boundary conditions. You need to select compiled. In addition, you need to aware that moving mesh is alloweded at Fluent ver. 6.0.

Please see users manual and Tutorial regarding to moving/deforming mesh. It will let you know how you can easily learn moving/deforming mesh.

Thanks,

J.W.Ryu
  Reply With Quote

Old   November 4, 2002, 08:09
Default Re: help! udf for moving and deforming mesh
  #5
xie haibo
Guest
 
Posts: n/a
hi,J.W.Ryu,

thanks again!

I have read the fluent6.0 user's manual for dynamic mesh sereral times. But you know the UDF of deforming/moving mesh in the manual is not detailed. I will try again and hope to keep touch with you if i reach new problems. thank you!

Xie Haibo
  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
Dynamic Mesh UDF Qureshi FLUENT 7 March 23, 2017 08:37
Restart Deforming Mesh Calculation Tristan CFX 0 June 22, 2009 19:34
Problem related with UDF for dynamic mesh Ryan FLUENT 6 April 29, 2004 10:29
UDF for deforming mesh Ingolf FLUENT 1 March 3, 2003 03:21
udf for moving and deforming mesh xie haibo FLUENT 4 October 27, 2002 07:45


All times are GMT -4. The time now is 23:58.