Development of an object-oriented compressible viscous MHD code

K. Srinivasan, R. K. Agarwal, P. R. Adhikari, P. Deb

Research output: Contribution to conferencePaperpeer-review

Abstract

The focus of this paper is on the techniques for converting a Fortran 77 2-D MHD code into an object-oriented code using Sun's Java. The MHD code solves the 2-D compressible viscous magnetohydrodynamics equations with a bitemperature model and a variable conductivity model. The equations are solved in generalized coordinates using a modified four-stage Runge-Kutta time intregation scheme with a second order accurate spatial discretization. A symmetric Davis-Yee Total Variation Diminishing (TVD) flux limiter is employed to dampen the oscillations in the shock regions. The Fortran code is converted into the object-oriented Java code by employing primitive data type. The conversion is accomplished by carefully designing the classes and choosing the exact data type to suit the application. The static methods are developed to reduce the memory requirements. Both the Fortran and Java code are employed to compute the effect of magnetic field on a weakly ionized gas in a scramjet inlet moving at hypersonic speed. Both the Fortran and Java code produce identical results as should be the case.

Original languageEnglish
DOIs
StatePublished - 2001
Event32nd AIAA Plasmadynamics and Lasers Conference 2001 - Anaheim, CA, United States
Duration: Jun 11 2001Jun 14 2001

Conference

Conference32nd AIAA Plasmadynamics and Lasers Conference 2001
Country/TerritoryUnited States
CityAnaheim, CA
Period06/11/0106/14/01

Fingerprint

Dive into the research topics of 'Development of an object-oriented compressible viscous MHD code'. Together they form a unique fingerprint.

Cite this