|
[Sponsors] |
July 16, 2013, 15:19 |
UDF for shrinking material
|
#1 |
New Member
Abhinav
Join Date: Mar 2011
Posts: 17
Rep Power: 15 |
Hi
I have a 2D Geometry attached is the picture. I have a material in the middle which shrinks 0.5 inch in 5 hours the left and the right walls. I wrote the following UDF but it did not work. #include "udf.h" #include "dynamesh_tools.h" /************************************************** ********************/ /***** UDF for displacer motiion *****/ /************************************************** ********************/ DEFINE_CG_MOTION(displacer_func_Piston_West, dt, vel, omega, time, dtime) { Thread *t; face_t f; real a = 3.215; real pai = 3.141592654; /* reset velocities */ NV_S (vel, =, 0.0); NV_S (omega, =, 0.0); if (!Data_Valid_P ()) return; t=DT_THREAD (dt); vel[0] = 0.0000007055 ; } DEFINE_CG_MOTION(displacer_func_Piston_East, dt, vel, omega, time, dtime) { Thread *t; face_t f; real a = 11.536; real pai = 3.141592654; /* reset velocities */ NV_S (vel, =, 0.0); NV_S (omega, =, 0.0); if (!Data_Valid_P ()) return; t=DT_THREAD (dt); vel[0] = -0.0000007055 ; } Please help |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Simulation with UDF for species mass fraction and velocity profile | virgy | Fluent UDF and Scheme Programming | 8 | February 7, 2012 05:30 |
UDF parallel error: chip-exec: function not found????? | shankara.2 | Fluent UDF and Scheme Programming | 1 | January 16, 2012 23:14 |
UDF for wall slipping | HFLUENT | Fluent UDF and Scheme Programming | 0 | April 27, 2011 13:03 |
Help Parallelizing UDF | AndresC | FLUENT | 0 | February 25, 2010 16:50 |
UDF, UDF, UDF, UDF | Luc SEMINEL | Main CFD Forum | 0 | November 25, 2002 05:01 |