You are on page 1of 8
FLUENT ]0]Up 11.2.9 FAY "DYNAMIC MESH2] Layering method2} UDF SH! UDFS 1% dynamic mesh] ©]®99} layering method2] 4t2] 44 49 Y4ig gee py aq. Introduction In ANSYS FLUENT the dynamic mesh capability is used to simulate problems with boundary motion, such as check valves and store separations. The building blocks for dynamic mesh capabilities within ANSYS FLUENT are three dynamic mesh schemes, namely, smoothing, layering, and remeshing. A combination of these three schemes are used to tackle the most challenging dynamic mesh problems. However, for simple dynamic mesh problems involving linear boundary motion, the layering scheme is often sufficient. For example, flow around & check valve can be simulated using only the layering scheme. In this tutorial, such a case will be used to demonstrate the layering feature of the dynamic mesh capability in ANSYS FLUENT. Check valves are commonly used to allow uni-directional flow. For instance, they are often used to act as a pressure-relieving device by only allowing fluid to leave the domain when the pressure is higher than a certain level. In such a case, the check valve is connected to a spring that acts to push the valve to the valve seat and to shut the flow. But when the pressure force on the valve is greater than the spring force, the valve will move away from the valve seat and allow fluid to leave, thus reducing the pressure upstream. Gravity could be another factor in the force balance, and can be considered in ANSYS FLUENT. The deformation of the valve is typically neglected and thus allows for a rigid body Fluid Structure Interaction (FS!) calculation, for which a UDF is provided. This tutorial provides information for performing basic dynamic mesh calculations. This tutorial demonstrates how to do the following: + Use the dynamic mesh capability of ANSYS FLUENT to solve a simple flow-driven rigid-body motion problem. + Set boundary conditions for internal flow. + Use a compiled user-defined function (UDF) to specify flow-driven rigid-body motion. + Calculate a solution using the pressure-based solver. Problem Description The check valve problem to be considered is shown schematically in Figure 13.1. A 2D axisymmetric valve geometry is used, consisting of a masa flow inlet on the left, and a pressure outlet on the right, driving the motion of a valve. In this case, the transient motion of the valve due to spring force, gravity, and hydrodynamic force is studied. Note, however, that the valve in this case is not completely closed. Instead, for the sake of simplicity, a small gap remains between the valve and the valve seat (since dynamic mesh problems require that at least one layer remains in order to maintain the topology). seat valve wall: 001 pressure outlet axis-move, Figure 13.1 SA:ANGYS FLUENT 12 TUTORIAL GUIDE 1) 27cancas@amail.com oS] TES ZA NS S71 Hoh Sistah a od une len. amore oe Tea a Salamis toad tne, 0 Rlormneel flt:more ‘rule = oe over valor} MAS GNSES HE Peeic. seat-valve moar! rr . ome. au i | 7 / \ \ sere ten Tam Tomm nia Wt ot cioea yao Sac ies e927] ae Secs, Bagel Soe 718 a. valves BR ag 1mm s wy of Baal oe ao 3 a a GE Sa eee ao ead A ee Ggats boise Baad idboxg/s"201¢} ASST *Time! steady model: Energy[on] ‘Viscous[k-epsilon} smaterial: air[Density: ideal gas] *boundary condition: inlet[Mass flow inlet: mass flow rate: 0.0116kg/s turbulencefintensity: 10%, hydraulic diameter:20mm] outletiPressure outlet: backflow direction specification: from neighboring cell turbulencefintensity: 10%, hydraulle dlameter:Somm] ssolution method: Pressure-velocity coupling: Scheme[SIMPLE] ssolution Inftlalization: Compute fromfiniet] WBE SH HAN LA Btt TAS AG VIPs UA HAs 271Rdls See. “BPE SEH +Time: transient ssolution method: Pressure-velocity coupling: Scheme[PISO|:_ skewness correction‘0 pressure[PRESTO!] sunder-relaxation factors! pressure[0.6], turbulence kinetic energyi0.4], turbulence dissipation rate{0.4] “UDF ond ANY ASE uf AABe (71S A SEY op Ajo] Bwee See At] 4 define Wo_0F % sb axta (HO_OF VALVES) (ND NDINUC=1, 0b); /* oxmaltzes +/ geavicy_irection{No NOJ=(0, 1); /* normalizes */ Exp closed(i0 OF VALVES) (ND ¥D}=((9,90) 1. cue + sp(No OF VALVES) (wD wD}=((mHrTIaL, 22FT, 90)1, stecic vod f_valve(ine valvetfo, void tde, real tog_vel, real togomga, reel tine, seal deine) at Giese v2 post scatic real og_vel_saved{io_OF VALVES) (ND NDI: dincdegS BB ‘udf.h' eH “dynamesh_tools.h'7; QE AS Incudesof gist O12 ‘Dynamic Mesh Macros's *€oF1 Hawes qaee wee Te eS ipnamesh toa Oa [ Name(Arguments) ‘Argument Types [Returns ‘DI-THREAD at) Dynanie Thread +d¢ | pointer tow thread DT.cG(at) Dynamic Thread +dt | center of gravity vector DI-VELc@(ae) Dynamic Thread dt | eg velocity vector DT-OMEGA.Cae) Dynamic Thread dt | angular velocity vector DI-THETACat) Dynanic.Thread dt | orientation of body-fixed DYNAMESH_CURRENT TIME N/A current dynamic mesh time TIME T0_ABSOLUTE CRANK ANGLE(tine)| real time absolute value of the ceank angle oO] AOIUOTAS DT_THREAD(at) Ha27} * at go) Beee: ¥ he 2] zelg sie gente PRESS ELAS Surnass, ‘Tel soar valved: waivers Joyal E SSainiman) 2 ‘fl 1RP_HOS" 5 Ba5. EA RES, MS BA LLATE host} cfd compute node} WBstL, 7 © serlalel 293at =

You might also like