SFEMaNS  version 4.1 (work in progress) Reference documentation for SFEMaNS
Examples with manufactured solutions

In this section we describe numerous examples that mainly involve manufactured solutions on hydrodynamic, magnetic and MHD set ups. These tests have been implemented in the code SFEMaNS so users can check that the installation of SFEMaNS and the required softwares (PETSC, ARPACK, etc.) have been done correctly. These tests can be run with the shell debug_SFEMaNS_template. We refer to the section Check Installation for more information on how to check the correct installation of the code SFEMaNS.

We note that these tests don't read the information in condlim.f90, read_user_data.f90 and main.f90:

1. The initial/boundary conditions and forcing term are read in a condlim file specific for each test. They can be found in the following directory: ($SFEMaNS_DIR)/MHD_DATA_TEST_CONV_PETSC/. They are named condlim_test_nb_test with nb_test the number of the test. 2. Each test uses its own data that are in the following directory: ($SFEMaNS_DIR)/MHD_DATA_TEST_CONV_PETSC/. They are named debug_data_nb_test with nb_test the number of the test.
3. As these tests compute similar outputs, the postprocessing is done via the same fortran file post_processing_debug.f90. It can be found in the following directory: (\$SFEMaNS_DIR)/MHD_DATA_TEST_CONV_PETSC.

The description of each of these tests follows this structure:

1. Introduction: describe the purpose of the test and the equations to solve.
2. Manufactured solutions: introduce the solutions considered.
3. Generation of the mesh: information on the mesh and its topology.
4. Information on the file condlim: describe the implementation of initial/boundary conditions and source terms.
5. Setting in the data file: description of the data file.
6. Outputs and value of reference: describe outputs considered and the values to recover with SFEMaNS.

Here is the list of the tests. Their respective title provide information on the equations involved.