Smooth adaptive potential maps and draw the mesh on the raster figure
Two display fixes for the adaptive grid, from field feedback: - Equipotential contours showed leaf-sized staircase corners on plane interiors: the potential is now expanded piecewise-LINEARLY from each leaf's reconstructed gradient instead of constant-per-leaf, and the default ADAPTIVE_MAX_CELL_UM drops 2 mm -> 1 mm (interior leaves beyond that buy almost nothing). - The raster map now overlays the adaptive mesh: boundaries of coarse leaves draw in darker copper (fine regions stay plain = fully resolved), with a legend entry. Uniform-grid runs are unchanged. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -66,11 +66,12 @@ TARGET_CELLS_ADAPTIVE = 8_000_000 # auto cell-size budget with the adaptive
|
||||
# grid: unknowns no longer scale with the
|
||||
# fine cell count, so the auto sizer picks
|
||||
# a ~2x finer h (memory-bound: masks/fields)
|
||||
ADAPTIVE_MAX_CELL_UM = 2000.0 # coarsest leaf edge length. The MINIMUM
|
||||
# element size is the grid cell size itself
|
||||
# (auto / dialog / CELL_UM_OVERRIDE). Rarely
|
||||
# needs tuning: the guard distance already
|
||||
# caps leaf growth near features
|
||||
ADAPTIVE_MAX_CELL_UM = 1000.0 # coarsest leaf edge length (also the
|
||||
# granularity of the potential/field maps
|
||||
# on plane interiors). The MINIMUM element
|
||||
# size is the grid cell size itself (auto /
|
||||
# dialog / CELL_UM_OVERRIDE). The guard
|
||||
# distance caps leaf growth near features
|
||||
ADAPTIVE_GUARD = 4 # a leaf of size s needs >= GUARD*s cells of
|
||||
# clearance to the nearest feature
|
||||
ADAPTIVE_CORRECTION_PASSES = 1 # deferred-correction re-solves fixing the
|
||||
|
||||
Reference in New Issue
Block a user