#include <math.h>
#include "../../util/source/compiler.h"
#include "../../util/source/useful.h"
#include <stdio.h>
#include "flux_calc.h"
#include "../../nm/source/qd_power.h"
#include "../../mb_cns/source/cns_work_vector.h"
#include "../../mb_cns/source/ivdep.h"
Defines | |
| #define | QUICK_AND_DIRTY 1 |
| #define | SHOCK_RATIO 1.5 |
| #define | LINEAR 1 |
Functions | |
| int | rivp (struct flow_state QL[], struct flow_state QR[], struct flow_state QIF[], double WSL[], double WSR[], int first, int last) |
| Compute flux using a solution to the 1D Riemann problem. | |
| int | rivp_stage_3 (struct flow_state QL[], struct flow_state QR[], struct flow_state QLstar[], struct flow_state QRstar[], double WSL[], double WSR[], double geff[], struct flow_state QIF[], int first, int last) |
| Interpolate interface state from intermediate states. | |
Need to rework interpolation and remove the assumption that e = Cv.T
|
||||||||||||||||||||||||||||||||
|
Compute flux using a solution to the 1D Riemann problem. Given the initial LEFT and RIGHT states (QL and QR) either side of an interface, compute the solution to the one-dimensional Riemann problem when the interface is removed. This solution is returned as values of the flow quantities at the interface (QIF) and the velocities of the left and right waves.
* References ... * ---------- * * Most of this solver is now documented in * P. A. Jacobs "An approximate Riemann solver for hypervelocity * flows." AIAA Journal vol. 30(10) 1992. * * S.R. Chakravarthy "Development of upwind schemes for the * Euler equations" * NASA Contractor Report 4043, 1987. * * P. Colella "Glimm's method for gas dynamics" * SIAM J. Sci. Stat. Comput. vol.3, 76-110, 1982. * * T. A. Edwards (1988) * "The effect of exhaust plume/afterbody interaction on * installed scramjet performance." * NASA Technical Memorandum 101033 * * H.M. Glaz & A.B. Wardlaw "A high-order Godunov scheme for * steady supersonic gas dynamics" J. Comput. Phys. vol.58, * pp157-187, 1985. * * J.J. Gottlieb & C.P.T. Groth "Assessment of Riemann solvers * for unsteady one-dimensional inviscid flows of perfect gases" * J. Comput. Phys. vol.78(2), 437-458, 1988. * * B. van Leer "On the relation between the upwind-differencing * schemes of Godunov, Engquist-Osher & Roe" * SIAM J. Sci. Stat. Comput. vol.5(1), 1-20, 1984. * * B. van Leer, W-T. Lee & K.G. Powell "Sonic point capturing" * AIAA-89-1945-CP (AIAA 9th CFD conference), 1989. * * H.W. Liepmann & A.Roshko "Elements of Gas Dynamics" * Wiley, 1957. * * S. Osher & F. Solomon "Upwind difference schemes for * hyperbolic systems of conservation laws" * Mathematics of Computation, vol.38, 339-, 1982. * * P.L. Roe "Some contributions to the modelling of * discontinuous flows" Lectures in Applied Mathematics, * Vol. 22 (part 2), 163-193, 1985 * * E. F. Toro "A linearized Riemann solver for the time- * dependent Euler equations of gas-dynamics" * Proc. R. Soc. Lond. A Vol. 434, 683-693 (1991) * * M. Vinokur & Y. Liu (1988) * "Equilibrium gas flow computations II: An analysis of * numerical formulations of conservation laws." * AIAA Paper 88-0127 * |
|
||||||||||||||||||||||||||||||||||||||||||||
|
Interpolate interface state from intermediate states. Given the initial LEFT and RIGHT states (QL and QR) either side of an interface and the intermediate states, interpolate (or select) the interface state.
|
1.4.4