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 MINI element, and convergence test for RT0 #329

Merged
merged 3 commits into from
Feb 4, 2020
Merged

Conversation

kinnala
Copy link
Owner

@kinnala kinnala commented Feb 1, 2020

Solves the same Poisson equation as the other convergence tests.

@kinnala kinnala requested a review from gdmcbain February 1, 2020 13:20
@kinnala
Copy link
Owner Author

kinnala commented Feb 1, 2020

Added also MINI element for demonstrating simple Stokes elements. Didn't test with Stokes, but added convergence test for standard H1 case. Could also do some sort of automatized stability testing for the Stokes operator but it's maybe more related to #241 .

@kinnala kinnala changed the title Add convergence test for Raviart-Thomas element Add MINI element, and convergence test for RT0 Feb 1, 2020
Copy link
Contributor

@gdmcbain gdmcbain left a comment

Choose a reason for hiding this comment

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

Looks good. I'll be interested to try or see these elements in some full examples.

@BilinearForm
def bilinf_A(sigma, tau, w):
from skfem.models.helpers import dot
return dot(sigma, tau)
Copy link
Contributor

Choose a reason for hiding this comment

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

This bilinear form arises in a few places; it might be a candidate for skfem.models.

@bilinear_form
def mass(u, du, v, dv, w):
return u[0] * v[0] + u[1] * v[1]

@bilinear_form
def mass(u, du, v, dv, w):
return rho * sum(u * v)

https://github.com/gdmcbain/fenics-tuto-in-skfem/blob/119258655559ab7ac6b563bf75be6923d494d2be/07_navier_stokes_channel/st07_navier_stokes_channel.py#L12-L14

@kinnala kinnala merged commit 0065458 into master Feb 4, 2020
@kinnala kinnala deleted the rt-convergence-test branch August 7, 2020 09:01
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