5 | | Prior to a simulation using the MAS navigation information for the agents must be preprocessed. The result is a navigation mesh (visibility graph) that agents can use to find their way around obstacles toward their target. |
| 5 | Prior to a simulation using the MAS navigation information for the agents must be preprocessed. The result is a navigation mesh (visibility graph) that agents can use to find their way around obstacles toward their target.\\ |
| 6 | |
| 7 | == Creating the visibility graph == |
| 8 | A tool separate from PALM (Agent Preprocessing Tool for PALM - APT-P) has been developed to calculate the visibility graph.\\ |
| 9 | It is a standalone Fortran program (find it [browser:palm/trunk/UTIL/agent_preprocessing/agent_preprocessing.f90 here] or at {{{trunk/UTIL/agent_preprocessing/agent_preprocessing.f90}}} in your local PALM installation). \\ |
| 10 | To use it,\\\\ |
| 11 | 1) navigate to the {{{INPUT}}}-folder of your JOB.\\ |
| 12 | 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]).\\ |
| 13 | 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].\\ |
| 14 | 4) Execute the APT-P by typing |
| 15 | {{{ |
| 16 | agent_preprocessing |
| 17 | }}} |
| 18 | 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. \\ |
| 19 | |
30 | | |
31 | | |
32 | | == Creating the visibility graph == |
33 | | A tool separate from PALM (Agent Preprocessing Tool for PALM - APT-P) has been developed to calculate the visibility graph.\\ |
34 | | It is a standalone Fortran program (find it [browser:palm/trunk/UTIL/agent_preprocessing/agent_preprocessing.f90 here] or at {{{trunk/UTIL/agent_preprocessing/agent_preprocessing.f90}}} in your local PALM installation). \\ |
35 | | To use it, |
36 | | 1) navigate to the {{{INPUT}}}-folder of your JOB.\\ |
37 | | 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]).\\ |
38 | | 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].\\ |
39 | | 4) Execute the APT-P by typing |
40 | | {{{ |
41 | | agent_preprocessing |
42 | | }}} |
43 | | 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. |