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 language | English |
---|---|
DOIs | |
State | Published - 2001 |
Event | 32nd AIAA Plasmadynamics and Lasers Conference 2001 - Anaheim, CA, United States Duration: Jun 11 2001 → Jun 14 2001 |
Conference
Conference | 32nd AIAA Plasmadynamics and Lasers Conference 2001 |
---|---|
Country/Territory | United States |
City | Anaheim, CA |
Period | 06/11/01 → 06/14/01 |