Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Point based/structured grids? #80

Open
banesullivan opened this issue May 31, 2019 · 1 comment
Open

Point based/structured grids? #80

banesullivan opened this issue May 31, 2019 · 1 comment

Comments

@banesullivan
Copy link
Contributor

I'm just now realizing there isn't exactly support for structured grids (points based grids) in OMF.

For example, take discretize's CurvilinearMesh class and preview a 3D rendering of it here

import discretize
import numpy as np
import pyvista as pv

sz = [16, 16, 16]
curv = discretize.CurvilinearMesh(discretize.utils.exampleLrmGrid(sz, 'rotate'))
vec = np.arange(curv.nC)
data = {'a': vec, 'b': vec + 1}

curv.to_vtk(data).slice_orthogonal().plot(show_edges=True)

ezgif com-video-to-gif-4

@fwkoch: How would one go about serializing this type of structured grid to the OMF format? Are there plans for node-based grids in v2.0?

Relevant to simpeg/discretize#174

@banesullivan
Copy link
Contributor Author

banesullivan commented May 31, 2019

Also, the equivalent VTK data structure I have in mind id vtkStructuredGrid (pyvista.StructuredGrid)

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

No branches or pull requests

1 participant