Trim¶
- class sharpy.solvers.trim.Trim[source]¶
Trim routine with support for lateral dynamics. It usually struggles much more than the
StaticTrim(only longitudinal) solver.We advise to start with
StaticTrimeven if you configuration is not totally symmetric.The settings that this solver accepts are given by a dictionary, with the following key-value pairs:
Name
Type
Description
Default
print_infoboolPrint info to screen
TruesolverstrSolver to run in trim routine
solver_settingsdictSolver settings dictionary
{}max_iterintMaximum number of iterations of trim routine
100tolerancefloatThreshold for convergence of trim
0.0001initial_alphafloatInitial angle of attack
0.0initial_betafloatInitial sideslip angle
0.0initial_rollfloatInitial roll angle
0cs_indiceslist(int)Indices of control surfaces to be trimmed
[]initial_cs_deflectionlist(float)Initial deflection of the control surfaces in order.
[]thrust_nodeslist(int)Nodes at which thrust is applied
[0]initial_thrustlist(float)Initial thrust setting
[1.0]thrust_directionlist(float)Thrust direction setting
[0.0, 1.0, 0.0]special_casedictExtra settings for specific cases such as differential thrust control
{}refine_solutionboolIf
Trueand the optimiser routine allows for it, the optimiser will try to improve the solution with hybrid methodsFalse