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

UDF for Dynamic mesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 2, 2013, 11:51
Default UDF for Dynamic mesh
  #1
New Member
 
Guido
Join Date: Dec 2009
Posts: 17
Rep Power: 15
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
Default
  #2
Senior Member
 
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 22
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

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 07:37
[Gmsh] 2D Mesh Generation Tutorial for GMSH aeroslacker OpenFOAM Meshing & Mesh Conversion 12 January 19, 2012 03:52
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Meshing & Mesh Conversion 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 14:09


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