# UDF for Dynamic mesh

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

 April 2, 2013, 11:51 UDF for Dynamic mesh #1 New Member   Guido Join Date: Dec 2009 Posts: 17 Rep Power: 9 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!

 April 3, 2013, 01:51 #2 Senior Member   Paritosh Vasava Join Date: Oct 2012 Location: Lappeenranta, Finland Posts: 725 Rep Power: 16 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; }

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Qureshi FLUENT 7 March 23, 2017 08:37 aeroslacker Open Source Meshers: Gmsh, Netgen, CGNS, ... 12 January 19, 2012 04:52 sc298 OpenFOAM Native Meshers: snappyHexMesh and Others 2 March 27, 2011 21:11 zou_mo FLUENT 0 June 30, 2009 07:15 lr103476 OpenFOAM Running, Solving & CFD 30 November 19, 2007 15:09

All times are GMT -4. The time now is 09:08.