VertexOnlyMesh and Extruded Meshes #2748
ReubenHill
started this conversation in
General
Replies: 1 comment 1 reply
-
So my understanding of what you are doing is you want to have a parloop that does something like:
I think what you should look to do is to compute and use a new
Basically I think things get easier if you stop thinking about the I could be totally misunderstanding what you want, and I could be wrong, but I hope this helps. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
So I’m trying to get
VertexOnlyMesh
to play nicely with extruded meshes. One issue is getting the runtime quadrature to play nicely. I can getVertexOnlyMeshTopology.cell_parent_cell_list
to produce the correct output forUnitSquareMesh(3, 3, quadrilateral=True)
andExtrudedMesh(UnitIntervalMesh(3), 3)
- in each case the numbering varies but the below works:The above numbering is the same as you get if you ask the extruded mesh to do
locate_cell
on a given point.I use
VertexOnlyMesh.cell_parent_cell_list
to make a pyop2Map
to the parent meshcell_set
- of course thecell_set
for an extruded mesh is a pyop2ExtrudedSet
: this uses the base meshcell_set
and the given extrudedlayers
so I don't know if I should expect thelocate_cell
list of numbers to play nicely with this.When I interpolate, I make a pyop2
ComposedMap
from theVertexOnlyMesh.cell_parent_cell_list
toFunctionSpace.cell_node_map
which I then use in my par loop. @ksagiyam or @connorjward , can you advise at all?Beta Was this translation helpful? Give feedback.
All reactions