Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PerfgasGasVars.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: compute gas variables for a thermally and calorically
26 ! perfect gas.
27 !
28 ! Description: none.
29 !
30 ! Input: inBeg = first value to update
31 ! inEnd = last value to update
32 ! indCp = indicates if cp varies over cells (=1) or is constant (=0)
33 ! indMol = indicates if the mol mass varies over cells (=1) or is
34 ! constant (=0)
35 ! refCp = reference value of specific heat at const. pressure
36 ! refGamma = reference value of the specific heat ratio
37 ! cv = conservative variables
38 !
39 ! Output: gv = gas variables (cp, molecular mass)
40 !
41 ! Notes: it is assumed that the values are constant and given by the
42 ! reference values.
43 !
44 !******************************************************************************
45 !
46 ! $Id: PerfgasGasVars.F90,v 1.3 2008/12/06 08:44:09 mtcampbe Exp $
47 !
48 ! Copyright: (c) 2001 by the University of Illinois
49 !
50 !******************************************************************************
51 
52 SUBROUTINE perfgasgasvars( inBeg,inEnd,indCp,indMol,refCp,refGamma,cv,gv )
53 
54  USE moddatatypes
55  USE modglobal, ONLY : t_global
56  USE modparameters
58  IMPLICIT NONE
59 
60 ! ... parameters
61  INTEGER :: inbeg, inend, indcp, indmol
62 
63  TYPE(t_global), POINTER :: global
64 
65  REAL(RFREAL) :: refcp, refgamma
66  REAL(RFREAL), POINTER :: cv(:,:), gv(:,:)
67 
68 ! ... loop variables
69  INTEGER :: ic
70 
71 ! ... local variables
72  REAL(RFREAL) :: rgas
73 
74 !******************************************************************************
75 
76  rgas = mixtperf_r_cpg( refcp,refgamma )
77 
78  DO ic=inbeg,inend
79  gv(gv_mixt_mol,ic*indmol) = mixtperf_m_r( rgas )
80  gv(gv_mixt_cp ,ic*indcp ) = refcp
81  ENDDO
82 
83 END SUBROUTINE perfgasgasvars
84 
85 !******************************************************************************
86 !
87 ! RCS Revision history:
88 !
89 ! $Log: PerfgasGasVars.F90,v $
90 ! Revision 1.3 2008/12/06 08:44:09 mtcampbe
91 ! Updated license.
92 !
93 ! Revision 1.2 2008/11/19 22:17:23 mtcampbe
94 ! Added Illinois Open Source License/Copyright
95 !
96 ! Revision 1.1 2004/12/01 16:50:00 haselbac
97 ! Initial revision after changing case
98 !
99 ! Revision 1.8 2003/11/20 16:40:35 mdbrandy
100 ! Backing out RocfluidMP changes from 11-17-03
101 !
102 ! Revision 1.5 2002/09/05 17:40:20 jblazek
103 ! Variable global moved into regions().
104 !
105 ! Revision 1.4 2002/07/05 23:20:46 jblazek
106 ! Corrected bug in perfgasDependentVars.F90; did some cosmetics.
107 !
108 ! Revision 1.3 2002/06/05 18:33:39 haselbac
109 ! Converted to use of mixtPerf routines
110 !
111 ! Revision 1.2 2002/01/23 03:51:24 jblazek
112 ! Added low-level time-stepping routines.
113 !
114 ! Revision 1.1 2002/01/10 00:02:06 jblazek
115 ! Added calculation of mixture properties.
116 !
117 !******************************************************************************
118 
119 
120 
121 
122 
123 
**********************************************************************Rocstar Simulation Suite Illinois Rocstar LLC All rights reserved ****Illinois Rocstar LLC IL **www illinoisrocstar com **sales illinoisrocstar com 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 **********************************************************************INTERFACE SUBROUTINE ic
real(rfreal) function mixtperf_r_cpg(Cp, G)
Definition: MixtPerf_R.F90:39
real(rfreal) function mixtperf_m_r(R)
Definition: MixtPerf_M.F90:39
subroutine perfgasgasvars(inBeg, inEnd, indCp, indMol, refCp, refGamma, cv, gv)