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

Support curvilinear structured grids using open_dataset #31

Open
ricardofrantz opened this issue Jun 21, 2021 · 5 comments
Open

Support curvilinear structured grids using open_dataset #31

ricardofrantz opened this issue Jun 21, 2021 · 5 comments
Milestone

Comments

@ricardofrantz
Copy link

Hey guys,

(probably this is not the best to post this)

I have a 3d field and I need to plot the evolution of the boundary layer thickness along x.
All examples refer to .mean. I can't even obtain a slice of an instantaneous quantity.

Is there a reference to functions like mean or slice? any chance to add some more usage examples?

Thanks for your time,
R

@ricardofrantz
Copy link
Author

Hi, I realized the problem is that I was using readnek instead of open_dataset.

My case is not a perfect box, so open_dataset raises the error: ValueError: conflicting sizes for dimension 'z': length 6 on 'xmesh' and length 36 on 'z'

Is there a way to bypass it? or dump a part of the domain so I could use open_dataset and the built-in functions like mean and isel ?

@ashwinvis
Copy link
Member

Support for open_dataset with non-box meshes is not complete. See #13 for an attempt at this. Hints, suggestions or contributions welcome.

@ashwinvis ashwinvis changed the title Extra usage examples open_dataset raises ValueError with non-box meshes Jun 21, 2021
@ashwinvis
Copy link
Member

This comment advises loop indices for curvilinear structured meshes.

@ashwinvis
Copy link
Member

For most cases this seems to be the reason, but it appears to happen (rarely) for certain runs even with box simulations as seen in #56.

In v1.5.0 we will at the very least provide a meaningful error message.

@airwarriorg91
Copy link

Hello,
I am trying to do PoD analysis with the Nek5000 data, I am also getting the following error.
ValueError: conflicting sizes for dimension 'y': length 6 on 'xmesh' and length 36 on {'x': 'x', 'y': 'y', 'z': 'z'}

The function readnek works but open_dataset fails. Is there any workaround for this issue ?

Output from readnek:

<pymech.core.HexaData>
Dimensions:    2
Precision:     4 bytes
Mesh limits:
  * x:         (-25.0, 25.0)
  * y:         (-10.0, 10.0)
  * z:         (0.0, 0.0)
Time:
  * time:      0.1404823881693
  * istep:     284
Elements:
  * nel:       25472
  * elem:      [<elem centered at [ 2.52509928 -1.0241044   0.        ]>
                ...
                <elem centered at [-1.16377744 -0.68677078  0.        ]>]

Thanks,
Gaurav

@ashwinvis ashwinvis modified the milestones: v2.0.0, v2.1.0 Oct 8, 2024
@ashwinvis ashwinvis pinned this issue Oct 10, 2024
@ashwinvis ashwinvis changed the title open_dataset raises ValueError with non-box meshes Support curvilinear structured grids using open_dataset Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants