Source code for fastga_he.powertrain_builder.exceptions

# This file is part of FAST-OAD_CS23-HE : A framework for rapid Overall Aircraft Design of Hybrid
# Electric Aircraft.
# Copyright (C) 2022 ISAE-SUPAERO

from fastoad.exceptions import FastError


[docs] class FASTGAHEUnknownComponentID(FastError): """ Class for managing errors that result from trying to add a component to the power train with an ID that is not recognized. """
[docs] class FASTGAHEUnknownOption(FastError): """ Class for managing errors that result from trying to add a component to the power train with options that are not recognized or not all options needed. """
[docs] class FASTGAHEInvalidOptionDefinition(FastError): """ Class for managing errors that result from invalid value definitions for recognized component options. """
[docs] class FASTGAHEComponentsNotIdentified(FastError): """ Class for managing errors that result from trying to run the _get_connection method before having identified the components in the power train with the _get_components method. """
[docs] class FASTGAHESingleSSPCAtEndOfLine(FastError): """ Class for managing errors that result from connecting a dc line to an SSPC but only a single one. Because of the way equations were coded, if one end of a harness is connected to an SSPC, the other shall be as well to allow for a possible opening of the 2 SSPCs. """
[docs] class FASTGAHEIncoherentVoltage(FastError): """ Class for managing errors that result from connecting two component that sets the voltage of their subgraph and set them with a different voltage. This will not cause an error at OpenMDAO level, but from experience, it will not converge, so we will make it fail as soon as possible. """
[docs] class FASTGAHEImpossiblePair(FastError): """ Class for managing errors that result from trying to pair with a component that does not exist. """
[docs] class FASTGAHEComponentConnectionError(FastError): """ Class for managing errors that result from component connections in powertrain configuration file. """
[docs] class FASTGAHECriticalComponentMissingError(FastError): """ Class for managing errors that result from missing critical components aucha as proplusor or energy storage device in the powertrain configuration file. """
[docs] class FASTGAHEInputCountError(FastError): """Class for managing errors that result from inconsistency of input number definition."""
[docs] class FASTGAHEOutputCountError(FastError): """Class for managing errors that result from inconsistency of output number definition."""