|
[Sponsors] |
June 14, 2015, 04:43 |
inclined flow with dynamic mesh
|
#1 |
Member
ad
Join Date: Apr 2014
Posts: 75
Rep Power: 12 |
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, } |
|
June 20, 2015, 10:15 |
|
#2 |
Member
ad
Join Date: Apr 2014
Posts: 75
Rep Power: 12 |
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?
|
|
|
|
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 |