上一篇文章以系统自带例子介绍了PLAM的基本使用流程,这篇介绍如何使用自定义的项目。(以本人做的项目为例来介绍,我的目的是模拟区域内的表面温度)
创建自定义项目
创建文件夹目录
1)在JOBS文件夹下新建一个文件夹,任意命名。这边我创建一个MyProject
2)在MyPrject下创建三个文件夹INPUT,MONITORING,OUTPUT。
3)打开文本编辑器,新建一个文件,保存到INPUT文件夹中,注意命名必须是创建的项目文件名加_p3d。此处我的文件名称应该是MyProject_p3d。
配置MyProject_p3d文件(各个模块的参数官方网站都有详细说明)
基础配置可以参考https://palm.muk.uni-hannover.de/trac/wiki/doc/app
首先配置初始化参数:参考https://palm.muk.uni-hannover.de/trac/wiki/doc/app/initialization_parameters
!------------------------------------------------------------------------------ !-- INITIALIZATION PARAMETER NAMELIST !-- Documentation: https://palm.muk.uni-hannover.de/trac/wiki/doc/app/inipar !------------------------------------------------------------------------------ &initialization_parameters ! !-- model grid !模型网格 !-------------------------------- dx = 1.0, dy = 1.0, dz = 2.0, nx = 199, ny = 99, nz =30, ! !-- pressure solver !压力求解器 !-------------------------------- initializing_actions = 'set_constant_profiles', constant_flux_layer = .TURE., fft_method = 'temperton-algorithm', roughness_length = 0.01 ! !-- wind speed !风速 !-------------------------------- ug_surface = 0.08, vg_surface = 0.08, ! !-- temperature !气温 !-------------------------------- pt_surface = 303.15, bc_pt_b = 'dirichlet', ! !-- humidity !湿度 !-------------------------------- bc_q_b = 'dirichlet', q_surface = 0.002, humidity = .TRUE., ! !-- time and space !时空位置 !-------------------------------- latitude = 31., longitude = 118., origin_date_time = '2018-07-19 07:00:00 +08', ! !-- wall/soil spinup !-------------------------------- spinup_time = 43200, !86400.0, ! perform a 2d spin-up !spinup_pt_mean = 303.15, spinup_pt_amplitude = 1.0, dt_spinup = 60.0, ! time step during spinup data_output_during_spinup = .F., ! !-- building topology !-------------------------------- topography = 'read_from_file', !注意这里如果要引用外部地形输入需要加上这一句 /
其次配置运行时参数:参考https://palm.muk.uni-hannover.de/trac/wiki/doc/app/runtime_parameters
!------------------------------------------------------------------------------ !-- RUNTIME PARAMETER NAMELIST !-- Documentation: https://palm.muk.uni-hannover.de/trac/wiki/doc/app/d3par !------------------------------------------------------------------------------ &runtime_parameters ! !-- run steering !------------------------------------------------------------------------------ end_time = 43200, ! 2 h create_disturbances = .T., dt_disturb = 150.0, disturbance_energy_limit = 0.05, ! !-- processor topology !在xy方向上分配求解的核心数量 !---------------------------------------------------- !npex = 2 , !npey = 1 , ! !-- 2d/3d data output !------------------------------------------------------------------------------ netcdf_data_format = 2, ! NetCDF3 dt_data_output = 3600.0, dt_data_output_av = 3600.0, ! output interval for averaged data dt_do3d = 3600.0, ! output interval for 3D data averaging_interval = 3600.0, ! averaging interval general data dt_do2d_xy = 3600.0, ! output interval for 2D XY data section_xy = 0, ! grid index for 2D XY cross sections data_output = 'q','qsws*_xy','shf*_xy','theta_2m*_xy','tsurf*_xy','us*_xy','wspeed_10m*_xy','ghf*_xy','qsws_liq*_xy','qsws_soil*_xy','qsws_veg*_xy','r_a*_xy','r_s*_xy','rad_net*_xy','rad_lw_in*_xy','rad_lw_out*_xy','rad_sw_in*_xy','rad_sw_out*_xy', !输出地表能量平衡方程中的参数 ! !-- timeseries output !------------------------------------------------ dt_run_control = 0.0, ! !-- profile output !我这边不需要输出 !------------------------------------------------ dt_dopr = 3600.0, ! output interval for profile data averaging_interval_pr = 3600.0, ! averaging interval profile data !dt_averaging_input_pr = 0.0, ! averaging profile data sampling rate !data_output_pr = 'u', 'u*2', !'v', 'v*2', !'w', 'w*2', 'w*3', !'#theta', 'theta*2', !'wtheta', 'w"theta"', 'w*theta*', /
最后配置引用模块参数:我用到的模块是Land Surface,Urban Surface,Radiation,Biometeorology
!------------------------------------------------------------------------------ !-- URBAN SURFACE MODEL PARAMETER NAMELIST ! Documentation: https://palm.muk.uni-hannover.de/trac/wiki/doc/app/usmpar !------------------------------------------------------------------------------ &urban_surface_parameters !Urabn模块 usm_material_model = .T., / !------------------------------------------------------------------------------ !-- LAND SURFACE MODEL PARAMETER NAMELIST ! Documentation: https://palm.muk.uni-hannover.de/trac/wiki/doc/app/lsmpar !------------------------------------------------------------------------------ &land_surface_parameters soil_temperature = 293.0, 293.0, 293.0, 293.0, 293.0, 293.0, 293.0, 293.0, deep_soil_temperature = 293.0, soil_moisture = 0.30, 0.30, 0.30, 0.30, 0.30, 0.30, 0.60, 0.60, water_temperature = 298.35 c_surface = 0.0, aero_resist_kray = .T., constant_roughness = .T., surface_type = 'netcdf', / !------------------------------------------------------------------------------- !-- Bio MODEL PARAMETER NAMELIST ! Documentation: https://palm.muk.uni-hannover.de/trac/wiki/doc/app/biometeorology_parameters !------------------------------------------------------------------------------- &biometeorology_parameters thermal_comfort = .TRUE., / !------------------------------------------------------------------------------- !-- RADIATION MODEL PARAMETER NAMELIST ! Documentation: https://palm.muk.uni-hannover.de/trac/wiki/doc/app/radpar !------------------------------------------------------------------------------- &radiation_parameters radiation_scheme = 'clear-sky', dt_radiation = 60.0, constant_albedo = .F., /
至此,p3d文件配置完毕,下一篇介绍如何在项目中引入自定义地形。
2024最新激活全家桶教程,稳定运行到2099年,请移步至置顶文章:https://sigusoft.com/99576.html
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。 文章由激活谷谷主-小谷整理,转载请注明出处:https://sigusoft.com/168707.html