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

UDF for shrinking material

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 16, 2013, 14:19
Default UDF for shrinking material
  #1
New Member
 
Abhinav
Join Date: Mar 2011
Posts: 17
Rep Power: 15
abhinavgupta88 is on a distinguished road
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
Attached Images
File Type: jpg Geometry.jpg (101.0 KB, 4 views)
abhinavgupta88 is offline   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
Simulation with UDF for species mass fraction and velocity profile virgy Fluent UDF and Scheme Programming 8 February 7, 2012 04:30
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 22:14
UDF for wall slipping HFLUENT Fluent UDF and Scheme Programming 0 April 27, 2011 12:03
Help Parallelizing UDF AndresC FLUENT 0 February 25, 2010 15:50
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 04:01


All times are GMT -4. The time now is 10:37.