Changes between Version 5 and Version 6 of doc/tec/mas
- Timestamp:
- Aug 27, 2018 1:31:54 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
doc/tec/mas
v5 v6 23 23 24 24 '''Creating the visibility graph'''\\\\ 25 A tool separate from PALM has been developed to calculate the visibility graph. It is a standalone Fortran program (find it at {{{UTIL/nav_mesh/nav_mesh.f90}}}). \\ 26 ''' The usage of this tool is subject to chage! The following description is preliminary! ''' 25 A tool separate from PALM has been developed to calculate the visibility graph. It is a standalone Fortran program (find it at {{{UTIL/agent_preprocessing/agent_preprocessing.f90}}}). \\ 27 26 28 1) Copy {{{nav_mesh.f90}}} to the {{{INPUT}}}-folder of your JOB.\\ 29 2) Compile it, including your NetCDF-libraries. At IMUK the command is (replace the paths according to your local NetCDF installation): 27 1) Navigate to the {{{INPUT}}}-folder of your JOB.\\ 28 2) Make sure your Input folder contains the relevant topography information in either an ASCII- or NetCDF-file ([wiki:doc/app/iofiles/pids#topo see here]).\\ 29 3) Make sure your Input folder contains the {{{_p3d}}}-file. In it, if necessary, specify the namelist {{{&prepro_par}}} with the parameters [#flag_2d flag_2d], [#internal_buildings internal_buildings] and [#tolerance_dp tolerance_dp].\\ 30 4) Execute the program by typing 30 31 {{{ 31 ifort -cpp -I /muksoft/packages/netcdf4_hdf5parallel/4411c_443f/hdf5-1.10.0-patch1/mvapich2-2.3rc1/intel/2018.1.163/include/ \\ 32 -L /muksoft/packages/netcdf4_hdf5parallel/4411c_443f/hdf5-1.10.0-patch1/mvapich2-2.3rc1/intel/2018.1.163/lib -D__netcdf -lnetcdf -lnetcdff nav_mesh.f90 33 }}} 34 3) Make sure your Input folder contains the relevant topography information in either an ASCII- or NetCDF-file ([wiki:doc/app/iofiles/pids#topo see here]).\\ 35 4) Make sure your Input folder contains the {{{_p3d}}}-file. In it, if necessary, specify the namelist {{{&prepro_par}}} with the parameters [#flag_2d flag_2d], [#internal_buildings internal_buildings] and [#tolerance_dp tolerance_dp].\\ 36 5) Execute the program 37 {{{ 38 ./a.out 32 agent_preprocessing 39 33 }}} 40 34 This will create a file {{{<job_identifier>_nav}}}. This is a Fortran binary file that contains the polygon and visibility graph data and will be read by PALM during the simulation. As long as the area and resulution of the model domain do not change this file can be reused.