Академический Документы
Профессиональный Документы
Культура Документы
This solution will examine the difference in results for method 1 and 2.
Solution:
Consider the example setup in Figure 1. The vibrations will be sinusoidal in the direction perpendicular to
gravity (x direction).
where
Amplitude (A) is 0.2 [m]
angular frequency (ω) is 2𝜋𝑓 with f=0.5 [Hz]
To specify the momentum per unit volume, the following equation is used as a source term for each cell
(acceleration applied to the fluid is in the opposite direction of the object movement):
#include “udf.h”
#define a 0.2
#define f 0.5
Hook the momentum source (x-direction) to the fluid region. If there are multiple fluid regions, it should be
to all fluid regions.
Use MDM
The speed of the object needed to define the MDM is:
#include “udf.h”
#define a 0.2
#define f 0.5
cg_omega[0] = 0.0;
cg_omega[1] = 0.0;
cg_omega[2] = 0.0;
This UDF should be hooked at the defined position. In Define->Dynamic Mesh->Zone, set the moving
fluid area and wall surface to Rigid Body and hook this UDF for Motion UDF/Profile.
Results
If the momentum source without the MDM function is used, the progression results are shown in Figure 2.
Figure 2: Time progression of the volume fraction of air without MDM function used
When the MDM function is used, the results are identical as shown in Figure 3.
Since the mesh itself is moved in case 2, the computational time might be longer than in using a
momentum source. A benefit of using the MDM is the post-processing results are easy to understand
(especially when accompanied with rotation).