![]() |
The Open FUSION Toolkit 26.6
An open-source framework for fusion and plasma science and engineering
|
Solve time-dependent MHD equations in 2D with lagrange basis set.
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... | |
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. | |
|
private |
Compute the approximate Jacobian matrix for the nonlinear function being solved.
| [in,out] | a | Solution for computing jacobian |
|
private |
Update matrix-free Jacobian on all levels with new solution.
| [in,out] | uin | Current field |
|
private |
Compute the mass matrix for RHS.
| [in,out] | self | mass function object |
| [in,out] | a | Source field |
| [in,out] | b | Result of metric function |
–Set constant values
|
private |
Compute the NL error function, where we are solving F(x) = 0.
b = F(a)
| [in,out] | self | NL function object |
| [in,out] | a | Source field |
| [in,out] | b | Result of metric function |
|
private |
Load xMHD solution state from a restart file.
| [in,out] | u | Solution to load |
| [in] | filename | Name of restart file |
| [in] | path | Path to store solution vector in file |
| [out] | t | Time of loaded solution |
| [out] | dt | Timestep at loaded time |
|
private |
Save xMHD solution state to a restart file.
| [in,out] | u | Solution to save |
| [in] | t | Current solution time |
| [in] | dt | Current timestep |
| [in] | filename | Name of restart file |
| [in] | path | Path to store solution vector in file |
|
private |
Main driver for 2D MHD linear time advance.
|
private |
|
private |
Setup composite FE representation and ML environment.
|
private |
Set any boundary conditions not already set with default values.
|
private |
Update Jacobian matrices on all levels with new solution.
| [in,out] | uin | Current solution |
| subroutine, public xmhd_2d_plot | ( | class(oft_xmhd_2d_sim), intent(inout) | 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.
| Option | Description | Type [dim] |
|---|---|---|
| rst_start=0 | First restart file to read | int |
| rst_end=2000 | Last restart file to read | int |
| type(oft_xmhd_2d_sim), pointer current_sim => NULL() |
| class(oft_bmesh), pointer, public mesh => NULL() |
Current mesh level.
|
private |
Multigrid mesh object.
| type(oft_ml_fem_type), target, public ml_oft_blagrange |
Multilevel finite element representation.
|
private |
Lagrange finite element representation.