- 
		
			- 
January 30, 2018 at 11:38 amsaadyw SubscriberI have a 2D dynamic mesh case of a piston-cylinder arrangement as attached. I can create a udf to move the piston under certain velocity and the simulation proceeds with no problems. 
 What I need is to set the dynamic mesh zones according to a udf expressing the equation of motion of the piston which is :
 a = (F + p1*A1 - p2*A2) / m  or if represented with velocity  dv = (F + p1*A1 - p2*A2) * dt / m
 where: a .. acceleration, F .. External force, p1,p2 .. pressures on upper and lower piston boundaries respectively, A1,A2 .. areas at same locations and m .. mass of the piston.
 I have got through a similar udf in the udf manual for equation of motion in x-dir, but I do not understand how the pressure forces are computed. So, IÂ want to know how the pressure on both sides is represented in the udf in my case. 
 Â 
 This udf link is: https://www.cfd-online.com/Forums/fluent/87021-code-dynamic-meshing-udf.html 
 
 Can you help me on this udf ?
 
- 
- The topic ‘UDF for equation of motion’ is closed to new replies.
- air flow in and out of computer case
- Varying Bond model parameters to mimic soil particle cohesion/stiction
- Eroded Mass due to Erosion of Soil Particles by Fluids
- I am doing a corona simulation. But particles are not spreading.
- Centrifugal Fan Analysis for Determination of Characteristic Curve
- Guidance needed for Conjugate Heat Transfer Analysis for a 3s3p Li-ion Battery
- Issue to compile a UDF in ANSYS Fluent
- JACOBI Convergence Issue in ANSYS AQWA
- affinity not set
- Resuming SAG Mill Simulation with New Particle Batch in Rocky
- 
                        
                        4167
- 
                        
                        1487
- 
                        
                        1338
- 
                        
                        1188
- 
                        
                        1021
© 2025 Copyright ANSYS, Inc. All rights reserved.
 You are navigating away from the AIS Discovery experience
You are navigating away from the AIS Discovery experience 
               
          