Closed pshriwise closed 2 weeks ago
Many thanks Patrick, I can give this go and feedback.
Just been making use of this branch, it successfully produced a mesh source on an unstructured mesh.
Tagging @rlbarker for your interest
I used this python script, attached .h5m file and produced a nice html plot of the result. meshsource.zip
This all looks good @pshriwise and it works nicely over here. The only part I don't quite get is why are the indices
a list of tuples instead of a plain old list
Thanks for explaining that tuple use. All looks good here to me. Shall we leave it open for a few days in case other comments come in.
Description
This PR contains a fix in
source.py
that allows for application of theUnstructuredMesh
class in aMeshSource
object. It also has some quality-of-life updates for theUnstrucutredMesh
class:indices
property to theUnstructuredMesh
class and as an abstract property to theMeshBase
class.MeshSource
Partially Fixes #2929 -- I'll be creating a follow-on PR to support addition of the statepoint properties from the Python API next.
Checklist