|
[Sponsors] |
April 2, 2013, 12:51 |
UDF for Dynamic mesh
|
#1 |
New Member
Guido
Join Date: Dec 2009
Posts: 17
Rep Power: 16 |
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, 02:51 |
|
#2 |
Senior Member
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 23 |
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; } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dynamic Mesh UDF | Qureshi | FLUENT | 7 | March 23, 2017 08:37 |
[Gmsh] 2D Mesh Generation Tutorial for GMSH | aeroslacker | OpenFOAM Meshing & Mesh Conversion | 12 | January 19, 2012 04:52 |
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! | sc298 | OpenFOAM Meshing & Mesh Conversion | 2 | March 27, 2011 22:11 |
with UDF to change mesh by external mesh generator | zou_mo | FLUENT | 0 | June 30, 2009 08:15 |
Convergence moving mesh | lr103476 | OpenFOAM Running, Solving & CFD | 30 | November 19, 2007 15:09 |