Repository navigation
Add mathematical documentation for 2D elliptic boundary-condition examples - #524
susan-bronco wants to merge 4 commits into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
jbrzensk
left a comment
There was a problem hiding this comment.
Hi @susan-bronco, thanks for this. One small change for readability.
| u(x,y) = e^x\cos(y). | ||
| $$ | ||
|
|
||
| This corresponds to the call to `addScalarBC2D(A,b,k,m,dx,n,dy,dc,nc,v)`, with |
There was a problem hiding this comment.
Please put the corresponding call for addScalar before the exact solution. This makes it seem like the exact solution is the call to addScalarBC.
There was a problem hiding this comment.
Done. I pushed the update in commit 95cd49e. The updated HTML version looks right.
|
I noticed the canceled/failed macOSX check. Do I need to do something about that? I'm using an HP/windows laptop. Thanks for any help. |
|
I tested examples/octave/elliptic2DCurvPeriodic.m and got an error (see below). Should I continue with writing the documentation for this one, or wait? error: product: nonconformant arguments (op1 is 2700x1, op2 is 2700x2700) |
|
Wait for that one. Looking into it. |
|
Yeah, working on it. See issue #531 |
|
I noticed that elliptic2DPeriodic.m and elliptic2DXPeriodicYPeriodic.m solve essentially the same problem: the 2D Poisson equation with periodic boundary conditions in both directions. Both also call addScalarBC2D, though elliptic2DPeriodic.m has a comment at the top that says it does not use it. The main difference I can see is different grid resolutions (m=49 in elliptic2DPeriodic.m vs m=299 in the other). So my documentation is basically the same for both. Should I go ahead and commit/push both, or...? At this point I submitted the description for elliptic2DXPeriodicYPeriodic.m already. Thanks! |
What type of PR is this? (check all applicable)
Description
This draft pull request adds mathematical documentation for the
elliptic2DXDirichletYDirichlet.mexample.The documentation explains the Laplace equation being solved, the domain, the Dirichlet boundary conditions, the exact solution, how the example uses MOLE, and the numerical error. The remaining four 2D boundary-condition examples from Issue #510 will be added in follow-up commits.
Related Issues & Documents
QA Instructions, Screenshots, Recordings
I tested this documentation by running
make doc-htmlfrom thedoc/sphinxdirectory. I then opened the generated HTML page and checked that it rendered correctly and that it accurately described the code, including the equation, domain,boundary conditions, exact solution, and numerical errors.
I also ran the Octave example successfully, and the output was:
I previewed the page locally in Google Chrome on Windows.
Keep-open request
keep-open.Reason: This is a work-in-progress pull request for Issue #510. The remaining four mathematical example pages will be added in follow-up commits.
Added/updated tests?
_We encourage you to test all code included with MOLE, including examples.
Read Contributing Guide and Code of Conduct
[optional] Are there any post deployment tasks we need to perform?
[optional] What gif best describes this PR or how it makes you feel?