# inclined flow with dynamic mesh

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

 June 14, 2015, 03:43 inclined flow with dynamic mesh #1 Member   ad Join Date: Apr 2014 Posts: 66 Rep Power: 4 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, 09:15 #2 Member   ad Join Date: Apr 2014 Posts: 66 Rep Power: 4 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?

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post GuilhermeMP OpenFOAM Programming & Development 1 October 6, 2013 03:05 rishitosh Main CFD Forum 1 December 9, 2012 04:09 Shahri Main CFD Forum 0 March 24, 2009 18:40 Joe CFX 2 March 26, 2007 18:10 Phil FLUENT 9 July 12, 2000 04:39

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