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

Problem related with UDF for dynamic mesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 16, 2004, 06:48
Default Problem related with UDF for dynamic mesh
  #1
Ryan
Guest
 
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 | | ---------------

II

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);

if(!Data_Valid_P())

return;

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

  Reply With Quote

Old   April 16, 2004, 07:05
Default Please omit this one and find the next paste.
  #2
Ryan
Guest
 
Posts: n/a
  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 Problem. Tom Clark FLUENT 10 June 21, 2021 05:27
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20
[Gmsh] 2D Mesh Generation Tutorial for GMSH aeroslacker OpenFOAM Meshing & Mesh Conversion 12 January 19, 2012 04:52
problem related to mesh naveen CFX 3 March 25, 2006 09:47
unstructured vs. structured grids Frank Muldoon Main CFD Forum 1 January 5, 1999 11:09


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