CFD-GO / TCLB

TCLB - Templated MPI+CUDA/CPU Lattice Boltzmann code
https://tclb.io
GNU General Public License v3.0
177 stars 70 forks source link

Introducing `autosym2` #517

Closed llaniewski closed 2 months ago

llaniewski commented 2 months ago

This PR introduces and alternative version of the autosym capability. All models with the autosym option can now be compiled with autosym2 option, which introduces SymmetryEdge boundary conditions, which are symmetry boundary conditions, but not on the middle of element, but on the edge of the element. This allows for using symmetry in common cases with even number of elements. Eg. for a simulation of a droplet, with autosym we need 99x99 cross-section, and the center of the droplet at 49.5, with the reduced domain to 50x50 with symmetry, and with autosym2 one can use a channel of 100x100 and the particle can be centrally between elements at 50.