Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MixtPerf_D.F90
Go to the documentation of this file.
1 ! *********************************************************************
2 ! * Rocstar Simulation Suite *
3 ! * Copyright@2015, Illinois Rocstar LLC. All rights reserved. *
4 ! * *
5 ! * Illinois Rocstar LLC *
6 ! * Champaign, IL *
7 ! * www.illinoisrocstar.com *
8 ! * sales@illinoisrocstar.com *
9 ! * *
10 ! * License: See LICENSE file in top level of distribution package or *
11 ! * http://opensource.org/licenses/NCSA *
12 ! *********************************************************************
13 ! *********************************************************************
14 ! * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, *
15 ! * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES *
16 ! * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND *
17 ! * NONINFRINGEMENT. IN NO EVENT SHALL THE CONTRIBUTORS OR *
18 ! * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
19 ! * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, *
20 ! * Arising FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE *
21 ! * USE OR OTHER DEALINGS WITH THE SOFTWARE. *
22 ! *********************************************************************
23 ! ******************************************************************************
24 !
25 ! Purpose: Collect relations for static and total density for perfect gases.
26 !
27 ! Description: None.
28 !
29 ! Notes: None.
30 !
31 ! ******************************************************************************
32 !
33 ! $Id: MixtPerf_D.F90,v 1.4 2008/12/06 08:44:09 mtcampbe Exp $
34 !
35 ! Copyright: (c) 2002-2005 by the University of Illinois
36 !
37 ! ******************************************************************************
38 
39 
40 FUNCTION mixtperf_d_cgp(C,G,P)
41 
42  USE moddatatypes
43 
44  IMPLICIT NONE
45 
46  REAL(RFREAL), INTENT(IN) :: c,g,p
47  REAL(RFREAL) :: mixtperf_d_cgp
48 
49  mixtperf_d_cgp = g*p/(c*c)
50 
51 END FUNCTION mixtperf_d_cgp
52 
53 ! -----------------------------------------------------------------------------
54 
55 FUNCTION mixtperf_d_dogma(Do,G,Ma)
56 
57  USE moddatatypes
58 
59  IMPLICIT NONE
60 
61  REAL(RFREAL), INTENT(IN) :: do,g,ma
62  REAL(RFREAL) :: mixtperf_d_dogma
63 
64  mixtperf_d_dogma = do/ &
65  (1.0_rfreal + 0.5_rfreal*(g-1.0_rfreal)*ma*ma)**(1.0_rfreal/(g-1.0_rfreal))
66 
67 END FUNCTION mixtperf_d_dogma
68 
69 ! -----------------------------------------------------------------------------
70 
71 FUNCTION mixtperf_d_prt(P,R,T)
72 
73  USE moddatatypes
74 
75  IMPLICIT NONE
76 
77  REAL(RFREAL), INTENT(IN) :: p,r,t
78  REAL(RFREAL) :: mixtperf_d_prt
79 
80  mixtperf_d_prt = p/(r*t)
81 
82 END FUNCTION mixtperf_d_prt
83 
84 ! ******************************************************************************
85 !
86 ! RCS Revision history:
87 !
88 ! $Log: MixtPerf_D.F90,v $
89 ! Revision 1.4 2008/12/06 08:44:09 mtcampbe
90 ! Updated license.
91 !
92 ! Revision 1.3 2008/11/19 22:17:22 mtcampbe
93 ! Added Illinois Open Source License/Copyright
94 !
95 ! Revision 1.2 2005/03/15 20:43:17 haselbac
96 ! Added MixtPerf_D_CGP
97 !
98 ! Revision 1.1 2004/12/01 16:48:50 haselbac
99 ! Initial revision after changing case
100 !
101 ! Revision 1.2 2003/09/16 01:23:45 haselbac
102 ! Added function MixtPerf_D_DoGMa
103 !
104 ! Revision 1.1 2002/05/04 16:16:52 haselbac
105 ! Initial revision
106 !
107 ! ******************************************************************************
108 
109 
110 
111 
112 
113 
unsigned char r() const
Definition: Color.h:68
real(rfreal) function mixtperf_d_prt(P, R, T)
Definition: MixtPerf_D.F90:71
RT c() const
Definition: Line_2.h:150
real(rfreal) function mixtperf_d_cgp(C, G, P)
Definition: MixtPerf_D.F90:40
real(rfreal) function mixtperf_d_dogma(Do, G, Ma)
Definition: MixtPerf_D.F90:55
unsigned char g() const
Definition: Color.h:69