Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MixtPerf_C.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 speed of sound for perfect
26 ! gases.
27 !
28 ! Description: None.
29 !
30 ! Notes: None.
31 !
32 !******************************************************************************
33 !
34 ! $Id: MixtPerf_C.F90,v 1.3 2008/12/06 08:44:09 mtcampbe Exp $
35 !
36 ! Copyright: (c) 2002 by the University of Illinois
37 !
38 !******************************************************************************
39 
40 FUNCTION mixtperf_c_co2guvw(Co2,G,U,V,W)
41 
42  USE moddatatypes
43 
44  IMPLICIT NONE
45 
46  REAL(RFREAL), INTENT(IN) :: co2,g,u,v,w
47  REAL(RFREAL) :: mixtperf_c_co2guvw
48 
50  sqrt(co2 - 0.5_rfreal*(g - 1.0_rfreal)*(u*u + v*v + w*w))
51 
52 END FUNCTION mixtperf_c_co2guvw
53 
54 ! -----------------------------------------------------------------------------
55 
56 FUNCTION mixtperf_c_dgp(D,G,P)
57 
58  USE moddatatypes
59 
60  IMPLICIT NONE
61 
62  REAL(RFREAL), INTENT(IN) :: d,g,p
63  REAL(RFREAL) :: mixtperf_c_dgp
64 
65  mixtperf_c_dgp = sqrt(g*p/d)
66 
67 END FUNCTION mixtperf_c_dgp
68 
69 ! -----------------------------------------------------------------------------
70 
71 FUNCTION mixtperf_c_ghovm2(G,Ho,Vm2)
72 
73  USE moddatatypes
74 
75  IMPLICIT NONE
76 
77  REAL(RFREAL), INTENT(IN) :: g,ho,vm2
78  REAL(RFREAL) :: mixtperf_c_ghovm2
79 
80  mixtperf_c_ghovm2 = sqrt((g - 1.0_rfreal)*(ho - 0.5_rfreal*vm2))
81 
82 END FUNCTION mixtperf_c_ghovm2
83 
84 ! -----------------------------------------------------------------------------
85 
86 FUNCTION mixtperf_c_grt(G,R,T)
87 
88  USE moddatatypes
89 
90  IMPLICIT NONE
91 
92  REAL(RFREAL), INTENT(IN) :: g,r,t
93  REAL(RFREAL) :: mixtperf_c_grt
94 
95  mixtperf_c_grt = sqrt(g*r*t)
96 
97 END FUNCTION mixtperf_c_grt
98 
99 ! -----------------------------------------------------------------------------
100 
101 FUNCTION mixtperf_c2_grt(G,R,T)
102 
103  USE moddatatypes
104 
105  IMPLICIT NONE
106 
107  REAL(RFREAL), INTENT(IN) :: g,r,t
108  REAL(RFREAL) :: mixtperf_c2_grt
109 
110  mixtperf_c2_grt = g*r*t
111 
112 END FUNCTION mixtperf_c2_grt
113 
114 ! -----------------------------------------------------------------------------
115 
116 FUNCTION mixtperf_co2_cguvw(C,G,U,V,W)
117 
118  USE moddatatypes
119 
120  IMPLICIT NONE
121 
122  REAL(RFREAL), INTENT(IN) :: c,g,u,v,w
123  REAL(RFREAL) :: mixtperf_co2_cguvw
124 
125  mixtperf_co2_cguvw = c*c + 0.5_rfreal*(g - 1.0_rfreal)*(u*u + v*v + w*w)
126 
127 END FUNCTION mixtperf_co2_cguvw
128 
129 !******************************************************************************
130 !
131 ! RCS Revision history:
132 !
133 ! $Log: MixtPerf_C.F90,v $
134 ! Revision 1.3 2008/12/06 08:44:09 mtcampbe
135 ! Updated license.
136 !
137 ! Revision 1.2 2008/11/19 22:17:22 mtcampbe
138 ! Added Illinois Open Source License/Copyright
139 !
140 ! Revision 1.1 2004/12/01 16:48:47 haselbac
141 ! Initial revision after changing case
142 !
143 ! Revision 1.2 2002/05/28 13:44:44 haselbac
144 ! Added new functions
145 !
146 ! Revision 1.1 2002/05/04 16:16:52 haselbac
147 ! Initial revision
148 !
149 !******************************************************************************
150 
151 
152 
153 
154 
155 
unsigned char r() const
Definition: Color.h:68
const NT & d
real(rfreal) function mixtperf_c_dgp(D, G, P)
Definition: MixtPerf_C.F90:56
double sqrt(double d)
Definition: double.h:73
real(rfreal) function mixtperf_c_ghovm2(G, Ho, Vm2)
Definition: MixtPerf_C.F90:71
RT c() const
Definition: Line_2.h:150
*********************************************************************Illinois Open Source License ****University of Illinois NCSA **Open Source License University of Illinois All rights reserved ****Developed free of to any person **obtaining a copy of this software and associated documentation to deal with the Software without including without limitation the rights to and or **sell copies of the and to permit persons to whom the **Software is furnished to do subject to the following this list of conditions and the following disclaimers ****Redistributions in binary form must reproduce the above **copyright this list of conditions and the following **disclaimers in the documentation and or other materials **provided with the distribution ****Neither the names of the Center for Simulation of Advanced the University of nor the names of its **contributors may be used to endorse or promote products derived **from this Software without specific prior written permission ****THE SOFTWARE IS PROVIDED AS WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **ARISING OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE v
Definition: roccomf90.h:20
real(rfreal) function mixtperf_c_co2guvw(Co2, G, U, V, W)
Definition: MixtPerf_C.F90:40
real(rfreal) function mixtperf_c2_grt(G, R, T)
Definition: MixtPerf_C.F90:101
real(rfreal) function mixtperf_c_grt(G, R, T)
Definition: MixtPerf_C.F90:86
real(rfreal) function mixtperf_co2_cguvw(C, G, U, V, W)
Definition: MixtPerf_C.F90:116
unsigned char g() const
Definition: Color.h:69