CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   Liquid piston mobile mesh (https://www.cfd-online.com/Forums/fluent-udf/169941-liquid-piston-mobile-mesh.html)

Ledeeb April 20, 2016 10:12

Liquid piston mobile mesh
 
1 Attachment(s)
Hello, I am studying the compression of Liquid piston using fluent.

My geometry is very simple: Rectangular 2D, with the bottom wall is moving upward with constant velocity=0.01 m/s.

I know that I can use the In-Cylinder option for the Dynamic Mesh option, But in my problem I just want the piston to goes up till we hit the Pressure desired inside our cylinder. (compression ratio, r=10 with Pi=1 atm);

I read many UDF examples using DEFINE_CG_MOTION, and profile examples.

Can someone can help me by telling me what should I write in one the two methods. In my case, there's no force because the velocity is constant, and the moving wall is moving in Y direction. What should I write in the UDF code to tell the piston to stop when the Pressure desired is reached ??

NB: If i use UDF; After I created the dynamic mesh zone for the Moving wall, Should I keep in the boundary conditions, the wall motion for the Moving wall: Stationary ? If yes, it doesn't make sens. If no, then I should give the moving wall, a transitional speed. This point contradicts with UDF ???

Thanks a lot for your help.

prt May 10, 2016 03:36

ladeeb ,
have u written program in c for the piston motion. which fluent version u r using.?

prt May 12, 2016 10:06

ledeeb,

have u written program in c ? please upload ur program. or mail me i am also working on the same problem.thanks in advance.


All times are GMT -4. The time now is 20:06.