Minor fix in lingebm when using damped modes
@@ -116,13 +116,6 @@ class FlexDynamic():
self.Cstr = tsinfo.modal.get('C')
self.Kstr = tsinfo.modal.get('K')
- self.Nmodes = self.settings['num_modes']
- self._num_modes = None
- self.num_modes = self.settings['num_modes']
- self.num_dof = self.U.shape[0]
- if self.V is not None:
- self.num_dof = self.num_dof // 2
-
### set other flags
self.modal = self.settings['modal_projection']
self.inout_coords = self.settings['inout_coords']
@@ -133,6 +126,13 @@ class FlexDynamic():
else:
self.dt = None
+ self.Nmodes = self.settings['num_modes']
+ self._num_modes = None
+ self.num_modes = self.settings['num_modes']
+ self.num_dof = self.U.shape[0]
+ if self.V is not None:
+ self.num_dof = self.num_dof // 2
+
self.proj_modes = self.settings['proj_modes']
if self.V is None:
self.proj_modes = 'undamped'
@@ -1011,6 +1011,7 @@ class FlexDynamic():
pass
# Update Ccut matrix
+ if self.modal:
self.Ccut = np.dot(self.U.T, np.dot(self.Cstr, self.U))
def scale_system_normalised_time(self, time_ref):
