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

Add a MA demo solving Helmholtz PDE #53

Merged
merged 4 commits into from
Feb 1, 2024
Merged

Conversation

stephankramer
Copy link
Collaborator

As previously discussed now with Hessian-based monitor

@stephankramer stephankramer force-pushed the monge-ampere-helmholz-demo branch from 8c9ca1b to f746f44 Compare January 26, 2024 17:52
Copy link
Member

@jwallwork23 jwallwork23 left a comment

Choose a reason for hiding this comment

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

Thanks very much for this @stephankramer!

A few fairly minor comments. Also, please could you put a link to this demo at the end of the previous one, with a short sentence? So that it's easy to read through the demos on the webpage.

# e.g. for testing purposes.
#
# Based on the code in the Firedrake demo, we first solve the PDE on a uniform mesh.
# Because our chosen solution does not satisfy homogenoues Neumann boundary conditions,
Copy link
Member

Choose a reason for hiding this comment

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

'homogeneous'

demos/monge_ampere_helmholtz.py Outdated Show resolved Hide resolved
demos/monge_ampere_helmholtz.py Outdated Show resolved Hide resolved
Comment on lines +146 to +147
mover = MongeAmpereMover(mesh, monitor, method="quasi_newton")
mover.move()
Copy link
Member

Choose a reason for hiding this comment

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

What do you think about including what's printed to screen in a separate code block? i.e. showing the convergence of the different metrics. We do this in Thetis demos.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

good idea. Out of interest why do we refer to the standard deviation of cell areas as "equidistribution" ?

Copy link
Member

Choose a reason for hiding this comment

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

Hm good point, not sure how that ended up in there. Standard deviation would be a better term. We can either fix it here or open an issue for it, whichever you prefer.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Any objection to UTF -8 in terminal output? "Standard Deviation" is a bit long, and not entirely accurate - all other terminology (https://en.wikipedia.org/wiki/Coefficient_of_variation) is a bit obscure so I thought to clarify with σ/μ

Copy link
Member

Choose a reason for hiding this comment

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

Fine by me. Nice! Even better.

demos/monge_ampere_helmholtz.py Show resolved Hide resolved
@jwallwork23
Copy link
Member

I guess for the tests to pass we need to use the same Docker env as for Animate/Goalie. All the more reason to get mesh-adaptation/animate#47 working!

@jwallwork23
Copy link
Member

I guess for the tests to pass we need to use the same Docker env as for Animate/Goalie. All the more reason to get pyroteus/animate#47 working!

Would you mind switching the Docker image used by Movement as part of this PR? If you switch it to the same one as we use for Animate and Goalie then the tests should pass.

Copy link
Member

@jwallwork23 jwallwork23 left a comment

Choose a reason for hiding this comment

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

Looks great, thanks again for this!

equidistribution -> (Coefficient of) Variation
@jwallwork23 jwallwork23 merged commit 17a7ba6 into main Feb 1, 2024
1 check passed
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