Home » Density

Density

The <Density> element is used to specify the number of agents in a node or nodes using an agent density in agents/m2 by default. The agent density can be a fixed number or defined from a distribution such as:

<PopulationDefinition>
    <Density type="enz_distribution">
        <Distribution type="enz_normal">
             ...
        </Distribution>
     </Density>
     ...
</PopulationDefinition>

Agent densities can be specified in metres squared per agent using units=”m2/agent attribute or equivalent unit type. Where the density calculation results in fractional agent numbers then values are always rounded up to the nearest whole number.

If both <Density> and <Agents> elements are defined in a definition within a <PopulationDefinition> then <Density> takes precedence and the <Density> element is not compatible with the enz_spread attribute.