-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from bendudson/higher-order
Higher order solver
- Loading branch information
Showing
10 changed files
with
325 additions
and
123 deletions.
There are no files selected for viewing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Tests | ||
===== | ||
|
||
Convergence test | ||
---------------- | ||
|
||
The ``test-convergence.py`` script solves for the same plasma as the | ||
``01-freeboundary.py`` example, with four poloidal field coils and an X-point. | ||
The change in results as the resolution is doubled is plotted as a function of | ||
grid resolution. This is therefore not testing convergence to a known solution, | ||
but is a check that the code converges to value, and indication of its | ||
convergence rate. | ||
Results are shown below, using the von Hagenow free boundary, and 4th-order solver for | ||
the poloidal flux :math:`\psi`. | ||
|
||
.. image:: freegs_convergence.png | ||
:alt: Convergence of flux, magnetic field, volume and plasma current | ||
|
||
This indicates that in general convergence is between 2nd and 4th-order. The | ||
plasma volume is currently calculated by integrating over the poloidal | ||
cross-section, and could be improved by converting this to a surface integral. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.