Skip to content

Boundary Condition Example #313

Closed
1 of 1 issue completed
Closed

Description

@12jordans

Hello,

I was interested in adding boundary conditions to a tutorial example from issue #231. I also wanted to convert the example into C++. Please let me know if this is wanted and also if there is any other information I should know.

Activity

  1. valeriabarra commented on Apr 1, 2026

    @valeriabarra
    Collaborator

    @jbrzensk if you have any advice, please let us know!

  2. valeriabarra commented on Apr 1, 2026

    @valeriabarra
    Collaborator

    This relates to Issue #231

  3. jbrzensk commented on Apr 6, 2026

    @jbrzensk
    Collaborator

    Sounds good. I recommend something with Neumann boundary conditions. Those are very hard to hand-code a boundary operator with >1 order accuracy. The example should show some error convergence, and let the user change the order of accuracy of the mimetic operators to get a higher order approximation. Assume the user will not change the finite difference example.

  4. 12jordans commented on Apr 7, 2026

    @12jordans
    ContributorAuthor

    @jbrzensk Do you want the Neumann boundary conditions added to the existing tutorial on the two way wave equation or is this supposed to be a new tutorial?

  5. jbrzensk commented on Apr 7, 2026

    @jbrzensk
    Collaborator

    Make it a separate file in the same tutorial directory. Similar naming. "comparison_two_way_with_neumann.m" or something.

  6. 12jordans commented on Apr 28, 2026

    @12jordans
    ContributorAuthor

    @jbrzensk I noticed that the existing tutorial shows that the mimetic difference error slope is greater than the finite difference error slope. Is this expected behavior? I tried comparing the errors with the energy norm on my BC tutorial, but I am still getting the same results. Any guidance on this issue would be very helpful.

  7. jbrzensk commented on Apr 28, 2026

    @jbrzensk
    Collaborator

    Thanks, @12jordans, good catch. The tutorial needs to be updated. I will make an issue.

    Try the version from the MATH693B branch..

    Notably, it changes how the error is calculated and the function for the initial conditions.

    It also lets you play with the wave speed, dt, and grid cells more easily so you can see the changes.

    Image Image
  8. 12jordans commented on Apr 29, 2026

    @12jordans
    ContributorAuthor

    Thank you! I will use that version and update my code.

  9. jbrzensk commented on Apr 29, 2026

    @jbrzensk
    Collaborator

    @12jordans The tutorial has been updated. If you git pull, you should get an updated tutorial on the main branch that shows the plots above.

  10. github-actions commented on May 23, 2026

    @github-actions

    This issue has had no activity for 23 days. It will be marked stale in 5 days if there is no further activity.

  11. added
    staleNo recent activity; scheduled for automatic closure.
    on May 27, 2026
  12. github-actions commented on May 27, 2026

    @github-actions

    Thanks for the discussion and work here. This issue has had no activity for 28 days, so it is now marked stale. If there is no further activity, it will be closed in 42 days.

  13. github-actions commented on Jul 9, 2026

    @github-actions

    Closing because this issue stayed stale for 42 days with no activity. If this is still needed, please reopen it or open a new issue with updated context.

  14. removed
    staleNo recent activity; scheduled for automatic closure.
    on Jul 10, 2026
  15. github-actions commented on Jul 24, 2026

    @github-actions

    This issue has had no activity for 14 days. It will be marked stale in 14 days if there is no further activity.

  16. github-actions commented on Aug 7, 2026

    @github-actions

    Thanks for the discussion and work here. This issue has had no activity for 28 days, so it is now marked stale. If there is no further activity, it will be closed in 42 days.

  17. added
    staleNo recent activity; scheduled for automatic closure.
    on Aug 7, 2026
  18. github-actions commented on Sep 18, 2026

    @github-actions

    Closing because this issue stayed stale for 42 days with no activity. If this is still needed, please reopen it or open a new issue with updated context.

  19. removed
    staleNo recent activity; scheduled for automatic closure.
    on Sep 19, 2026
  20. github-actions commented on Oct 2, 2026

    @github-actions

    This issue has had no activity for 14 days. It will be marked stale in 14 days if there is no further activity.

  21. valeriabarra commented on Oct 2, 2026

    @valeriabarra
    Collaborator

    keep-open

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions