![]() |
The Open FUSION Toolkit 26.6
An open-source framework for fusion and plasma science and engineering
|
#include "local.h"Data Types | |
| type | oft_xmhd_2d_sim |
| Main 2D MHD simulation object. More... | |
| type | xmhd_2d_mfun |
| Object to compute left-hand side of system for linear solves. More... | |
| type | xmhd_2d_nlfun |
| Object to compute left-hand side of system for nonlinear solves. More... | |
Modules | |
| module | xmhd_2d |
| Solve time-dependent MHD equations in 2D with lagrange basis set. | |
Macros | |
| #define | TDIFF_RST_LEN 5 |
| #define | XMHD_ITCACHE 10 |
| #define | XMHD_RST_LEN 5 |
Functions/Subroutines | |
| subroutine | build_approx_jacobian (self, a) |
| Compute the approximate Jacobian matrix for the nonlinear function being solved. | |
| subroutine | mfnk_update (uin) |
| Update matrix-free Jacobian on all levels with new solution. | |
| subroutine | mfun_apply (self, a, b) |
| Compute the mass matrix for RHS. | |
| subroutine | nlfun_apply (self, a, b) |
| Compute the NL error function, where we are solving F(x) = 0. | |
| subroutine | r_init (pt, val) |
| subroutine | rst_load (self, u, filename, path, t, dt) |
| Load xMHD solution state from a restart file. | |
| subroutine | rst_save (self, u, t, dt, filename, path) |
| Save xMHD solution state to a restart file. | |
| subroutine | run_lin_simulation (self) |
| Main driver for 2D MHD linear time advance. | |
| subroutine | run_simulation (self) |
| subroutine | setup (self, mg_mesh_in, order) |
| Setup composite FE representation and ML environment. | |
| subroutine | setup_bc (self) |
| Set any boundary conditions not already set with default values. | |
| subroutine | update_jacobian (uin) |
| Update Jacobian matrices on all levels with new solution. | |
| subroutine, public | xmhd_2d_plot (self) |
| Plot the current solution state using XDMF/HDF5 output Runtime options are set in the main input file using the group xmhd_plot_options. Option group: xmhd_plot_options. | |
Variables | |
| type(oft_xmhd_2d_sim), pointer | current_sim => NULL() |
| class(oft_bmesh), pointer, public | mesh => NULL() |
| Current mesh level. | |
| class(multigrid_mesh), pointer | mg_mesh => NULL() |
| Multigrid mesh object. | |
| type(oft_ml_fem_type), target, public | ml_oft_blagrange |
| Multilevel finite element representation. | |
| class(oft_scalar_bfem), pointer | oft_blagrange => NULL() |
| Lagrange finite element representation. | |
| #define TDIFF_RST_LEN 5 |
| #define XMHD_ITCACHE 10 |
| #define XMHD_RST_LEN 5 |