CFD Online Logo CFD Online URL
Home > Forums > Fluent UDF and Scheme Programming

UDF for Dynamic mesh

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

LinkBack Thread Tools Display Modes
Old   April 2, 2013, 11:51
Default UDF for Dynamic mesh
New Member
Join Date: Dec 2009
Posts: 17
Rep Power: 9
guido_88 is an unknown quantity at this point
Hi, I'm trying to simulate a 2D flow over a moving cylinder or over an inclined plate. I have to describe a vertical motion that follow a sinusoidal law for my cylinder/plate, so can anyone write a simple UDF to use? Thanks!
guido_88 is offline   Reply With Quote

Old   April 3, 2013, 01:51
Senior Member
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 725
Rep Power: 16
vasava will become famous soon enough
Here is UDF from fluent tutorial. You can edit it to your specifications.

/************************************************** *******************/
/* UDF to compute the orientation of a rotating valve, based on a
specified rotational speed.

Christoph Hiemcke, Fluent Inc., 12 Feb 2004

butterlfy_flex_UDF = name shown in Fluent GUI
dt = thread
cg_vel = cg velocity (global)
cg_omega = angular velocity (global)
time = current time
dtime = time step
/************************************************** *******************/
#include "udf.h"

#define omega 10.0 /* rotational speed, rad/sec */

DEFINE_CG_MOTION(butterfly_flex_UDF, dt, cg_vel, cg_omega, time, dtime)
cg_vel[0] = 0.0;
cg_vel[1] = 0.0;
cg_vel[2] = 0.0;

cg_omega[0] = 0.0;
cg_omega[1] = omega;
cg_omega[2] = 0.0;
vasava is offline   Reply With Quote


Thread Tools
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 On
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
2D Mesh Generation Tutorial for GMSH aeroslacker Open Source Meshers: Gmsh, Netgen, CGNS, ... 12 January 19, 2012 04:52
snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Native Meshers: snappyHexMesh and Others 2 March 27, 2011 21:11
with UDF to change mesh by external mesh generator zou_mo FLUENT 0 June 30, 2009 07:15
Convergence moving mesh lr103476 OpenFOAM Running, Solving & CFD 30 November 19, 2007 15:09

All times are GMT -4. The time now is 18:52.