# Outputs at elementary level

At elementary level, the `floodam.building`

outputs are the elementary damage functions. In this section, we describe the characteristics of these elementary damage functions and indicate how they can be represented.

## Elementary damage function

The elementary damage function of an elementary component \(e\) is an array of damage with 3 dimensions:

- \(h\): the water depth relative to \(e\). The user can define its range and the interval between its consecutive values. By default, its range is \([-110, 500]\) (cm) and it is defined for values that increase with a step of 10cm;
- \(d\): the duration of submersion relative to \(e\). The user can define its range and the interval between its consecutive values. By default, its range is \([0, 144]\) (h) and it is defined for values that increase with a step of 12h;
- action: the name of the action that produces damage;

completed by the following information for each action:

- h.action: refers to the height at which it is necessary to perform the action;
- dilapidation: is a boolean indicating whether or not dilapidation should be considered for this action;
- support: refers to the characteristic that should be taken into account to compute the quantity of elementary components considered for this action. It can take values such as
*unit*if the elementary component is indivisible, or*length*or*surface*if the elementary component is divisible; - value: indicates whether the maximum cost of the action should be defined at action level, independently of the replacement value of the elementary component, or should be estimated as the replacement value of the elementary component. The maximum cost of the action is the replacement value if the action that needs to be done to go back to the normal state consists in replacing the elementary component;

and the following meta-information at elementary component level:

- \(v\): gives the range of default admissible values of the elementary component, in Euros;
- component.elementary: gives the names of the elementary component.

## Representation of elementary damage functions

An elementary damage function can be represented in different ways:

- map: In this representation, total damage values of all actions are represented for all combinations of defined \(h\) and \(d\);
- total.h: In this representation, total damage values of all actions are represented as a function of \(h\) for some selected \(d\);
- action.h: In this representation, damage values for a specified \(d\) are represented as a function of \(h\), for each action.