Skip to content

Add Raviart-Thomas grad-div example#4061

Merged
jwpeterson merged 4 commits intolibMesh:develfrom
farscape-project:ex10
Jan 27, 2025
Merged

Add Raviart-Thomas grad-div example#4061
jwpeterson merged 4 commits intolibMesh:develfrom
farscape-project:ex10

Conversation

@nmnobre
Copy link
Copy Markdown
Member

@nmnobre nmnobre commented Jan 27, 2025

The (real) motivation is that of other PRs, to be opened soon.
However, since this example is self-contained and should have some value in and of itself, I thought I'd alleviate those other PRs of these changes (including the always massive re-bootstrap and new html).

@moosebuild
Copy link
Copy Markdown

Job Coverage, step Generate coverage on 8509ee8 wanted to post the following:

Coverage

2a4aed #4061 8509ee
Total Total +/- New
Rate 62.33% 62.55% +0.22% -
Hits 72778 73033 +255 0
Misses 43987 43732 -255 0

Diff coverage report

Full coverage report

This comment will be updated on new commits.

//
// This example uses Raviart-Thomas elements to solve a model grad-div problem
// in H(div) in both 2d and 3d: -\nabla (\nabla \cdot \vec{u}) + \vec{u} = f.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Would you mind adding some comments about how this example compares/contrasts with vector_fe_ex6? Obviously they are solving different PDEs, but e.g. ex6 uses a "mixed" (u,p) formulation, whereas in this case we don't do that. I guess this information is fairly basic, but since the examples are meant for explanation/teaching, I think it would be appropriate to include additional information.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yeah, that's an improvement... I was also just wondering what practical applications are related the grad-div problem? Obviously div-grad (aka Poisson) has many applications in physics so we don't need to elaborate on them, but I have never run into grad-div before. If it's just a standard/convenient test for RT elements, that's fine too of course.

Copy link
Copy Markdown
Member Author

@nmnobre nmnobre Jan 27, 2025

Choose a reason for hiding this comment

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

Yeah, that's an improvement...

I realise I've added more to the description of ex6 than to ex10, but if the point is distinguishing them, I hope that works?

If it's just a standard/convenient test for RT elements, that's fine too of course.

Yeah, it's to H(div) what the curl-curl problem is to H(curl), i.e. it's the problem whose differential operator naturally realises the inner product on H(div).

@jwpeterson
Copy link
Copy Markdown
Member

This already passed before the comment update so I'm just going to merge without waiting for the latest round of testing to finish.

@jwpeterson jwpeterson merged commit 48723de into libMesh:devel Jan 27, 2025
@nmnobre nmnobre deleted the ex10 branch January 27, 2025 21:09
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.

4 participants