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

Problem related with UDF for dynamic mesh

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

LinkBack Thread Tools Search this Thread Display Modes
Old   April 16, 2004, 05:48
Default Problem related with UDF for dynamic mesh
Posts: n/a
I am now learning how to use UDF to describe a dynamic mesh. I adopt a very simple situation just as below. Wall III moves at a constant x-velocity (i.e., 0.4m/s). Here, wall I and II is defined as deforming, and wall III is defined as rigid body motion. Is it OK for both definition?

I --------------- | | | | | <-- | III | | ---------------


Then I wrote a UDF to define wall III's motion as below. It is also very simple and compiled successfully. But using this UDF, I can not preview the expected motion of wall III (wall III doesn't move at all and no dynamic mesh appears). Could anyone check this UDF and tell me the reason? Thanks a lot.

#include "udf.h"

DEFINE_CG_MOTION(translation, dt, vel, omega, time, dtime) { /* reset velocities */ NV_S(omega, =, 0.0);



/* set x-component of velocity */ vel[0]=-0.4; }

  Reply With Quote

Old   April 16, 2004, 06:05
Default Please omit this one and find the next paste.
Posts: n/a
  Reply With Quote


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
Dynamic Mesh Problem. Tom Clark FLUENT 10 June 21, 2021 04:27
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
[Gmsh] 2D Mesh Generation Tutorial for GMSH aeroslacker OpenFOAM Meshing & Mesh Conversion 12 January 19, 2012 03:52
problem related to mesh naveen CFX 3 March 25, 2006 08:47
unstructured vs. structured grids Frank Muldoon Main CFD Forum 1 January 5, 1999 10:09

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