Programming the dynamic analysis of structures