SaveData¶
The
SaveData
postprocessor writes the SHARPy variables intohdf5
files. The linear state space files may be saved to.mat
if desired instead.It has options to save the following classes:
Aerogrid
includingsharpy.sharpy.utils.datastructures.AeroTimeStepInfo
Beam
includingsharpy.sharpy.utils.datastructures.StructTimeStepInfo
sharpy.solvers.linearassembler.Linear
including classes insharpy.linear.assembler
Notes
This method saves simply the data. If you would like to preserve the SHARPy methods of the relevant classes see also
sharpy.solvers.pickledata.PickleData
.The settings that this solver accepts are given by a dictionary, with the following key-value pairs:
Name Type Description Default Options folder
str
Folder to save data ./output
save_aero
bool
Save aerodynamic classes. True
save_struct
bool
Save structural classes. True
save_linear
bool
Save linear state space system. False
save_linear_uvlm
bool
Save linear UVLM state space system. Use with caution when dealing with large systems. False
skip_attr
list(str)
List of attributes to skip when writing file ['fortran', 'airfoils', 'airfoil_db', 'settings_types', 'ct_dynamic_forces_list', 'ct_gamma_dot_list', 'ct_gamma_list', 'ct_gamma_star_list', 'ct_normals_list', 'ct_u_ext_list', 'ct_u_ext_star_list', 'ct_zeta_dot_list', 'ct_zeta_list', 'ct_zeta_star_list', 'dynamic_input']
compress_float
bool
Compress float False
format
str
Save linear state space to hdf5 .h5
or Matlab.mat
format.h5
h5
,mat