Dear All
I am trying to simulate single phase compressible flow of water in sudden expansion and contraction kind of geometries with the help of two-phase-compressible.h and all-mach.h solvers.
I am getting checkerboard pressure and momentum fields as shown in the attached screenshots. I am using the minmod2 limiter.
The files I am using are attached with this mail. I am using an older version of Basilisk, the file output_hdf.h may need to be corrected in the newer versions.
I request you kindly give me some hints on how to improve the solution.
A basic analysis of the all-mach.h header shows the following code at line 237
----------------------------------------------------------------------------------------
/** We also compute the combined face pressure gradient and acceleration
field *gf*. */
face vector gf[];
foreach_face() {
double dp = alpha.x[]*(p[] - p[-1])/Delta;
uf.x[] -= dt*dp;
gf.x[] = a.x[] - dp/fm.x[];
}
/**
And finally we apply the pressure gradient/acceleration term to the
flux/momentum. We also store the centered, combined pressure
gradient and acceleration field *g*. */
foreach()
foreach_dimension() {
g.x[] = rho[]*(gf.x[] + gf.x[1])/(2.*cm[]);
q.x[] += dt*g.x[];
}
----------------------------------------------------------------------------------------
We are basically calculating face pressure gradient by central differencing and from that the cell centered pressure gradient by simple averaging.
This averaged pressure gradient then drives the momentum. The point to note is
that the pressure from the central most grid cell is not appearing and two independent pressure and velocity solutions may evolve.
Please point if I am wrong here.
Thank you.
Regards
The information contained in this electronic communication is intended solely for the individual(s) or entity to which it is addressed. It may contain proprietary, confidential and/or legally privileged information. Any review, retransmission, dissemination, printing, copying or other use of, or taking any action in reliance on the contents of this information by person(s) or entities other than the intended recipient is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us by responding to this email or telephone and immediately and permanently delete all copies of this message and any attachments from your system(s). The contents of this message do not necessarily represent the views or policies of BITS Pilani.