Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MixtPerf_P.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 pressure for perfect gases.
26 !
27 ! Description: None.
28 !
29 ! Notes: None.
30 !
31 !******************************************************************************
32 !
33 ! $Id: MixtPerf_P.F90,v 1.3 2008/12/06 08:44:09 mtcampbe Exp $
34 !
35 ! Copyright: (c) 2002 by the University of Illinois
36 !
37 !******************************************************************************
38 
39 FUNCTION mixtperf_p_deogvm2(D,Eo,G,Vm2)
40 
41  USE moddatatypes
42 
43  IMPLICIT NONE
44 
45  REAL(RFREAL), INTENT(IN) :: d,eo,g,vm2
46  REAL(RFREAL) :: mixtperf_p_deogvm2
47 
48  mixtperf_p_deogvm2 = (g - 1.0_rfreal)*d*(eo - 0.5_rfreal*vm2)
49 
50 END FUNCTION mixtperf_p_deogvm2
51 
52 ! -----------------------------------------------------------------------------
53 
54 FUNCTION mixtperf_p_drt(D,R,T)
55 
56  USE moddatatypes
57 
58  IMPLICIT NONE
59 
60  REAL(RFREAL), INTENT(IN) :: d,r,t
61  REAL(RFREAL) :: mixtperf_p_drt
62 
63  mixtperf_p_drt = d*r*t
64 
65 END FUNCTION mixtperf_p_drt
66 
67 ! -----------------------------------------------------------------------------
68 
69 FUNCTION mixtperf_p_gmapo(G,Ma,Po)
70 
71  USE moddatatypes
72 
73  IMPLICIT NONE
74 
75  REAL(RFREAL), INTENT(IN) :: g,ma,po
76  REAL(RFREAL) :: mixtperf_p_gmapo
77 
78  mixtperf_p_gmapo = po/ &
79  ((1.0_rfreal + 0.5_rfreal*(g - 1.0_rfreal)*ma*ma)**(g/(g - 1.0_rfreal)))
80 
81 END FUNCTION mixtperf_p_gmapo
82 
83 ! -----------------------------------------------------------------------------
84 
85 FUNCTION mixtperf_p_ddogpo(D,Do,G,Po)
86 
87  USE moddatatypes
88 
89  IMPLICIT NONE
90 
91  REAL(RFREAL), INTENT(IN) :: d,do,g,po
92  REAL(RFREAL) :: mixtperf_p_ddogpo
93 
94  mixtperf_p_ddogpo = po*(d/do)**g
95 
96 END FUNCTION mixtperf_p_ddogpo
97 
98 ! -----------------------------------------------------------------------------
99 
100 FUNCTION mixtperf_p_gpotto(G,Po,T,To)
101 
102  USE moddatatypes
103 
104  IMPLICIT NONE
105 
106  REAL(RFREAL), INTENT(IN) :: g,po,t,to
107  REAL(RFREAL) :: mixtperf_p_gpotto
108 
109  mixtperf_p_gpotto = po*(t/to)**(g/(g - 1.0_rfreal))
110 
111 END FUNCTION mixtperf_p_gpotto
112 
113 ! -----------------------------------------------------------------------------
114 
115 FUNCTION mixtperf_po_gptto(G,P,T,To)
116 
117  USE moddatatypes
118 
119  IMPLICIT NONE
120 
121  REAL(RFREAL), INTENT(IN) :: g,p,t,to
122  REAL(RFREAL) :: mixtperf_po_gptto
123 
124  mixtperf_po_gptto = p*(to/t)**(g/(g - 1.0_rfreal))
125 
126 END FUNCTION mixtperf_po_gptto
127 
128 ! -----------------------------------------------------------------------------
129 
130 FUNCTION mixtperf_po_cgpuvw(C,G,P,U,V,W)
131 
132  USE moddatatypes
133 
134  IMPLICIT NONE
135 
136  REAL(RFREAL), INTENT(IN) :: c,g,p,u,v,w
137  REAL(RFREAL) :: mixtperf_po_cgpuvw
138 
139  mixtperf_po_cgpuvw = &
140  p*(1.0_rfreal + 0.5_rfreal*(g - 1.0_rfreal)*(u*u+v*v+w*w)/(c*c))**(g/(g - 1.0_rfreal))
141 
142 END FUNCTION mixtperf_po_cgpuvw
143 
144 !******************************************************************************
145 !
146 ! RCS Revision history:
147 !
148 ! $Log: MixtPerf_P.F90,v $
149 ! Revision 1.3 2008/12/06 08:44:09 mtcampbe
150 ! Updated license.
151 !
152 ! Revision 1.2 2008/11/19 22:17:22 mtcampbe
153 ! Added Illinois Open Source License/Copyright
154 !
155 ! Revision 1.1 2004/12/01 16:49:18 haselbac
156 ! Initial revision after changing case
157 !
158 ! Revision 1.7 2003/09/16 01:24:08 haselbac
159 ! Added function MixtPerf_P_DDoGPo
160 !
161 ! Revision 1.6 2003/06/04 21:54:21 haselbac
162 ! Added MixtPerf_P_DRT
163 !
164 ! Revision 1.5 2002/07/05 23:20:46 jblazek
165 ! Corrected bug in perfgasDependentVars.F90; did some cosmetics.
166 !
167 ! Revision 1.4 2002/06/10 21:15:53 haselbac
168 ! Added MixtPerf_P_GMaPo function
169 !
170 ! Revision 1.3 2002/06/05 18:31:38 haselbac
171 ! Added function mixtPerf_P_DEoGVm2
172 !
173 ! Revision 1.2 2002/05/28 13:45:09 haselbac
174 ! Added new functions
175 !
176 ! Revision 1.1 2002/05/04 16:16:52 haselbac
177 ! Initial revision
178 !
179 !******************************************************************************
180 
181 
182 
183 
184 
185 
unsigned char r() const
Definition: Color.h:68
real(rfreal) function mixtperf_p_deogvm2(D, Eo, G, Vm2)
Definition: MixtPerf_P.F90:39
const NT & d
real(rfreal) function mixtperf_po_cgpuvw(C, G, P, U, V, W)
Definition: MixtPerf_P.F90:130
real(rfreal) function mixtperf_p_ddogpo(D, Do, G, Po)
Definition: MixtPerf_P.F90:85
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_po_gptto(G, P, T, To)
Definition: MixtPerf_P.F90:115
real(rfreal) function mixtperf_p_gpotto(G, Po, T, To)
Definition: MixtPerf_P.F90:100
real(rfreal) function mixtperf_p_drt(D, R, T)
Definition: MixtPerf_P.F90:54
unsigned char g() const
Definition: Color.h:69
real(rfreal) function mixtperf_p_gmapo(G, Ma, Po)
Definition: MixtPerf_P.F90:69