Modelling of adaptive structures using layerwise models