Skip to contents

adjust_h_abs() adjusts the filed H_abs in all data.frame of data_table.

Usage

adjust_h_abs(data_table, h_abs = c("model", "room", "component"), h_ref = 0)

Arguments

data_table

list of data.frame describing components in a model.

h_abs

character defining how the adjustment is done.

h_ref

numeric, of length 1, that gives the H reference in the model.

Value

The same list of data.frame, each with fields H and H_abs that has been adjusted (or maybe created).

Details

If some of the data.frame in data_table do not have a field H, it is added and set to 0. Il some values in any field H are missing (NA values), they are set to 0.

H_abs is adjusted depending on the value of h_abs:

  • For model, all H_abs are adjusted by taking into account the relative height H of the component and the absolute height H_abs of its container.

  • For room, all rooms are supposed to be at H_abs = 0, then the same logic as in case model is applied. Relative H for storeys and rooms are set to 0 for consistency.

  • For component all relative height H and absolute height H_abs are set to 0.

Note :

  • one room is "contained" in one storey

  • one wall or one furniture is "contained" in one room

  • one opening or one coating is "contained" in one wall