Error Handling¶
The following custom errors are defined in MachUpX
-
class
machupX.SolverNotConvergedError(solver_type, final_error)¶ An exception thrown when the solver fails to converge for a given case.
- solver_type : str
- Either “nonlinear” or “scipy_fsolve”.
- final_error : float
- The norm of the final error when computation was terminated.
- message : str
- A message about the error.
-
class
airfoil_db.DatabaseBoundsError(airfoil, exception_indices, inputs_dict)¶ An exception thrown when the inputs to the airfoil database fall outside the database bounds.
-
airfoil¶ The name of the airfoil for which this exception occurred.
Type: str
-
inputs_dict¶ The arguments passed to the airfoil.
Type: dict
-
exception_indices¶ The indices at which the arguments fell outside the database bounds.
Type: list
-
message¶ A message about the error.
Type: str
-
Errors can be processed as warnings or entirely suppressed using the Scene.set_err_state() method.
Please note that within DatabaseBoundsError, angular values (“alpha”, “trailing_flap_deflection”) are reported in radians.