Add option to save aeroelastic system to h5 (previously only mat)
@@ -231,6 +231,18 @@ class SaveData(BaseSolver):
compress_float=self.settings['compress_float'])
linhdffile.close()
+ if self.settings['save_linear']:
+ with h5py.File(self.filename.replace('.data.h5', '.linss.h5'), 'a') as linfile:
+ h5utils.add_as_grp(self.data.linear.linear_system.linearisation_vectors, linfile,
+ grpname='linearisation_vectors',
+ ClassesToSave=self.ClassesToSave, SkipAttr=self.settings['skip_attr'],
+ compress_float=self.settings['compress_float'])
+ h5utils.add_as_grp(self.data.linear.ss, linfile, grpname='ss',
+ ClassesToSave=self.ClassesToSave, SkipAttr=self.settings['skip_attr'],
+ compress_float=self.settings['compress_float'])
+
+
+
elif self.settings['format'] == 'mat':
from scipy.io import savemat
if self.settings['save_linear']:
