Automatic dimensional reduction and meshing of stiffened thin-wall structures