Wildmeshing Toolkit
Loading...
Searching...
No Matches
Functions | Variables
simwild.polyfem_ops.laplacian_smoothing Namespace Reference

Functions

None run (dict cfg, out_dir=None)
 

Variables

tuple _SMOOTHING_IGNORED_KEYS
 

Detailed Description

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.

Function Documentation

◆ run()

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.

Variable Documentation

◆ _SMOOTHING_IGNORED_KEYS

tuple simwild.polyfem_ops.laplacian_smoothing._SMOOTHING_IGNORED_KEYS
protected
Initial value:
1= (
2 "sep", "init_dhat", "rtol",
3 "barrier_stiffness", "alpha_n", "alpha_t",
4 "use_rest_shape_measure", "use_adaptive_dhat",
5)