13 | | 1. The quantity has to be given a unique string identifier, e.g.'' 'u*v*'.'' This identifier must be different from the identifiers used for the {{{PALM}}} standard output (see list in description of parameter [../../d3par#data_output_pr data_output_pr]). To switch on output of this quantity, the user has to assign the string identifier to the parameter [../../userpar#data_output_pr_user data_output_pr_user], eg.:\\\ |
14 | | {{{data_output_pr_user = 'u*v*'}}}, \\\\ |
| 13 | 1. The quantity has to be given a unique string identifier, e.g.'' 'u*v*'.'' This identifier must be different from the identifiers used for the {{{PALM}}} standard output (see list in description of parameter [../../d3par#data_output_pr data_output_pr]). To switch on output of this quantity, the user has to assign the string identifier to the parameter [../../userpar#data_output_pr_user data_output_pr_user], eg.:\\ |
| 14 | |
| 15 | {{{data_output_pr_user = 'u*v*'}}}, \\\\ |
68 | | The pure string'' 'u2' ''switches on the output of instantaneous 3d volume data. Output of cross section data and time averaged data is switched on by additionally appending the strings'' '_xy', '_xz', '_yz', ''and/or'' '_av' ''(for a detailed explanation see parameter [../../d3par#data_output data_output]).\\\\ |
69 | | 2. In order to store the quantities' grid point data within PALM, a 3d data array has to be declared in module [../int#user_module user]: |
| 70 | The pure string'' 'u2' ''switches on the output of instantaneous 3d volume data. Output of cross section data and time averaged data is switched on by additionally appending the strings'' '_xy', '_xz', '_yz', ''and/or'' '_av' ''(for a detailed explanation see parameter [../../d3par#data_output data_output]).\\\\ |
| 71 | 2. In order to store the quantities' grid point data within PALM, a 3d data array has to be declared in module [../int#user_module user]: \\ |
| 72 | |
76 | | In case that output of time averaged data is requested, the array containing the sum has possibly to be read from the restart file (local filename [../../iofiles#BININ BININ) by executing the following code in [../int#user_init user_init]: \\ |
77 | | |
78 | | {{{IF ( initializing_actions == 'read_restart_data' ) THEN }}} \\ |
79 | | {{{ READ ( 13 ) field_char }}} \\ |
80 | | {{{ DO WHILE ( TRIM( field_char ) /= '*** end user ***' ) }}} \\ |
| 80 | In case that output of time averaged data is requested, the array containing the sum has possibly to be read from the restart file (local filename [../../iofiles#BININ BININ]) by executing the following code in [../int#user_init user_init]: |
| 81 | |
| 82 | {{{IF ( initializing_actions == 'read_restart_data' ) THEN }}} \\ |
| 83 | {{{ READ ( 13 ) field_char }}} \\ |
| 84 | {{{ DO WHILE ( TRIM( field_char ) /= '*** end user ***' ) }}} \\ |
82 | | {{{ SELECT CASE ( TRIM( field_char ) ) }}} \\ |
83 | | |
84 | | {{{ CASE ( 'u2_av' ) }}} \\ |
85 | | {{{ ALLOCATE( u2_av(nzb:nzt+1,nys-1:nyn+1,nxl-1:nxr+1) ) }}} \\ |
86 | | {{{ READ ( 13 ) u2_av }}} \\ |
87 | | |
88 | | {{{ CASE DEFAULT }}} \\ |
89 | | {{{ PRINT*, '+++ user_init: unknown variable named "', & }}} \\ |
90 | | {{{ TRIM( field_char ), '" found in' }}} \\ |
91 | | {{{ PRINT*, ' data from prior run on PE ', myid }}} \\ |
92 | | {{{ CALL local_stop }}} \\ |
93 | | |
94 | | {{{ END SELECT }}} \\ |
95 | | {{{ ENDDO }}} \\ |
96 | | {{{ ENDIF }}} \\ |
| 86 | {{{ SELECT CASE ( TRIM( field_char ) ) }}} \\ |
| 87 | |
| 88 | {{{ CASE ( 'u2_av' ) }}} \\ |
| 89 | {{{ ALLOCATE( u2_av(nzb:nzt+1,nys-1:nyn+1,nxl-1:nxr+1) ) }}} \\ |
| 90 | {{{ READ ( 13 ) u2_av }}} \\ |
| 91 | |
| 92 | {{{ CASE DEFAULT }}} \\ |
| 93 | {{{ PRINT*, '+++ user_init: unknown variable named "', & }}} |
| 94 | [[span( {{{TRIM( field_char ), '" found in' }}},style=color: black)]] \\ |
| 95 | {{{ PRINT*, ' data from prior run on PE ', myid }}} \\ |
| 96 | {{{ CALL local_stop }}} \\ |
| 97 | {{{ END SELECT }}} \\ |
| 98 | {{{ ENDDO }}} \\ |
| 99 | {{{ ENDIF }}} \\ |