|
[Sponsors] |
April 16, 2004, 06:48 |
Problem related with UDF for dynamic mesh
|
#1 |
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; } |
|
April 16, 2004, 07:05 |
Please omit this one and find the next paste.
|
#2 |
Guest
Posts: n/a
|
|
|
|
|
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 |