Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MixtGasLiq_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 mixture speed of sound for gas-liquid model.
26 !
27 ! Description: None.
28 !
29 ! Notes: None.
30 !
31 ! ******************************************************************************
32 !
33 ! $Id: MixtGasLiq_C.F90,v 1.3 2008/12/06 08:44:09 mtcampbe Exp $
34 !
35 ! Copyright: (c) 2006 by the University of Illinois
36 !
37 ! ******************************************************************************
38 
39 FUNCTION mixtgasliq_c(Cvm,D,P,Dl,Dv,Dg,VFl,VFv,VFg,Cl2,Cv2,Cg2,Bl2,Bv2,Bg2)
40 
41  USE moddatatypes
42 
43  IMPLICIT NONE
44 
45  REAL(RFREAL), INTENT(IN) :: bg2,bl2,bv2,cl2,cv2,cg2,cvm,d,dg,dl,dv,p,vfg, &
46  vfl,vfv
47  REAL(RFREAL) :: mixtgasliq_c
48 
49  REAL(RFREAL) :: denom,numer,term1,term2,term3
50 
51  term1 = bl2*vfl*dv*cv2*dg*cg2
52  term2 = bv2*vfv*dl*cl2*dg*cg2
53  term3 = bg2*vfg*dl*cl2*dv*cv2
54 
55  numer = d*cvm*dl*cl2*dv*cv2*dg*cg2 + p*(term1 + term2 + term3)
56  denom = d*d*cvm*(vfl*dv*cv2*dg*cg2 + vfv*dl*cl2*dg*cg2 + vfg*dl*cl2*dv*cv2)
57 
58  mixtgasliq_c = sqrt(numer/denom)
59 
60 END FUNCTION mixtgasliq_c
61 
62 ! ******************************************************************************
63 !
64 ! RCS Revision history:
65 !
66 ! $Log: MixtGasLiq_C.F90,v $
67 ! Revision 1.3 2008/12/06 08:44:09 mtcampbe
68 ! Updated license.
69 !
70 ! Revision 1.2 2008/11/19 22:17:22 mtcampbe
71 ! Added Illinois Open Source License/Copyright
72 !
73 ! Revision 1.1 2006/03/26 20:20:46 haselbac
74 ! Initial revision
75 !
76 ! ******************************************************************************
77 
78 
79 
80 
81 
82 
const NT & d
double sqrt(double d)
Definition: double.h:73
real(rfreal) function mixtgasliq_c(Cvm, D, P, Dl, Dv, Dg, VFl, VFv, VFg, Cl2, Cv2, Cg2, Bl2, Bv2, Bg2)
CGAL_BEGIN_NAMESPACE void const NT NT NT NT & denom