laplacian_smoothing — fair material interfaces with a single polyfem
solve (AMIPS + fitting + Laplacian; no contact, no iteration).
cfg reference: see spec.json here and the simwild.laplacian_smoothing op.
Selections use the region/filter format from simwild.polyfem_ops.mesh_core.
| None simwild.polyfem_ops.laplacian_smoothing.run |
( |
dict |
cfg, |
|
|
|
out_dir = None |
|
) |
| |
Smooth material interfaces with a single polyfem solve — AMIPS +
fitting + Laplacian, no contact, no dhat loop; for body-body separation
use run(). See the module docstring for cfg fields. `interfaces` scopes
the smoothed manifolds via the boundary-of-S rule (face selected iff
(A ∪ B) ⊇ S AND NOT (A ⊇ S AND B ⊇ S)), unioned into one triangle patch;
`max_iterations`/`nl_max_iterations` both cap the nonlinear solver
(default 1000). Writes the generated polyfem inputs (smoothing.json,
constraint hdf5s, reduced mesh) to out_dir/smooth_input, polyfem output
(logs, solution.txt) to out_dir/smooth_output, and the deformed mesh to
output_msh (default <stem>_smoothed.msh); out_dir defaults to the mesh's
folder.