Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MixtPerf_Vm.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 velocity magnitude for perfect gases.
26 !
27 ! Description: None.
28 !
29 ! Notes: None.
30 !
31 !******************************************************************************
32 !
33 ! $Id: MixtPerf_Vm.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_vm_c2co2g(C2,Co2,G)
40 
41  USE moddatatypes
42 
43  IMPLICIT NONE
44 
45  REAL(RFREAL), INTENT(IN) :: c2,co2,g
46  REAL(RFREAL) :: mixtperf_vm_c2co2g
47 
48  IF ( co2 > c2 ) THEN
49  mixtperf_vm_c2co2g = sqrt(2.0_rfreal/(g - 1.0_rfreal)*(co2 - c2))
50  ELSE
51  mixtperf_vm_c2co2g = 0.0_rfreal
52  END IF ! Co2
53 
54 END FUNCTION mixtperf_vm_c2co2g
55 
56 !******************************************************************************
57 !
58 ! RCS Revision history:
59 !
60 ! $Log: MixtPerf_Vm.F90,v $
61 ! Revision 1.3 2008/12/06 08:44:09 mtcampbe
62 ! Updated license.
63 !
64 ! Revision 1.2 2008/11/19 22:17:22 mtcampbe
65 ! Added Illinois Open Source License/Copyright
66 !
67 ! Revision 1.1 2004/12/01 16:49:36 haselbac
68 ! Initial revision after changing case
69 !
70 ! Revision 1.3 2003/12/04 03:23:00 haselbac
71 ! Added check against taking SQRT of negative number
72 !
73 ! Revision 1.2 2002/05/28 13:46:10 haselbac
74 ! Corrected name of MixtPerf_Vm_C2Co2
75 !
76 ! Revision 1.1 2002/05/04 16:16:52 haselbac
77 ! Initial revision
78 !
79 !******************************************************************************
80 
81 
82 
83 
84 
85 
double sqrt(double d)
Definition: double.h:73
real(rfreal) function mixtperf_vm_c2co2g(C2, Co2, G)
Definition: MixtPerf_Vm.F90:39
unsigned char g() const
Definition: Color.h:69