CFD Online Logo CFD Online URL
Home > Forums > Fluent UDF and Scheme Programming

inclined flow with dynamic mesh

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

LinkBack Thread Tools Display Modes
Old   June 14, 2015, 03:43
Default inclined flow with dynamic mesh
Join Date: Apr 2014
Posts: 66
Rep Power: 4
adi.ptb is on a distinguished road
hello,I have a question that I hope someone can help me with,I want to study the effect of gravity in an inclined system that has a compressor at on of its ends,this must be done using dynamic layering,I wrote a udf for motion of compressor but my problem is that i dont know what should i add to my udf to account for inclined geometry since the moving boundary is not perpendicular to x or y axis and it has a 30 degree angle with respect to y axis,
any help would be appreciated,


DEFINE_CG_MOTION(piston,dt,vel,omega,time,dtime )
Thread *t;
real f=150.0;
real w=2.0*M_PI*f;
real xcomp=2.0e-3;
t = DT_THREAD(dt);
vel[]=xcomp*w*cos(w*time); this the part that i dont know what to use!!!!!!,0 is for motion in x direction and 1 for motion in y direction,
adi.ptb is offline   Reply With Quote

Old   June 20, 2015, 09:15
Join Date: Apr 2014
Posts: 66
Rep Power: 4
adi.ptb is on a distinguished road
hi,can I take my geometry to be horizontal and instead use -gcos30 and -gsin30 for gravitational acceleration in x and y directions or should I use the rotate option of fluent and rotate the system by 30 degrees and use -g in the y direction for acceleration,which one in correct?
adi.ptb is offline   Reply With Quote


Thread Tools
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
potentialFreeSurfaceFoam with Dynamic Mesh GuilhermeMP OpenFOAM Programming & Development 1 October 6, 2013 03:05
dynamic mesh for flow induced vibration on circular cylinder.... rishitosh Main CFD Forum 1 December 9, 2012 04:09
Mesh size for particulate flow simulations Shahri Main CFD Forum 0 March 24, 2009 18:40
Icemcfd 11: Loss of mesh from surface mesh option? Joe CFX 2 March 26, 2007 18:10
Mesh for 3 dim Geometry Phil FLUENT 9 July 12, 2000 04:39

All times are GMT -4. The time now is 00:49.