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

No support for deformed 3D grids? #598

Open
k-a-mendoza opened this issue Aug 23, 2024 · 1 comment
Open

No support for deformed 3D grids? #598

k-a-mendoza opened this issue Aug 23, 2024 · 1 comment

Comments

@k-a-mendoza
Copy link

k-a-mendoza commented Aug 23, 2024

I'm working with a type of 3D FEM model which uses a logically rectilinear, but locally deformed hexahedral grid.

Here's an example in python:

import numpy as np
# coordinates
x = np.linspace(0,10,num=11)
y = np.linspace(0,10,num=11)
z = np.linspace(0,10,num=11)
xx, yy, zz = np.meshgrid(x,y,z)

# some scalar-valued function within the grid
scalar_value = xx*yy*zz 

# deform the grid. This is abitrary and just for demonstration purposes. 
xx+=np.sin(xx*yy*zz)*0.02
yy+=np.sin(xx*yy*zz)*0.02
zz+=np.cos(xx*yy*zz)*0.02

While complex, this can easily be plotted as a pyvista.StructuredGrid, even if its not supported by any geo-specific software I've come across.

One option would be to regrid and interpolate into a regular scheme. However, the large aspect-ratio's of the original grid and its rotation within a UTM system is causing severe losses of resolution when I do so, not to mention file types which are 10-100x larger than the source file.

Exporing the grid as is to geoh5py would be optimal, but it doesn't seem like it supports this kind of format. I'm hoping I'm wrong.

@domfournier
Copy link
Contributor

Hi @k-a-mendoza ,
Apologies for the very late reply, looks like our Jira system got disconnected so this issue didn't get reported.

This is a great request, but more on the long roadmap for ANALYST itself.
I will elevate it on their side, but no promise on a timeframe.

Cheers

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

2 participants