LinearAssembler¶
- class sharpy.solvers.linearassembler.LinearAssembler[source]¶
Warning
Under development - please advise of new features and bugs!
Creates a workspace containing the different linear elements of the state-space.
The user specifies which elements to build sequentially via the
linear_systemsetting.The most common uses will be:
Aerodynamic:
sharpy.linear.assembler.LinearUVLMsolverStructural:
sharpy.linear.assembler.LinearBeamsolverAeroelastic:
sharpy.linear.assembler.LinearAeroelasticsolver
The solver enables to load a user specific assembly of a state-space by means of the
LinearCustomblock.See
sharpy.sharpy.linear.assembler.LinearAssemblerfor a detailed description of each of the state-space assemblies.Upon assembly of the linear system, the data structure
data.linearwill be created. TheLinearcontains the state-space as an attribute. This state space will be the one employed by postprocessors.Important: running the linear routines requires information on the tangent mass, stiffness and gyroscopic structural matrices therefore the solver
solvers.modal.Modalmust have been run prior to linearisation. In addition, if the problem includes rigid body velocities, at least one timestep ofsolvers.DynamicCoupledmust have run such that the rigid body velocity is included.Example:
The typical
flowsetting used prior to using this solver for an aeroelastic simulation with rigid body dynamics will be similar to:>>> flow = ['BeamLoader', >>> 'AerogridLoader', >>> 'StaticTrim', >>> 'DynamicCoupled', # a single time step will suffice >>> 'Modal', >>> 'LinearAssembler']
The settings that this solver accepts are given by a dictionary, with the following key-value pairs:
Name
Type
Description
Default
Options
linear_systemstrName of chosen state space assembly type
Nonelinear_system_settingsdictSettings for the desired state space assembler
{}linearisation_tstepintChosen linearisation time step number from available time steps
-1modal_tstepintTimestep in which modal information is stored. Useful if the
Modalsolver is run at the start of the SHARPy flow.-1inout_coordinatesstrInput/output coordinates of the system. Nodal or modal space.
``
, ``nodes,modesretain_inputslist(int)List of input channels to retain in the chosen
inout_coordinates.[]retain_outputslist(int)List of output channels to retain in the chosen
inout_coordinates.[]