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

Convert rotating disk and Wigley hull to cas.h5 format #214

Merged
merged 5 commits into from
Dec 8, 2023

Conversation

ansjsia
Copy link
Collaborator

@ansjsia ansjsia commented Dec 4, 2023

Added cas.h5 versions of the rotating disk and Wigley hull mesh files to support using lightweight case loading in solver mode unit tests.

EDIT: Also converted all .msh files to .msh.h5 (for 3D meshes) or to .msh.gz (for 2D meshes). After merging this PR, the following PRs must also be merged to avoid breaking tests and examples:

@ansjsia ansjsia marked this pull request as ready for review December 7, 2023 19:02
Copy link
Member

@raph-luc raph-luc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be a good idea to not remove any files in this PR (even if you are fairly sure they aren't being used).

In a subsequent PR, when we do come back to remove the deprecated files, we should request review from the people who added these files, in case they are being used in ways that we did not anticipate.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we adding .cas.h5 files with wigley_hull/wigley.cas.h5 and rotating_disk/disk.cas.h5? Can't we work with just the .msh.h5 files?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At least some of the tests that reference these meshes are only concerned with case settings, not with the actual mesh, so adding a cas.h5 version allows us to use lightweight case read on them.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that the settings-only mode can also work with the .msh.h5 files directly:
image

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, I just confirmed that this also works in PyFluent. This would be relevant for the test relying on wigley_hull.msh.h5. This doesn't work for the 2D meshes I compressed using GZIP (e.g. disk.msh.gz) as they aren't in HDF5 format.

@ansjsia
Copy link
Collaborator Author

ansjsia commented Dec 7, 2023

I think it would be a good idea to not remove any files in this PR (even if you are fairly sure they aren't being used).

In a subsequent PR, when we do come back to remove the deprecated files, we should request review from the people who added these files, in case they are being used in ways that we did not anticipate.

@raph-luc Good point, I've restored all of the original .msh files.

@dnwillia-work dnwillia-work merged commit bf571aa into master Dec 8, 2023
@dnwillia-work dnwillia-work deleted the testing/test-cases-as-cas branch December 8, 2023 16:51
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

Successfully merging this pull request may close these issues.

3 participants