Difference between revisions of "The context lmdz physics.xml Input File"

From Planets
Jump to: navigation, search
 
Line 169: Line 169:
  
 
[[Category:Inputs]]
 
[[Category:Inputs]]
 
[[Category:Generic-Model]]
 
[[Category:Mars-Model]]
 
[[Category:Venus-Model]]
 
[[Category:Titan-Model]]
 

Latest revision as of 18:07, 20 March 2023

  1 <context id="LMDZ">
  2 
  3     <!-- Definition of a calendar is done in code via wxios_set_cal -->
  4 
  5     <!-- Definition of domains and groups of domains -->
  6     <domain_definition>
  7         <domain_group id="dom_glo" data_dim="1">
  8           <domain id="dom_glo" />
  9         </domain_group>
 10 
 11     </domain_definition>
 12 
 13     <domain_definition>
 14         <domain id="dom_64_48" type="rectilinear" ni_glo="64" nj_glo="48"   >
 15           <generate_rectilinear_domain/>
 16           <interpolate_domain order="1"/>
 17         </domain>
 18 
 19         <domain id="dom_96_95" type="rectilinear"  ni_glo="96" nj_glo="95"  >
 20           <generate_rectilinear_domain/>
 21           <interpolate_domain order="1"/>
 22         </domain>
 23 
 24         <domain id="dom_144_142" type="rectilinear" ni_glo="144" nj_glo="142"   >
 25           <generate_rectilinear_domain/>
 26           <interpolate_domain order="1"/>
 27         </domain>
 28 
 29         <domain id="dom_512_360" type="rectilinear" ni_glo="512" nj_glo="360"   >
 30           <generate_rectilinear_domain/>
 31           <interpolate_domain order="1"/>
 32         </domain>
 33 
 34         <domain id="dom_720_360" type="rectilinear" ni_glo="720" nj_glo="360" >
 35           <generate_rectilinear_domain/>
 36           <interpolate_domain order="1"/>
 37         </domain>
 38 
 39         <domain id="dom_128_96" type="rectilinear" ni_glo="128" nj_glo="96" >
 40           <generate_rectilinear_domain/>
 41           <interpolate_domain order="1"/>
 42         </domain>
 43 
 44         <domain id="dom_256_192" type="rectilinear" ni_glo="256" nj_glo="192" >
 45           <generate_rectilinear_domain/>
 46           <interpolate_domain order="1"/>
 47         </domain>
 48 
 49         <domain id="dom_out" domain_ref="dom_720_360"/>
 50     </domain_definition>
 51     <!-- <domain_definition src="./domain_def.xml"/> -->
 52 
 53     <!-- Definition of vertical axes 
 54                            NB: these must be defined and set in code via
 55          xios_output_mod -->
 56     <axis_definition>
 57         <axis id="presnivs" 
 58               standard_name="Pseudo-pressure of model vertical levels" 
 59               unit="Pa">
 60         </axis>
 61         <axis id="altitude" 
 62               standard_name="Pseudo-altitude of model vertical levels" 
 63               unit="km">
 64         </axis>
 65     </axis_definition>
 66 
 67     <scalar_definition>
 68            <scalar id="scalar" />
 69     </scalar_definition>
 70 
 71     <grid_definition>
 72         <!-- toggle axis id below to change output vertical axis -->                                  
 73         <grid id="grid_3D">                                                                           
 74             <domain domain_ref="dom_glo" />                                                           
 75             <axis axis_ref="altitude" />                                                              
 76         </grid>                                                                                       
 77         <grid id="grid_2D">                                                                           
 78             <domain domain_ref="dom_glo" />                                                           
 79         </grid>                                                                                       
 80                                                                                                       
 81         <!-- grid for interpolated lon-lat outputs -->                                                
 82         <!-- to output scalars -->                                                                    
 83         <grid id="scalarpoint" >                                                                      
 84             <scalar scalar_ref="scalar" />                                                            
 85         </grid>                                                                                       
 86         <!-- output grids -->                                                                         
 87         <grid id="grid_3D_out">                                                                       
 88             <domain domain_ref="dom_out" />                                                           
 89             <axis axis_ref="altitude" />                                                              
 90         </grid>                                                                                       
 91         <grid id="grid_2D_out">                                                                       
 92             <domain domain_ref="dom_out" />                                                           
 93         </grid>                                                                                       
 94     </grid_definition>                                                                                
 95                                                                                                       
 96     <!-- Definition of model variables -->                                                            
 97     <field_definition src="./field_def_physics.xml" />                                                
 98                                                                                                       
 99     <!-- Definition of output files -->                                                               
100     <file_definition>                                                                                 
101                                                                                                       
102         <!-- Instantaneous outputs; Here output_freq in physics time steps -->                        
103         <!--                                                                                          
104            1 ts == 1 physical ts                                                                      
105            if physical ts is half a day,                                                              
106            10ts   below means every 5 days                                                            
107            2000ts below means every 1000 days                                                         
108         <file id="histins"                                                                            
109               name="Xhistins"                                                                         
110               output_freq="40ts" sync_freq="40ts"                                                     
111               split_freq="2000ts"                                                                     
112               type="one_file"                                                                         
113               enabled=".true.">                                                                       
114         split_freq does not seem to work                                                              
115         -->                                                                                           
116         <file id="histins"                                                                            
117               name="Xhistins"                                                                         
118               output_freq="2ts"                                                                       
119               type="one_file"                                                                         
120               time_units="days"                                                                       
121               enabled="true">                                                                         
122                                                                                                       
123                                                                                                       
124             <!-- VARS 0D -->                                                                          
125             <field_group operation="instant"                                                          
126                          grid_ref="scalarpoint"                                                       
127                          freq_op="1ts">                                                               
128                 <field field_ref="ls" />                                                              
129             </field_group>                                                                            
130                                                                                                       
131             <!--<field_group domain_ref="dom_glo"> -->                                                
132             <!--<field_group grid_ref="grid_2D_out">-->                                               
133             <!-- toggle domain_ref to output on native or lon-lat domain -->                          
134                                                                                                       
135               <!-- VARS 2D -->                                                                        
136               <field_group operation="instant" prec="4"                                               
137                            grid_ref="grid_2D_out"                                                     
138                            freq_op="1ts">                                                             
139                   <field field_ref="area" operation="once" />
140                   <field field_ref="ps" enabled="true" />                                             
141                   <field field_ref="ISR" enabled="true" />                                            
142                   <field field_ref="OLR" enabled="true" />                                            
143               </field_group>                                                                          
144                                                                                                       
145               <!-- VARS 3D -->                                                                        
146               <field_group operation="instant"                                                        
147                            grid_ref="grid_3D_out"                                                     
148                            freq_op="1ts">                                                             
149                   <field field_ref="u" />                                                             
150                   <field field_ref="v" />                                                             
151                   <field field_ref="omega"/>                                                          
152                   <field field_ref="temperature" />                                                   
153                                                                                                       
154                   <field field_ref="h2o_vap" />                                                       
155                   <field field_ref="h2o_ice" />                                                       
156                   <field field_ref="w_plm" />                                                         
157                   <field field_ref="detr" />                                                          
158                   <field field_ref="entr" />                                                          
159               </field_group>                                                                          
160                                                                                                       
161             <!--</field_group>-->                                                                     
162         </file>                                                                                       
163                                                                                                       
164     </file_definition>                                                                                
165                                                                                                       
166 </context>