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

Stokes/Elasticity using biharmonic/Laplace #162

Open
wants to merge 135 commits into
base: main
Choose a base branch
from

Conversation

isuruf
Copy link
Collaborator

@isuruf isuruf commented Jun 27, 2022

  • Point sumpy back to main

setup.py Outdated Show resolved Hide resolved
@isuruf isuruf force-pushed the stokes_biharmonic2 branch 4 times, most recently from 95a898d to acc5ae0 Compare June 27, 2022 21:26
@alexfikl
Copy link
Collaborator

alexfikl commented Aug 4, 2022

@isuruf I've been using #29 for my stuff. Should I switch to this? Does it contain any fixes or is it just a clean squash on top of main?

@isuruf
Copy link
Collaborator Author

isuruf commented Aug 4, 2022

@alexfikl, this PR has only parts of #29 so that it is easier to review. I'm not sure if this PR has all the features that you need. Probably not.

@@ -0,0 +1,166 @@
__copyright__ = "Copyright (C) 2021 Isuru Fernando"
Copy link
Owner

Choose a reason for hiding this comment

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

I think it'd be good to have CalculusPatch tests to ensure that PDE rediual for Stokes and elasticity is zero.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added a test to check the stokes PDE in a9931e5 and elasticity in bb31471

Copy link
Owner

Choose a reason for hiding this comment

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

That's technically not testing the Stokes potential, it's testing pytential-computed derivatives thereof.

pytential/symbolic/pde/system_utils.py Outdated Show resolved Hide resolved
pytential/symbolic/pde/system_utils.py Outdated Show resolved Hide resolved
pytential/symbolic/pde/system_utils.py Show resolved Hide resolved
pytential/symbolic/pde/system_utils.py Outdated Show resolved Hide resolved
pytential/symbolic/pde/system_utils.py Outdated Show resolved Hide resolved
pytential/symbolic/pde/system_utils.py Outdated Show resolved Hide resolved
pytential/symbolic/pde/system_utils.py Show resolved Hide resolved
pytential/symbolic/pde/system_utils.py Outdated Show resolved Hide resolved
pytential/symbolic/pde/system_utils.py Outdated Show resolved Hide resolved
pytential/symbolic/pde/system_utils.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@alexfikl alexfikl left a comment

Choose a reason for hiding this comment

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

Added a bunch of nitpicks to pytential.symbolic.stokes (mostly based on how I've been using the new stuff). Many are ignorable, so feel free!

The main thing that bothered me while going through it was the nu_sym everywhere. It feels like that should be handled in elasticity so the user never gets a chance to pass nu_sym=3 from the Stokes wrappers.

pytential/symbolic/stokes.py Outdated Show resolved Hide resolved
pytential/symbolic/stokes.py Outdated Show resolved Hide resolved
pytential/symbolic/stokes.py Outdated Show resolved Hide resolved
pytential/symbolic/stokes.py Show resolved Hide resolved
pytential/symbolic/stokes.py Outdated Show resolved Hide resolved
pytential/symbolic/stokes.py Outdated Show resolved Hide resolved
pytential/symbolic/stokes.py Outdated Show resolved Hide resolved
pytential/symbolic/stokes.py Outdated Show resolved Hide resolved
pytential/symbolic/stokes.py Outdated Show resolved Hide resolved
pytential/symbolic/stokes.py Show resolved Hide resolved
@isuruf isuruf force-pushed the stokes_biharmonic2 branch from fec9eab to ee09dbd Compare September 5, 2022 22:10
@isuruf
Copy link
Collaborator Author

isuruf commented Sep 8, 2022

@inducer, @alexfikl, this is ready for another round of reviews.

Copy link
Collaborator

@alexfikl alexfikl left a comment

Choose a reason for hiding this comment

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

Left a bunch more nitpicks in pde.system_utils this time around :D

This is looking very cool!

pytential/symbolic/elasticity.py Outdated Show resolved Hide resolved
pytential/symbolic/elasticity.py Outdated Show resolved Hide resolved
pytential/symbolic/pde/system_utils.py Outdated Show resolved Hide resolved
pytential/symbolic/pde/system_utils.py Outdated Show resolved Hide resolved
pytential/symbolic/pde/system_utils.py Outdated Show resolved Hide resolved
pytential/symbolic/pde/system_utils.py Outdated Show resolved Hide resolved
pytential/symbolic/pde/system_utils.py Outdated Show resolved Hide resolved
pytential/symbolic/pde/system_utils.py Outdated Show resolved Hide resolved
pytential/symbolic/pde/system_utils.py Outdated Show resolved Hide resolved
pytential/symbolic/typing.py Outdated Show resolved Hide resolved
test/test_stokes.py Outdated Show resolved Hide resolved
@@ -0,0 +1,166 @@
__copyright__ = "Copyright (C) 2021 Isuru Fernando"
Copy link
Owner

Choose a reason for hiding this comment

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

That's technically not testing the Stokes potential, it's testing pytential-computed derivatives thereof.

pytential/symbolic/pde/system_utils.py Outdated Show resolved Hide resolved
pytential/symbolic/pde/system_utils.py Outdated Show resolved Hide resolved
@@ -0,0 +1,166 @@
__copyright__ = "Copyright (C) 2021 Isuru Fernando"
Copy link
Owner

Choose a reason for hiding this comment

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

Pull the docs of this into like an "internals" chapter? internals.rst?

pytential/symbolic/pde/system_utils.py Outdated Show resolved Hide resolved
pytential/symbolic/pde/system_utils.py Outdated Show resolved Hide resolved
pytential/symbolic/pde/system_utils.py Outdated Show resolved Hide resolved
pytential/utils.py Outdated Show resolved Hide resolved
pytential/utils.py Outdated Show resolved Hide resolved
pytential/symbolic/mappers.py Outdated Show resolved Hide resolved
@isuruf isuruf force-pushed the stokes_biharmonic2 branch 2 times, most recently from f7b661d to d34f787 Compare November 23, 2022 15:06
@isuruf
Copy link
Collaborator Author

isuruf commented Nov 23, 2022

This is ready for another round of reviews

Copy link
Collaborator

@alexfikl alexfikl left a comment

Choose a reason for hiding this comment

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

Left a bunch of nitpicks while reading this again. I don't think any of them are stoppers of any sort, so go for it when you and @inducer are done! 🚀

Also, thanks for all this Stokes performance work! It's been immensely helpful in the past two-ish years!

pytential/utils.py Outdated Show resolved Hide resolved
pytential/utils.py Outdated Show resolved Hide resolved
test/test_pde_system_utils.py Outdated Show resolved Hide resolved
test/test_pde_system_utils.py Outdated Show resolved Hide resolved
test/test_pde_system_utils.py Outdated Show resolved Hide resolved
pytential/symbolic/elasticity.py Outdated Show resolved Hide resolved
pytential/symbolic/elasticity.py Outdated Show resolved Hide resolved
pytential/symbolic/elasticity.py Outdated Show resolved Hide resolved
pytential/symbolic/elasticity.py Outdated Show resolved Hide resolved
pytential/symbolic/elasticity.py Outdated Show resolved Hide resolved
doc/symbolic.rst Outdated Show resolved Hide resolved
pytential/symbolic/dof_desc.py Outdated Show resolved Hide resolved
pytential/symbolic/elasticity.py Outdated Show resolved Hide resolved
pytential/symbolic/elasticity.py Outdated Show resolved Hide resolved
pytential/symbolic/elasticity.py Outdated Show resolved Hide resolved
pytential/symbolic/elasticity.py Outdated Show resolved Hide resolved
pytential/symbolic/stokes.py Show resolved Hide resolved
pytential/utils.py Outdated Show resolved Hide resolved
pytential/utils.py Outdated Show resolved Hide resolved
pytential/utils.py Outdated Show resolved Hide resolved
pytential/symbolic/pde/system_utils.py Show resolved Hide resolved
pytential/symbolic/pde/system_utils.py Outdated Show resolved Hide resolved
pytential/symbolic/pde/system_utils.py Outdated Show resolved Hide resolved
pytential/symbolic/pde/system_utils.py Outdated Show resolved Hide resolved
pytential/symbolic/pde/system_utils.py Show resolved Hide resolved
pytential/symbolic/pde/system_utils.py Outdated Show resolved Hide resolved
pytential/symbolic/pde/system_utils.py Show resolved Hide resolved
pytential/symbolic/pde/system_utils.py Outdated Show resolved Hide resolved
pytential/symbolic/pde/system_utils.py Outdated Show resolved Hide resolved
pytential/utils.py Outdated Show resolved Hide resolved
@isuruf isuruf requested a review from inducer December 14, 2022 17:59
@isuruf isuruf force-pushed the stokes_biharmonic2 branch from 748329d to ae1333c Compare December 19, 2022 18:26
pytential/symbolic/elasticity.py Show resolved Hide resolved
test/test_stokes.py Outdated Show resolved Hide resolved
test/test_stokes.py Outdated Show resolved Hide resolved
test/test_stokes.py Outdated Show resolved Hide resolved
test/test_stokes.py Show resolved Hide resolved
pytential/symbolic/pde/system_utils.py Show resolved Hide resolved
pytential/symbolic/pde/system_utils.py Outdated Show resolved Hide resolved
pytential/symbolic/pde/system_utils.py Outdated Show resolved Hide resolved
pytential/symbolic/pde/system_utils.py Outdated Show resolved Hide resolved
pytential/symbolic/pde/system_utils.py Outdated Show resolved Hide resolved
@isuruf isuruf force-pushed the stokes_biharmonic2 branch from 681b73d to c4173e1 Compare December 20, 2022 03:48
@inducer
Copy link
Owner

inducer commented Dec 20, 2022

Unsubscribing... @-mention or request review once it's ready for a look or needs attention.

@isuruf
Copy link
Collaborator Author

isuruf commented Dec 28, 2022

@inducer, ready for a review

@alexfikl alexfikl force-pushed the stokes_biharmonic2 branch from 19415b4 to d1db7f6 Compare January 9, 2025 14:24
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