$FOAM_TUTORIALS/compressible/rhoPimpleFoam/laminar/helmholtzResonance
We calculate air flow in a channel with a narrowed center, and see the pressure oscillation due to Helmholtz resonance.
The flow enters from the region "inlet" with a mass flow rate 0.0001 kg/s and exits from the region "outlet". The region "walls" is the stationary wall with zero velocity and the region "symmetry" is the symmetric boundary.
Model geometry
And, the following settings are made in the file resolved/system/controlDict, and pressure sampling is performed at five locations. The sampling results are saved in the file resolved/postProcessing/probes/0/p.
functions
{
probes
{
libs ( "libsampling.so" );
type probes;
name probes;
writeControl timeStep;
writeInterval 1;
fields ( p );
probeLocations
(
( -0.045 0 0)
( -0.045 0.020 0)
( -0.010 0 0)
( 0.0125 0 0)
( 0.0125 0.020 0)
);
}
}
The meshes are as follows, and the number of mesh is 30816.
Meshes
Meshes (XY-plane)
The calculation result is as follows.
Flow velocity at final time (U)
Pressure at final time (p)
Time series of pressure at sampling point (-0.01, 0, 0) (p)
Position of sampling point (-0.01, 0, 0)
22.69 seconds *4 parallel, Inter(R) Core(TM) i7-8700 CPU @ 3.20GHz 3.19GHz