CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT

Fluent 3D Dynamic Mesh

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   March 15, 2021, 15:38
Post Fluent 3D Dynamic Mesh
New Member
Join Date: Feb 2021
Posts: 2
Rep Power: 0
KoalaMau is on a distinguished road
I have to make a dynamic mesh that can change the radius of a cylinder. How can I make the .udf?
KoalaMau is offline   Reply With Quote

Old   March 22, 2021, 09:11
New Member
Join Date: Jan 2014
Posts: 20
Rep Power: 11
tahar is on a distinguished road

DEFINE_GRID_MOTION(RADII, domain, dt, time, dtime)

Thread *tf = DT_THREAD (dt);
face_t f;
Node *v;
real x_coor;
real x_centre=0;
real y_coor;
real rayon;
real freq = 3.183;
real alpha;
real temps;
real R =0.25;
int n;
// FILE *fp = fopen(UDF_FILENAME, "r");

/* set deforming flag on adjacent cell zone */

//temps = RP_Get_Real("flow-time");
temps = time+dtime;
begin_f_loop (f, tf)
f_node_loop (f, tf, n)
v = F_NODE (f, tf, n);

x_coor= NODE_X (v);
y_coor= NODE_Y (v);
alpha = 0.125;

NODE_X (v) = x_coor- x_coor*(alpha*cos(2*M_PI*4*freq*temps));
NODE_Y (v) = y_coor- y_coor*(alpha*cos(2*M_PI*4*freq*temps));


end_f_loop (f, tf);
tahar is offline   Reply With Quote


cylinder domain, dynamic mesh

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[ICEM] different zones/regions ICEM for fluent dynamic mesh valbort ANSYS Meshing & Geometry 2 June 26, 2018 18:14
Local mesh refinement definition in a DEFORMING dynamic mesh zone using Dynamic Mesh Emanuele88 FLUENT 0 February 9, 2016 11:39
Dynamic Mesh in Fluent haris05 Main CFD Forum 2 December 5, 2011 01:54
FLUENT dynamic mesh set-up question ral007 FLUENT 0 February 15, 2011 12:28
Dynamic mesh + apaption in Fluent 12 ? klunker FLUENT 0 September 23, 2009 08:19

All times are GMT -4. The time now is 11:40.