Code generator for ONR mechanical modeling project