LinDynamicSim
- class sharpy.solvers.lindynamicsim.LinDynamicSim[source]
Time-domain solution of Linear Time Invariant Systems
Uses the derived linear time invariant systems and solves it in time domain.
The inputs are provided by means of a list of dictionaries to the setting
input_generators. For each input you want, you need a dictionary entry containingname(str) which is the name of the variable,index(int) for the index of the variable in the case of multidimensional variables (if unspecified reverts to0) and thefile_pathto a text file containing the time series of the input. If the input variable is multidimensional,indexmay be a list of indices for each column of time series in the array in the input file.Alternatively a
case_name.lininput.h5file in the case root folder can be used with the following entries:x0(optional): Initial state vectorinput_vec: Input vector(n_tsteps, n_inputs).
Note
This solver is seldom used in SHARPy (its focus is on nonlinear time domain aeroelasticity) hence you may find this solver lacking in features. If you use it, you may need to make modifications. We would greatly appreciate that you contribute these modifications by means of a pull request!
The settings that this solver accepts are given by a dictionary, with the following key-value pairs:
Name
Type
Description
Default
write_datlist(str)List of vectors to write:
x,y,uand/ort[]reference_velocityfloatVelocity to scale the structural equations when using a non-dimensional system
1.0n_tstepsintNumber of time steps to run
10physical_timefloatTime to run
2.0input_generatorslist(dict)List of dictionaries for each input
[]dtfloatTime increment for the solution of systems without a specified dt
0.001postprocessorslist(str)[]postprocessors_settingsdict{}- input_vector(ss)[source]
Generates an input vector
uof sizen_tsteps x inputsand populates the correct columns with the time series arrays provided as text files in the settingsinput_generators.- Parameters:
ss (libss.StateSpace) – State Space object for which to generate input
- Returns:
Input vector.
- Return type:
np.array