Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
INRT_PrintMaterialInput.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: write out user input for materials
26 !
27 ! Description: none.
28 !
29 ! Input: global = user input.
30 !
31 ! Output: to standard output.
32 !
33 ! Notes: none.
34 !
35 !******************************************************************************
36 !
37 ! $Id: INRT_PrintMaterialInput.F90,v 1.3 2008/12/06 08:44:31 mtcampbe Exp $
38 !
39 ! Copyright: (c) 2003 by the University of Illinois
40 !
41 !******************************************************************************
42 
43 SUBROUTINE inrt_printmaterialinput( global ) ! PUBLIC
44 
45  USE moddatatypes
46  USE modglobal, ONLY : t_global
47  USE moderror
48  USE modparameters
49  USE modmaterials, ONLY : t_material
50  IMPLICIT NONE
51 
52 ! ... parameters
53  TYPE(t_global), POINTER :: global
54 
55 ! ... loop variables
56  INTEGER :: imat
57 
58 ! ... local variables
59  TYPE(t_material), POINTER :: material
60 
61  CHARACTER(CHRLEN) :: rcsidentstring
62 
63 !******************************************************************************
64 
65  rcsidentstring = '$RCSfile: INRT_PrintMaterialInput.F90,v $ $Revision: 1.3 $'
66 
67  CALL registerfunction( global,'INRT_PrintMaterialInput',&
68  'INRT_PrintMaterialInput.F90' )
69 
70 ! begin -----------------------------------------------------------------------
71 
72  WRITE(stdout,*)
73  WRITE(stdout,1030) solver_name//' Materials:'
74  WRITE(stdout,1010) solver_name//' Number of materials defined', &
75  global%nMaterials
76  WRITE(stdout,*)
77 
78  DO imat = 1,global%nMaterials
79 
80  material => global%materials(imat)
81 
82  WRITE(stdout,1010) solver_name//' *** Material',imat
83  WRITE(stdout,1030) solver_name//' name = '//trim(material%name)
84  SELECT CASE (material%phase)
85  CASE (1)
86  WRITE(stdout,1030) solver_name//' phase = GAS'
87  CASE (2)
88  WRITE(stdout,1030) solver_name//' phase = LIQUID'
89  CASE (3)
90  WRITE(stdout,1030) solver_name//' phase = SOLID'
91  CASE default
92  WRITE(stdout,1030) solver_name//'***WARNING: no phase specified.'// &
93  ' Setting phase = GAS'
94  material%phase = 1
95  END SELECT
96  WRITE(stdout,1010) solver_name//' index ', material%index
97  WRITE(stdout,1021) solver_name//' mol.wt.', material%molw
98  WRITE(stdout,1021) solver_name//' density', material%dens
99  WRITE(stdout,1021) solver_name//' sp.heat', material%spht
100  WRITE(stdout,1021) solver_name//' surf.tension', material%surftens
101  WRITE(stdout,1021) solver_name//' boiling pt.', material%Tboil
102  WRITE(stdout,1021) solver_name//' melting pt.', material%Tmelt
103  WRITE(stdout,*)
104 
105  END DO ! iMat
106 
107 ! finalize --------------------------------------------------------------------
108 
109  CALL deregisterfunction( global )
110 
111 1010 FORMAT(a,' =',i3)
112 1020 FORMAT(a,' =',es15.5)
113 1021 FORMAT(a,' =',en15.5)
114 1030 FORMAT(a)
115 
116 END SUBROUTINE inrt_printmaterialinput
117 
118 !******************************************************************************
119 !
120 ! RCS Revision history:
121 !
122 ! $Log: INRT_PrintMaterialInput.F90,v $
123 ! Revision 1.3 2008/12/06 08:44:31 mtcampbe
124 ! Updated license.
125 !
126 ! Revision 1.2 2008/11/19 22:17:44 mtcampbe
127 ! Added Illinois Open Source License/Copyright
128 !
129 ! Revision 1.1 2004/12/01 21:56:29 fnajjar
130 ! Initial revision after changing case
131 !
132 ! Revision 1.5 2004/07/23 22:43:16 jferry
133 ! Integrated rocspecies into rocinteract
134 !
135 ! Revision 1.4 2004/04/15 16:04:21 jferry
136 ! minor formatting (removed trailing spaces)
137 !
138 ! Revision 1.3 2004/03/02 21:49:46 jferry
139 ! Added melting and boiling point to material definitions
140 !
141 ! Revision 1.2 2003/09/13 20:17:31 fnajjar
142 ! Added surface tension to Materials datastructure
143 !
144 ! Revision 1.1 2003/03/24 23:23:25 jferry
145 ! converted from libfloflu routine to rocinteract routine
146 !
147 !******************************************************************************
148 
149 
150 
151 
152 
153 
154 
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine inrt_printmaterialinput(global)
subroutine deregisterfunction(global)
Definition: ModError.F90:469
RT a() const
Definition: Line_2.h:140