Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MixtPerf_T.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 temperature for perfect
26 ! gases.
27 !
28 ! Description: None.
29 !
30 ! Notes: None.
31 !
32 ! ******************************************************************************
33 !
34 ! $Id: MixtPerf_T.F90,v 1.6 2008/12/06 08:44:09 mtcampbe Exp $
35 !
36 ! Copyright: (c) 2002-2006 by the University of Illinois
37 !
38 ! ******************************************************************************
39 
40 FUNCTION mixtperf_t_cgr(C,G,R)
41 
42  USE moddatatypes
43 
44  IMPLICIT NONE
45 
46  REAL(RFREAL), INTENT(IN) :: c,g,r
47  REAL(RFREAL) :: mixtperf_t_cgr
48 
49  mixtperf_t_cgr = c*c/(g*r)
50 
51 END FUNCTION mixtperf_t_cgr
52 
53 !------------------------------------------------------------------------------
54 
55 FUNCTION mixtperf_t_cphovm2(Cp,Ho,Vm2)
56 
57  USE moddatatypes
58 
59  IMPLICIT NONE
60 
61  REAL(RFREAL), INTENT(IN) :: cp,ho,vm2
62  REAL(RFREAL) :: mixtperf_t_cphovm2
63 
64  mixtperf_t_cphovm2 = (ho-0.5_rfreal*vm2)/cp
65 
66 END FUNCTION mixtperf_t_cphovm2
67 
68 !------------------------------------------------------------------------------
69 
70 FUNCTION mixtperf_t_cveovm2(Cv,Eo,Vm2)
71 
72  USE moddatatypes
73 
74  IMPLICIT NONE
75 
76  REAL(RFREAL), INTENT(IN) :: cv,eo,vm2
77  REAL(RFREAL) :: mixtperf_t_cveovm2
78 
79  mixtperf_t_cveovm2 = (eo-0.5_rfreal*vm2)/cv
80 
81 END FUNCTION mixtperf_t_cveovm2
82 
83 ! ------------------------------------------------------------------------------
84 
85 FUNCTION mixtperf_t_dpr(D,P,R)
86 
87  USE moddatatypes
88 
89  IMPLICIT NONE
90 
91  REAL(RFREAL), INTENT(IN) :: d,p,r
92  REAL(RFREAL) :: mixtperf_t_dpr
93 
94  mixtperf_t_dpr = p/(d*r)
95 
96 END FUNCTION mixtperf_t_dpr
97 
98 ! -----------------------------------------------------------------------------
99 
100 FUNCTION mixtperf_t_gmato(G,Ma,To)
101 
102  USE moddatatypes
103 
104  IMPLICIT NONE
105 
106  REAL(RFREAL), INTENT(IN) :: g,ma,to
107  REAL(RFREAL) :: mixtperf_t_gmato
108 
109  mixtperf_t_gmato = to/(1.0_rfreal + 0.5_rfreal*(g - 1.0_rfreal)*ma*ma)
110 
111 END FUNCTION mixtperf_t_gmato
112 
113 ! -----------------------------------------------------------------------------
114 
115 FUNCTION mixtperf_to_cptuvw(Cp,T,U,V,W)
116 
117  USE moddatatypes
118 
119  IMPLICIT NONE
120 
121  REAL(RFREAL), INTENT(IN) :: cp,t,u,v,w
122  REAL(RFREAL) :: mixtperf_to_cptuvw
123 
124  mixtperf_to_cptuvw = t + 0.5_rfreal*(u*u + v*v + w*w)/cp
125 
126 END FUNCTION mixtperf_to_cptuvw
127 
128 !******************************************************************************
129 !
130 ! RCS Revision history:
131 !
132 ! $Log: MixtPerf_T.F90,v $
133 ! Revision 1.6 2008/12/06 08:44:09 mtcampbe
134 ! Updated license.
135 !
136 ! Revision 1.5 2008/11/19 22:17:22 mtcampbe
137 ! Added Illinois Open Source License/Copyright
138 !
139 ! Revision 1.4 2006/05/01 20:58:15 haselbac
140 ! Added MixtPerf_T_CpHoVm2 function
141 !
142 ! Revision 1.3 2006/03/26 20:21:17 haselbac
143 ! Added fuction
144 !
145 ! Revision 1.2 2005/07/14 21:39:56 haselbac
146 ! Added MixtPerf_To_CpTUVW
147 !
148 ! Revision 1.1 2004/12/01 16:49:30 haselbac
149 ! Initial revision after changing case
150 !
151 ! Revision 1.3 2002/06/10 21:16:27 haselbac
152 ! Added MixtPerf_T_GMaTo function
153 !
154 ! Revision 1.2 2002/06/05 18:31:14 haselbac
155 ! Added function mixtPerf_T_DPR
156 !
157 ! Revision 1.1 2002/05/04 16:16:52 haselbac
158 ! Initial revision
159 !
160 ! ******************************************************************************
161 
162 
163 
164 
165 
166 
unsigned char r() const
Definition: Color.h:68
const NT & d
real(rfreal) function mixtperf_t_cgr(C, G, R)
Definition: MixtPerf_T.F90:40
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_t_cphovm2(Cp, Ho, Vm2)
Definition: MixtPerf_T.F90:55
real(rfreal) function mixtperf_t_dpr(D, P, R)
Definition: MixtPerf_T.F90:85
real(rfreal) function mixtperf_t_gmato(G, Ma, To)
Definition: MixtPerf_T.F90:100
real(rfreal) function mixtperf_t_cveovm2(Cv, Eo, Vm2)
Definition: MixtPerf_T.F90:70
real(rfreal) function mixtperf_to_cptuvw(Cp, T, U, V, W)
Definition: MixtPerf_T.F90:115
unsigned char g() const
Definition: Color.h:69