MHD Generation Code

Autor: Frutos-Alfaro, Francisco, Carboni-Mendez, Rodrigo
Rok vydání: 2015
Předmět:
Zdroj: Revista de Matematicas: Teoria y Aplicaciones,Vol. 23 (1), 2016
Druh dokumentu: Working Paper
DOI: 10.15517/rmta.v23i1.22343
Popis: A program to generate codes in Fortran and C of the full Magnetohydrodynamic equations is shown. The program used the free computer algebra system software REDUCE. This software has a package called EXCALC, which is an exterior calculus program. The advantage of this program is that it can be modified to include another complex metric or spacetime. The output of this program is modified by means of a LINUX script which creates a new REDUCE program to manipulate the MHD equations to obtain a code that can be used as a seed for a MHD code for numerical applications. As an example, we present part of output of our programs for Cartesian coordinates and how to do the discretization.
Databáze: arXiv