How to use the hardware.component.capacitor.Capacitor.Model.calculate_part function in hardware

To help you get started, we’ve selected a few hardware examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ReliaQualAssociates / ramstk / rtk / hardware / component / capacitor / fixed / Glass.py View on Github external
_stress = (self.operating_voltage + self.acvapplied) / \
                       self.rated_voltage
            try:
                self.hazard_rate_model['lambdab'] = \
                    0.000000000825 * ((_stress / 0.5)**4 + 1) * \
                    exp(16.0 * ((self.temperature_active + 273) /
                                self.reference_temperature))
            except(OverflowError, ZeroDivisionError):
                # TODO: Handle overflow error.
                return True

            # Capacitance correction factor.
            self.piCV = 0.62 * (self.capacitance * 1000000.0)**0.14
            self.hazard_rate_model['piCV'] = self.piCV

        return Capacitor.calculate_part(self)
github ReliaQualAssociates / ramstk / rtk / hardware / component / capacitor / fixed / Ceramic.py View on Github external
_stress = (self.operating_voltage + self.acvapplied) / \
                       self.rated_voltage
            try:
                self.hazard_rate_model['lambdab'] = \
                    0.0000000025 * ((_stress / 0.3)**3 + 1) * \
                    exp(14.3 * ((self.temperature_active + 273) /
                                self.reference_temperature))
            except(OverflowError, ZeroDivisionError):
                # TODO: Handle overflow error.
                return True

            # Capacitance correction factor.
            self.piCV = 0.59 * (self.capacitance * 1000000.0)**0.12
            self.hazard_rate_model['piCV'] = self.piCV

        return Capacitor.calculate_part(self)
github ReliaQualAssociates / ramstk / rtk / hardware / component / capacitor / fixed / Ceramic.py View on Github external
_stress = (self.operating_voltage + self.acvapplied) / \
                       self.rated_voltage
            try:
                self.hazard_rate_model['lambdab'] = \
                    0.0003 * ((_stress / 0.3)**3 + 1) * \
                    exp(((self.temperature_active + 273) /
                         self.reference_temperature))
            except(OverflowError, ZeroDivisionError):
                # TODO: Handle overflow error.
                return True

            # Capacitance correction factor.
            self.piCV = 0.41 * (self.capacitance * 1000000.0)**0.11
            self.hazard_rate_model['piCV'] = self.piCV

        return Capacitor.calculate_part(self)
github ReliaQualAssociates / ramstk / rtk / hardware / component / capacitor / fixed / Plastic.py View on Github external
_stress = (self.operating_voltage + self.acvapplied) / \
                       self.rated_voltage
            try:
                self.hazard_rate_model['lambdab'] = \
                    0.00055 * ((_stress / 0.4)**5 + 1) * \
                    exp(2.5 * ((self.temperature_active + 273) /
                               self.reference_temperature)**18)
            except(OverflowError, ZeroDivisionError):
                # TODO: Handle overflow error.
                return True

            # Capacitance correction factor.
            self.piCV = 1.2 * (self.capacitance * 1000000.0)**0.092
            self.hazard_rate_model['piCV'] = self.piCV

        return Capacitor.calculate_part(self)
github ReliaQualAssociates / ramstk / rtk / hardware / component / capacitor / electrolytic / Aluminum.py View on Github external
_stress = (self.operating_voltage + self.acvapplied) / \
                       self.rated_voltage
            try:
                self.hazard_rate_model['lambdab'] = \
                    0.00254 * ((_stress / 0.5)**3 + 1) * \
                    exp(5.09 * ((self.temperature_active + 273) /
                                self.reference_temperature)**5)
            except(OverflowError, ZeroDivisionError):
                # TODO: Handle overflow and zero division errors.
                return True

            # Capacitance correction factor.
            self.piCV = 0.34 * (self.capacitance * 1000000.0)**0.18
            self.hazard_rate_model['piCV'] = self.piCV

        return Capacitor.calculate_part(self)
github ReliaQualAssociates / ramstk / rtk / hardware / component / capacitor / fixed / Mica.py View on Github external
_stress = (self.operating_voltage + self.acvapplied) / \
                       self.rated_voltage
            try:
                self.hazard_rate_model['lambdab'] = \
                    0.0053 * ((_stress / 0.4)**3 + 1) * \
                    exp(1.2 * ((self.temperature_active + 273) /
                               self.reference_temperature)**6.3)
            except(OverflowError, ZeroDivisionError):
                # TODO: Handle overflow error.
                return True

            # Capacitance correction factor.
            self.piCV = 0.31 * (self.capacitance * 1000000.0)**0.23
            self.hazard_rate_model['piCV'] = self.piCV

        return Capacitor.calculate_part(self)
github ReliaQualAssociates / ramstk / rtk / hardware / component / capacitor / variable / Variable.py View on Github external
elif self.hazard_rate_type == 2:
            self.hazard_rate_model['equation'] = 'lambdab * piQ * piE'

            # Base hazard rate.
            _stress = (self.operating_voltage + self.acvapplied) / \
                       self.rated_voltage
            try:
                self.hazard_rate_model['lambdab'] = \
                    0.00224 * ((_stress / 0.17)**3 + 1) * \
                    exp(1.59 * ((self.temperature_active + 273) /
                                self.reference_temperature)**10.1)
            except(OverflowError, ZeroDivisionError):
# TODO: Handle overflow error.
                return True

        return Capacitor.calculate_part(self)
github ReliaQualAssociates / ramstk / rtk / hardware / component / capacitor / variable / Variable.py View on Github external
self.piCF = self._piCF[self.configuration - 1]
            self.hazard_rate_model['piCF'] = self.piCF

            # Base hazard rate.
            _stress = (self.operating_voltage + self.acvapplied) / \
                       self.rated_voltage
            try:
                self.hazard_rate_model['lambdab'] = \
                    0.0112 * ((_stress / 0.17)**3 + 1) * \
                    exp(1.59 * ((self.temperature_active + 273) /
                                self.reference_temperature)**10.1)
            except(OverflowError, ZeroDivisionError):
                # TODO: Handle overflow error.
                return True

        return Capacitor.calculate_part(self)
github ReliaQualAssociates / ramstk / rtk / hardware / component / capacitor / fixed / Plastic.py View on Github external
self.hazard_rate_model['lambdab'] = \
                    0.0005 * ((_stress / 0.4)**5 + 1) * \
                    exp(2.5 * ((self.temperature_active + 273) /
                               self.reference_temperature)**18)
            except(OverflowError, ZeroDivisionError):
                # TODO: Handle overflow error.
                return True

            # Capacitance correction factor.
            if self.specification == 1:
                self.piCV = 1.6 * (self.capacitance * 1000000.0)**0.13
            elif self.specification == 2:
                self.piCV = 1.3 * (self.capacitance * 1000000.0)**0.077
            self.hazard_rate_model['piCV'] = self.piCV

        return Capacitor.calculate_part(self)
github ReliaQualAssociates / ramstk / rtk / hardware / component / capacitor / fixed / Paper.py View on Github external
_stress = (self.operating_voltage + self.acvapplied) / \
                       self.rated_voltage
            try:
                self.hazard_rate_model['lambdab'] = \
                    0.00115 * ((_stress / 0.4)**5 + 1) * \
                    exp(2.5 * ((self.temperature_active + 273) /
                               self.reference_temperature)**18)
            except(OverflowError, ZeroDivisionError):
                # TODO: Handle overflow error.
                return True

            # Capacitance correction factor.
            self.piCV = 1.4 * (self.capacitance * 1000000.0)**0.12
            self.hazard_rate_model['piCV'] = self.piCV

        return Capacitor.calculate_part(self)