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

Fluidity advection 2d #174

Merged
merged 7 commits into from
Mar 25, 2024
Merged

Fluidity advection 2d #174

merged 7 commits into from
Mar 25, 2024

Conversation

adigitoleo
Copy link
Member

Add fluidity advection example and simple builtin mesh (gmsh) generation.

@adigitoleo

This comment was marked as resolved.

@adigitoleo

This comment was marked as resolved.

@adigitoleo adigitoleo force-pushed the fluidity-advection-2d branch 3 times, most recently from bd3c650 to dc4de76 Compare March 22, 2024 04:45
@adigitoleo
Copy link
Member Author

Tracked it down: docs failure is still caused by gmsh import, the workaround from 2d30d91 doesn't fix it. Since the gmsh package is so much trouble I'll just move it to an optional dep and make the mesh generation functionality unavailable by default.

@adigitoleo adigitoleo force-pushed the fluidity-advection-2d branch 2 times, most recently from de1af2c to 82f19db Compare March 22, 2024 05:56
@adigitoleo
Copy link
Member Author

mitmproxy/pdoc#673

@adigitoleo adigitoleo force-pushed the fluidity-advection-2d branch 3 times, most recently from d6a98d0 to a4e866c Compare March 22, 2024 06:37
@adigitoleo
Copy link
Member Author

Manual exclusion of the mesh submodule from the docs works for now.

@adigitoleo adigitoleo force-pushed the fluidity-advection-2d branch 2 times, most recently from 4106f86 to 2ee5e3f Compare March 24, 2024 16:07
@adigitoleo adigitoleo marked this pull request as ready for review March 24, 2024 16:31
@adigitoleo
Copy link
Member Author

Fluidity now seems to produce the correct results. More on this later today. Might want to squash some of this stuff before merge.

Patol75
Patol75 previously approved these changes Mar 25, 2024
The mesh generator relies on gmsh which is installed as an optional
dependency. `import gmsh` crashes the pdoc github runner though for some
reason so needs to be excluded. The old h5part reader script is removed
and replaced with a first-class CLI tool as well, which makes testing
easier.
The default, generated by `@dataclass`, is not useful here because of
the complicated data structure.
- `add_dim` for converting from e.g. a 2D matrix to a 3D version
- `remove_dim` for converting from e.g. a 3D matrix to a 2D version

They also work for vectors or arbitrary-dimension ndarrays.
And modify simple shear `dudz_pathline` test to use the same parameters.
@adigitoleo adigitoleo merged commit fe5cfc1 into main Mar 25, 2024
4 checks passed
@adigitoleo adigitoleo deleted the fluidity-advection-2d branch March 25, 2024 03:17
adigitoleo added a commit that referenced this pull request Mar 26, 2024
adigitoleo added a commit that referenced this pull request Mar 27, 2024
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.

2 participants