iljah / pamhd

Other
1 stars 1 forks source link

Initialize with more accurate face magnetic field #10

Open iljah opened 8 months ago

iljah commented 8 months ago

Initializing magnetic field using one face-centered value might create too large divergence when AMR is involved. Investigate using e.g. https://www.boost.org/doc/libs/1_84_0/libs/math/doc/html/math_toolkit/gauss.html to initialize B0 and B1 more accurately in order to decrease div(B).

iljah commented 8 months ago

Quick test of using average of B values at 4 points on face decreased max div(B) by 4x in 2d wave test.