Ver contenido en pdf.
Services on Demand
Journal
Article
Indicators
-
Cited by SciELO -
Access statistics
Related links
-
Similars in
SciELO
Share
Revista de Matemática Teoría y Aplicaciones
Print version ISSN 1409-2433
Rev. Mat vol.23 n.1 San José Jan./Jun. 2016
Artículos
Magnetohydrodynamic equations (MHD) generation code
Código de generación de ecuaciones magnetohidrodinámicas (MHD)
1School of Physics, University of Costa Rica, San José, Costa Rica. E-Mail: frutos@fisica.ucr.ac.cr
2School of Physics, University of Costa Rica, San José, Costa Rica. E-Mail: rcarboni@fisica.ucr.ac.cr
A program to generate codes in Fortran and C of the full magnetohydrodynamic equations is shown. The program uses 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 magnetohydrodynamic equations to obtain a code that can be used as a seed for a magnetohydrodynamic code for numerical applications. As an example, we present part of the output of our programs for Cartesian coordinates and how to do the discretization.
Keywords: magnetohydrodynamic; Cartan's exterior calculus; numerical discretization
Se presenta un programa para generar códigos en Fortran y C de las ecuaciones magnetohidrodinámicas. El programa utiliza el software libre de álgebra computacional REDUCE. Este software tiene un paquete llamado EXCALC, que es un programa de cálculo exterior. La ventaja de este programa es que puede ser modificado para incluir otra métrica compleja o espacio-tiempo complejo. La salida de este programa es modificada por medio de una secuencia de comandos LINUX que crea un nuevo programa en REDUCE para manipular las ecuaciones magnetohidrodinámicas para obtener un código que puede ser utilizado como una semilla para un código de magnetohidrodinámica para aplicaciones numéricas. A modo de ejemplo, se presenta parte de la salida de nuestros programas en coordenadas cartesianas y como hacer la discretización.
Palabras clave: magnetohidrodinámica; cálculo exterior de Cartan; discretización numérica
REFERENCES
Arfken, G.B.; Weber, H.J.; Harris, F.E. (2013) Mathematical Methods for Physicists. Elsevier, Amsterdam. [ Links ]
Birdsall, C.K.; Langdon, A.B. (1991) Plasma Physics via Computer. Adam Hilger, Bristol. [ Links ]
Cap, F.(1994) Lehrbuch der Plasmaphysik und Magnetohydrodynamik. Springer, Wien. [ Links ]
Carboni-Méndez, R.; Frutos-Alfaro, F. (2005) "Computer simulation of convective plasma cells", Journal of Atmospheric and Solar-Terrestrial Physics, 67(17-18): 1809-1814. [ Links ]
Dendy, R.(1995) Plasma Physics. Cambridge University Press, Cambridge. [ Links ]
Germaschewski, K.; Fox, W.; Ahmadi, N.; Wang, L.; Abbott, S.; Ruhl, H.; Bhattacharjee, A. (2013) "The plasma simulation code: A modern particlein-cell code with load-balancing and GPU support", http://arxiv.org/abs/1310.7866 [ Links ]
Hassani, S.(2000) Mathematical Physics. A Modern Introduction to Its Foundations. Springer, New York. [ Links ]
Hearn, A.C.(2004) REDUCE (User's and Contributed Packages Manual). Konrad-Zuse-Zentrum für Informationstechnik, Berlin. [ Links ]
Hockney, R.W.; Eastwood, J.W.(1988) Computer Simulation Using Particle. Adam Hilger, Bristol. [ Links ]
Hsu, J.J.Y.(2014) Visual and ComputationalPlasma Physics. World Scientific, Hackensack NJ. [ Links ]
Jackson, J.D.(1975) Classical Electrodynamics. Wiley, New York. [ Links ]
Jardin, S.(2010) Computational Methods inPlasma Physics. CRC Press, Boca Raton. [ Links ]
Kulikovskiy, A.G.; Lyubimov, G.A.(1965) Magnetohydrodynamics. Addison-Wesley, Palo Alto. [ Links ]
Pen, U.L.; Arras, P.; Wong, S.K. (2003) "A free, fast, simple, and efficient total variation diminishing magnetohydrodynamic code", The Astrophysical Journal Supplement Series149: 447-455. [ Links ]
Persson, P.O.; Strang, G.(2004) "A simple mesh generator in Matlab", SIAM Review 46(2): 329-345. [ Links ]
Schrüfer, E. (2004) "EXCALC: A System for Doing Calculations in the Calculus of Modern Differential Geometry", in A.C.Hearn (Ed.) REDUCE, (see reference). [ Links ]
Tajima, T. (2004) ComputationalPlasma Physics. Westview Press, Boulder. [ Links ]
Tajima, T.; Shibata, K.(2002) Plasma Astrophysics. Westview Press, Boulder. [ Links ]
http://unixhelp.ed.ac.uk/alphabetical/ [ Links ]
Received: May 02, 2015; Revised: August 28, 2015; Accepted: September 30, 2015













