-
-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
FEAScript 0.2.0enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
The plotSolution function currently supports:
- 1D line plots for scalar solutions (see e.g the tutorial)
- 2D contour plots for structured rectangular grids (reshaping node coordinates into grids) (see e.g the tutorial)
- 2D contour plots for unstructured meshes using node-based interpolation (via Plotly's contour type with
xyzarrays) (see e.g the tutorial)
However, it does not handle true element-based visualization for arbitrary polygonal topologies.
Tasks:
- Introduce a new
plotTypeoption, e.g.,"polygon" - Use Plotly's
scatterwithfill: 'toself'ormesh3dto draw individual polygonal elements based on element connectivity (e.g., fromnoparrays inmeshGenerationScript.js) - For each element, extract node coordinates and solution values to create filled polygons with color mapping
Example API usage: plotSolution(solutionVector, nodesCoordinates, solverConfig, "2D", "polygon", plotDivId);
Metadata
Metadata
Labels
FEAScript 0.2.0enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers