source: palm/trunk/SOURCE/user_init_3d_model.f90 @ 4180

Last change on this file since 4180 was 4180, checked in by scharf, 5 years ago

removed comments in 'Former revisions' section that are older than 01.01.2019

  • Property svn:keywords set to Id
File size: 3.4 KB
Line 
1!> @file user_init_3d_model.f90
2!------------------------------------------------------------------------------!
3! This file is part of the PALM model system.
4!
5! PALM is free software: you can redistribute it and/or modify it under the
6! terms of the GNU General Public License as published by the Free Software
7! Foundation, either version 3 of the License, or (at your option) any later
8! version.
9!
10! PALM is distributed in the hope that it will be useful, but WITHOUT ANY
11! WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12! A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
13!
14! You should have received a copy of the GNU General Public License along with
15! PALM. If not, see <http://www.gnu.org/licenses/>.
16!
17! Copyright 1997-2019 Leibniz Universitaet Hannover
18!------------------------------------------------------------------------------!
19!
20! Current revisions:
21! -----------------
22!
23!
24! Former revisions:
25! -----------------
26! $Id: user_init_3d_model.f90 4180 2019-08-21 14:37:54Z scharf $
27! variables commented out to avoid compiler warnings about unused variables
28!
29! 3655 2019-01-07 16:51:22Z knoop
30! Corrected "Former revisions" section
31!
32!
33! Description:
34! ------------
35!> Allows the complete initialization of the 3d model.
36!>
37!> @attention The user is responsible to set at least all those quantities which
38!>            are normally set within init_3d_model!
39!------------------------------------------------------------------------------!
40 SUBROUTINE user_init_3d_model
41 
42
43    USE arrays_3d
44   
45    USE control_parameters
46   
47    USE indices
48   
49    USE kinds
50
51    USE surface_mod
52   
53    USE user
54
55    IMPLICIT NONE
56
57!    INTEGER(iwp) ::  l !< running index surface orientation
58!    INTEGER(iwp) ::  m !< running index surface elements
59
60!
61!-- Initialization of surface-related quantities.
62!-- The following example shows required initialization of surface quantitites
63!-- at default-type upward-facing surfaces. 
64!   DO  m = 1, surf_def_h(0)%ns
65!      surf_def_h(0)%ol(m)   = ...    ! Obukhov length
66!      surf_def_h(0)%us(m  ) = ...    ! friction velocity
67!      surf_def_h(0)%usws(m) = ...    ! vertical momentum flux, u-component
68!      surf_def_h(0)%vsws(m) = ...    ! vertical momentum flux, v-component
69!      surf_def_h(0)%z0(m)   = ...    ! roughness length for momentum
70!      IF ( .NOT. neutral )  THEN
71!         surf_def_h(0)%ts(m)   = ... ! scaling parameter
72!         surf_def_h(0)%shf(m)  = ... ! surface sensible heat flux
73!         surf_def_h(0)%z0h(m)  = ... ! roughness length for heat
74!      ENDIF
75!      IF ( humditiy )  THEN
76!         surf_def_h(0)%qs(m)   = ... ! scaling parameter
77!         surf_def_h(0)%qsws(m) = ... ! surface latent heat flux
78!         surf_def_h(0)%z0q(m)  = ... ! roughness length for moisture
79!      ENDIF
80!      IF ( passive_scalar )  THEN
81!         surf_def_h(0)%ss(m)   = ... ! scaling parameter
82!         surf_def_h(0)%ssws(m) = ... ! surface latent heat flux
83!      ENDIF
84!   ENDDO
85!
86!-- Same for natural and urban type surfaces
87!   DO  m = 1, surf_lsm_h%ns
88!      ...
89!   ENDDO
90!   DO  m = 1, surf_usm_h%ns
91!      ...
92!   ENDDO
93!
94!-- Also care for vertically aligned surfaces (default-, natural-, and
95!-- urban-type).
96!   DO  l = 0, 3
97!      DO  m = 1, surf_def_v(l)%ns
98!         ...
99!      ENDDO
100!      DO  m = 1, surf_lsm_v(l)%ns
101!         ...
102!      ENDDO
103!      DO  m = 1, surf_usm_v(l)%ns
104!         ...
105!      ENDDO
106!   ENDDO
107!
108!
109!-- In the following, initialize 3D quantities, e.g. u, v, w, pt, etc..
110
111 END SUBROUTINE user_init_3d_model
112
Note: See TracBrowser for help on using the repository browser.