The model PALM is based on the non-hydrostatic, filtered, incompressible Navier-Stokes equations in Boussinesq-approximated form (an anelastic approximation is available as an option for simulating deep convection). By default, PALM has at least six prognostic quantities: the velocity components u, v, w on a Cartesian grid, the potential temperature θ, water vapor mixing ratio qv and possibly a passive scalar s. Furthermore, an additional equation is solved for either the subgrid-scale turbulent kinetic energy (SGS-TKE) e (LES mode, default) or the total turbulent kinetic energy (RANS mode).
In the LES mode, the filtering process yields four subgrid-scale (SGS) covariance terms. These SGS terms are parametrized using a 1.5-order closure after Deardorff (1980). PALM uses the modified version of Moeng and Wyngaard (1988) and Saiki et al. (2000). The closure is based on the assumption that the energy transport by SGS eddies is proportional to the local gradients of the mean quantities.
Running PALM with the palmrun script or compiling PALM with palmbuild requires a configuration file in the working directory from where the scripts are called.
how to set -D__netcdf4_parallel?
TODO.
not parallel-netCDF
1 2 3 4 5 6 7 8 9 10 11
942:netcdf_c_prefix = 943:netcdf_fortran_prefix =
964:-- Found netCDF 4.7.4 compiled with mpicc
965:-- Found netCDF-Fortran 4.5.3 compiled with mpifort
966:-- Found NetCDF: /home/wpsze/MPAS-A/modules_library/Library/lib libnetcdff.so
# --------------------------------- Main Control --------------------------------- # start_time="$(date -u +%s)" rm log.install.${palm_version} exec > >(tee -a log.install.${palm_version}) 2>&1 # echo" ------------------------------ PALM ------------------------------- " sleep 1s && echo
palm_install
echo"=====================" end_time="$(date -u +%s)" echo"Finished datetime: $(date)" elapsed="$(($end_time-$start_time))" echo"Total of $elapsed seconds elapsed for process" time_mins="$(($elapsed /60))" echo"Total of $time_mins minutes elapsed for process" time_hours="$(($elapsed /60/60))" echo"Total of $time_hours hours elapsed for process" echo"=====================" echo" -------------------------- Completed ------------------------- "
1 2 3 4 5 6 7 8 9 10 11 12
#------------------------------------------------------------------------# # Installing PALM model system packages finished. # # Use the following command to make the executables available # inside your environment: # # export PATH=/home/wpsze/PALM/v25.04/bin:${PATH} # #------------------------------------------------------------------------# #------------------------------------------------------------------------# | PALM model system installer finished. | #------------------------------------------------------------------------#
1 2 3 4 5 6 7
drwxrwxr-x 6 wpsze wpsze 33K Jun 20 13:37 ./ drwxr-xr-x 4 wpsze wpsze 33K Jun 20 16:03 ../ drwxrwxr-x 2 wpsze wpsze 33K Jun 20 13:37 bin/ drwxrwxr-x 2 wpsze wpsze 89K Jun 20 13:37 MAKE_DEPOSITORY_default/ -rw-rw-r-- 1 wpsze wpsze 5.1K Jun 20 13:34 .palm.config.default drwxrwxr-x 4 wpsze wpsze 33K Jun 20 13:37 palm_model_system/ drwxrwxr-x 6 wpsze wpsze 33K Jun 20 13:34 rrtmg/
Possible issues
make[1]: *** [Makefile:60: kpp] Error 1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/usr/bin/ld: cannot find -lfl collect2: error: ld returned 1 exit status make[1]: *** [Makefile:60: kpp] Error 1
-- PALM is not using the rrtmg library. CMake Error at /home/wpsze/PALM/v25.04/palm_model_system/packages/palm/model/share/cmake/FindTenStream.cmake:23 (list): list does not recognize sub-command PREPEND Call Stack (most recent call first): CMakeLists.txt:69 (find_package)
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.4.2") -- Checking for one of the modules 'TenStream' -- PALM is not using the TenStream library. -- Configuring incomplete, errors occurred!
#------------------------------------------------# #Author: wpsze #Email: waipangsze@gmail.com #date: 2023-08-31 10:39:15 #Version: 0.0 #Description: The purpose of the script #Copyright (C): 2023 All rights reserved #------------------------------------------------#
# final environment variable setting ulimit -s unlimited export OMP_NUM_THREADS=1
# --------------------------------- Main Control --------------------------------- # start_time="$(date -u +%s)" rm log.run_palm exec > >(tee -a log.run_palm) 2>&1# echo " ------------------------------ PALM ------------------------------- " sleep 1s && echo
#palm_check palm_test #palm_test_v0
#palm_flow_around_buildings # palm_my_case
echo "=====================" end_time="$(date -u +%s)" echo "Finished datetime: $(date)" elapsed="$(($end_time-$start_time))" echo "Total of $elapsed seconds elapsed for process" time_mins="$(($elapsed /60))" echo "Total of $time_mins minutes elapsed for process" time_hours="$(($elapsed /60/60))" echo "Total of $time_hours hours elapsed for process" echo "=====================" echo " -------------------------- Completed PALM ------------------------- "
# --------------------------------- palmrun ? --------------------------------- # # *** Description of available palmrun options:
# Option Description Default-Value # -a activation string list "" # -A project account number --- # -b batch-job on local machine --- # -B do not delete temporary directory at end --- # -c configuration identifier "default" # -F create batch job file only --- # -k keep data from previous run # -m memory demand in MB (batch-jobs) 0 MB # -M Makefile name Makefile # -O threads per openMP task --- # -q queue "none" # -r run identifier test # -s filenames of routines to be compiled "" # must end with .f, .f90, .F, or .c ! # use ".." for more than one file and wildcards # -s LM compiles all locally modified files # -t allowed cpu-time in seconds (batch) 0 # -T tasks per node --- # -u username on remote machine "" # -v no prompt for confirmation --- # -V check if SOURCES_FOR_RUN_... exists --- # -w maximum parallel io streams as given by -X # -W name of job to wait for --- # -x tracing of palmrun for debug purposes --- # -X # of processors (on parallel machines) 1 # -y add appendix "_O" to all local output # files (ocean precursor runs followed by # coupled atmosphere-ocean runs) --- # -Y run coupled model, "#1 #2" with # #1 atmosphere and #2 ocean processors "#/2 #/2" depending on -X # -Z skip combine_plot_fields at the end of # the simulation ---
# Possible values of positional parameter <modus>: # "?" - this outline
*** saving OUTPUT-files: local time: 16:47:49 ---------------------------------------------------------------------------- >>> OUTPUT: PARIN to /home/wpsze/PALM/v25.04/JOBS/example_cbl/MONITORING/example_cbl_parin.000
>>> OUTPUT: STDOUT to /home/wpsze/PALM/v25.04/JOBS/example_cbl/MONITORING/example_cbl_stdout.000
>>> OUTPUT: RUN_CONTROL to /home/wpsze/PALM/v25.04/JOBS/example_cbl/MONITORING/example_cbl_rc.000
>>> OUTPUT: HEADER to /home/wpsze/PALM/v25.04/JOBS/example_cbl/MONITORING/example_cbl_header.000
>>> OUTPUT: CPU_MEASURES to /home/wpsze/PALM/v25.04/JOBS/example_cbl/MONITORING/example_cbl_cpu.000
>>> OUTPUT: DATA_1D_PR_NETCDF to /home/wpsze/PALM/v25.04/JOBS/example_cbl/OUTPUT/example_cbl_pr.000.nc
>>> OUTPUT: DATA_1D_TS_NETCDF to /home/wpsze/PALM/v25.04/JOBS/example_cbl/OUTPUT/example_cbl_ts.000.nc
>>> OUTPUT: DATA_2D_XY_NETCDF to /home/wpsze/PALM/v25.04/JOBS/example_cbl/OUTPUT/example_cbl_xy.000.nc
>>> OUTPUT: DATA_2D_XZ_AV_NETCDF to /home/wpsze/PALM/v25.04/JOBS/example_cbl/OUTPUT/example_cbl_av_xz.000.nc
>>> OUTPUT: DATA_2D_XZ_NETCDF to /home/wpsze/PALM/v25.04/JOBS/example_cbl/OUTPUT/example_cbl_xz.000.nc
---------------------------------------------------------------------------- *** all OUTPUT-files saved local time: 16:47:51
*** providing INPUT-files: ---------------------------------------------------------------------------- >>> INPUT: /home/wpsze/PALM/v25.04/JOBS/flow_around_cube_noncyclic/INPUT/flow_around_cube_noncyclic_p3d to PARIN >>> INPUT: /home/wpsze/PALM/v25.04/JOBS/flow_around_cube_noncyclic/INPUT/flow_around_cube_noncyclic_topo to TOPOGRAPHY_DATA >>> INPUT: /home/wpsze/PALM/v25.04/tmp/flow_around_cube_noncyclic/RESTART/flow_around_cube_noncyclic_d3d.002 to BININ file will be linked *** INFORMATIVE: some optional INPUT-files are not present ---------------------------------------------------------------------------- *** all INPUT-files provided
+++ warning message --- ID: PAC0192 generated by routine "do_topo_and_surface_setup":
Topography and surface-setup output requires parallel netCDF. No output file will be created.
Further information can be found at https://docs.palm-model.com/25.04/Reference/LES_Model/Logging/#PAC0192 ...... *** saving OUTPUT-files: local time: 17:57:39 ---------------------------------------------------------------------------- >>> OUTPUT: PARIN to /home/wpsze/PALM/v25.04/JOBS/flow_around_cube_noncyclic/MONITORING/flow_around_cube_noncyclic_parin.004
>>> OUTPUT: STDOUT to /home/wpsze/PALM/v25.04/JOBS/flow_around_cube_noncyclic/MONITORING/flow_around_cube_noncyclic_stdout.004
>>> OUTPUT: RUN_CONTROL to /home/wpsze/PALM/v25.04/JOBS/flow_around_cube_noncyclic/MONITORING/flow_around_cube_noncyclic_rc.004
>>> OUTPUT: HEADER to /home/wpsze/PALM/v25.04/JOBS/flow_around_cube_noncyclic/MONITORING/flow_around_cube_noncyclic_header.004
>>> OUTPUT: CPU_MEASURES to /home/wpsze/PALM/v25.04/JOBS/flow_around_cube_noncyclic/MONITORING/flow_around_cube_noncyclic_cpu.004
>>> OUTPUT: DATA_1D_PR_NETCDF to /home/wpsze/PALM/v25.04/JOBS/flow_around_cube_noncyclic/OUTPUT/flow_around_cube_noncyclic_pr.004.nc
>>> OUTPUT: DATA_1D_TS_NETCDF to /home/wpsze/PALM/v25.04/JOBS/flow_around_cube_noncyclic/OUTPUT/flow_around_cube_noncyclic_ts.004.nc
>>> OUTPUT: DATA_3D_AV_NETCDF to /home/wpsze/PALM/v25.04/JOBS/flow_around_cube_noncyclic/OUTPUT/flow_around_cube_noncyclic_av_3d.004.nc
>>> OUTPUT: DATA_3D_NETCDF to /home/wpsze/PALM/v25.04/JOBS/flow_around_cube_noncyclic/OUTPUT/flow_around_cube_noncyclic_3d.004.nc
---------------------------------------------------------------------------- *** all OUTPUT-files saved local time: 17:57:40