needed modules
@@ -175,9 +175,19 @@ class NonLinearStaticMultibody(_BaseStructural):
# # print("FoR final pos: ", MB_tstep[ibody].for_pos[0:3])
# # print("pause")
- def extract_resultants(self):
+ def extract_resultants(self, tstep):
# TODO: code
- pass
+ return np.zeros((3,)), np.zeros((3,))
+
+ def update(self, tstep=None):
+ self.create_q_vector(tstep)
+
+ def create_q_vector(self, tstep=None):
+ import sharpy.structure.utils.xbeamlib as xb
+ if tstep is None:
+ tstep = self.data.structure.timestep_info[-1]
+
+ xb.xbeam_solv_disp2state(self.data.structure, tstep)
def compute_forces_constraints(self, MB_beam, MB_tstep, Lambda):
try:
