define submeshes for a new format #1196
Replies: 2 comments 2 replies
-
Depends on how your information is stored. If sets are stored as arrays of indices into the cells array, |
Beta Was this translation helpful? Give feedback.
-
It is stored as array of indices, so I would go for cell_sets. What do I must define then ? A list of each cell types ? For example, if: cells = [ and if would create a cell_set with the second triangle and the first quad, i must enter: cell_sets = {"cell_set name" : [("triangle", [1]), ("quad":[0]) ] } ? Also, what the difference with a cell_tag like used for med reader ? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all!
I try to implement a new reader/writer for meshio to handle PFLOTRAN meshes (https://www.pflotran.org/). Such format can handle "submeshes" which define set of cells to further apply different material properties or boundary conditions. However, I can't figure out in meshio how to store these information during reading or to use it during write. In fact, I see two mesh attributes (cell_sets and cell_tags) which can do the job,. Is it one of the two I must used ? If yes, how do we specify it ?
Have a nice day,
Moise
Beta Was this translation helpful? Give feedback.
All reactions