Skip to content

Plotter3D Postprocessing#12

Merged
RezaNajian merged 29 commits intomainfrom
3D_Tetra-ifol
Sep 8, 2025
Merged

Plotter3D Postprocessing#12
RezaNajian merged 29 commits intomainfrom
3D_Tetra-ifol

Conversation

@jerrypaulvarghese
Copy link
Copy Markdown
Collaborator

@jerrypaulvarghese jerrypaulvarghese commented Aug 28, 2025

PR: A configurable 3D plotter for FOL/iFOL inference results saved in VTK files. (fol.tools.plotter import Plotter3D)+ New set of Dirichlet BC's including Torsion, Stretch, Pure Shear etc.(fol.tools.useful_functions import build_twist_dirichlet etc.)

  • Auto-selects best FOL–FEM match (lowest L2 error on |U|)
  • Warped displacement panels (FOL/FEM)
  • Elasticity and error visualizations
  • Contour and orthogonal slice plots
  • Combined figure stitching via Matplotlib

New in this revision:

  • Prefixes for elasticity and displacement fields are fully configurable via config:
    • elasticity_prefix (default: "K_")
    • u_fol_prefix (default: "U_FOL_")
    • u_fe_prefix (default: "U_FE_")
  • Stable deformation scale in overview via warp_factor_overview (defaults to 1.0).
  • Global show_edges toggle in config.
  • Ensures overview use the same error field: |‖U_FOL‖ − ‖U_FE‖|.
  • Edge clipping
diagonal_plot fol_fem_contour_grid overview panel2 panel5_warped diagonal_plot fol_fem_contour_grid overview panel5_warped panel6_warped panel7

@jerrypaulvarghese jerrypaulvarghese changed the title 3 d tetra ifol Plotter3D Postprocessing Aug 29, 2025
@jerrypaulvarghese
Copy link
Copy Markdown
Collaborator Author

The old Conversations was unexpectedly closed when i created new PR. However I can assure you I have resolved what was mentioned to revise. Kindly consider.

Copy link
Copy Markdown
Member

@RezaNajian RezaNajian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jerrypaulvarghese
class Plotter3D is implemented in plotter.py as well as usefull_functions.py, which is redundant, please clean and keep only plotter.py also note that the CI.yml should not be updated unless really necessary.

@jerrypaulvarghese
Copy link
Copy Markdown
Collaborator Author

@jerrypaulvarghese class Plotter3D is implemented in plotter.py as well as usefull_functions.py, which is redundant, please clean and keep only plotter.py also note that the CI.yml should not be updated unless really necessary.

Thanks for clarifying! I understand now — the CI should only run on main. I’ll just keep my branch updated with main and open PRs as usual. I have deleted the redundant part in usefull_functions. Kindly excuse me for the mistake.

@RezaNajian RezaNajian merged commit f9a680d into main Sep 8, 2025
3 checks passed
jerrypaulvarghese pushed a commit that referenced this pull request Apr 9, 2026
* Create python-package.yml

* update action

* Update python-package.yml

* Update python-package.yml

* Finalize python-package.yml

* Update python-package.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants