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

inclined flow with dynamic mesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 14, 2015, 04:43
Default inclined flow with dynamic mesh
  #1
Member
 
ad
Join Date: Apr 2014
Posts: 75
Rep Power: 12
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,

udf:

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;
NV_S(vel,=,0.0);
NV_S(omega,=,0.0);
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, 10:15
Default
  #2
Member
 
ad
Join Date: Apr 2014
Posts: 75
Rep Power: 12
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

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
potentialFreeSurfaceFoam with Dynamic Mesh GuilhermeMP OpenFOAM Programming & Development 1 October 6, 2013 04: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 19:10
Mesh for 3 dim Geometry Phil FLUENT 9 July 12, 2000 05:39


All times are GMT -4. The time now is 17:22.