You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
make_eb_converging_nozzle is an axisymmetric (lathe) geometry that only makes sense in 3D, but it compiles and runs in DIM=2 and silently builds an unrelated geometry; the shipped converging_nozzle.inp is 3D while SodPlusSphere's GNUmakefile is DIM=2 #122
Severity: low · Category: eb Locations:Source/EB/eb_converging_nozzle.cpp:28-54, Source/EB/embedded_boundaries.cpp:54-57, Exec/SodPlusSphere/converging_nozzle.inp:10-12,58-62, Exec/SodPlusSphere/GNUmakefile:5 Based on commit 17997db (line numbers refer to that tree).
The defect
The nozzle is built as translate(rotate(lathe(PlaneIF), 90deg, axis 1), ...) intersected/unioned with two
x-axis cylinders (eb_converging_nozzle.cpp:28-52). In 3D this is correct: LatheIF maps (x,y,z) -> f(hypot(x,y), z) (amrex/Src/EB/AMReX_EB2_IF_Lathe.H:30-38), giving a cone about the z axis, and rotate(..., 1) turns that axis onto x. In 2D the same AMReX classes have different semantics: LatheIF evaluates f(hypot(x,y), 0) (a revolution about the origin, i.e. concentric circles) and RotationIF ignores the axis argument and rotates in the xy plane (AMReX_EB2_IF_Rotation.H:35-49).
So a DIM=2 executable given CAMR.geometry = converging-nozzle runs without any diagnostic and produces a
geometry that has nothing to do with a nozzle (the "cone" degenerates into a disc-like region centred at the
translated origin, clipped by the two infinite channels).
The only shipped input for this geometry, Exec/SodPlusSphere/converging_nozzle.inp, is a 3D case
(amr.n_cell = 72 48 48, geometry.prob_lo = 0 -6 -6), but Exec/SodPlusSphere/GNUmakefile:5 says DIM = 2,
and CI compiles this directory in both 2D and 3D without ever running the nozzle input. A user who does make && ./CAMR2d...ex converging_nozzle.inp gets the 2D nonsense with no warning (AMReX reads only the first
two entries of the 3-component geometry keys).
Why it matters
Silent wrong geometry: the run proceeds, writes plotfiles and a vfrac field, and only a look at that field
reveals that the nozzle is absent.
Activity
fix issues 117 118 119 120 121 122 (AMReX-Fluids#124)