Design of agricultural facilities