Documentation
¶
Index ¶
- Constants
- func Arrhenius(ea, t1, t0 float64) float64
- func Arrhenius25(ea, temp float64) float64
- func ArrheniusK(ea, t0, t1 float64) float64
- func CapacitorFIT(comp *Component, mission *Mission) (float64, error)
- func CapacitorType(c *Component) (capacitorType, error)
- func ConnectorFIT(comp *Component, mission *Mission) (float64, error)
- func Cs(class string, tags []string) float64
- func FIT(comp *Component, mission *Mission) (float64, error)
- func InductorFIT(comp *Component, mission *Mission) (float64, error)
- func IsPowerTransistor(c *Component) bool
- func IsSmd(c *Component) bool
- func LEDFIT(comp *Component, mission *Mission) (float64, error)
- func Lbase_Pcb(nLayers, nMounts int, class, techno float64) float64
- func Lchip_th(c *Component) float64
- func NorrisLandzberg(tdeltaRef, tdeltaUse, tmaxRef, tmaxUse, fRef, fUse float64, a, b, c float64) float64
- func OptoFIT(comp *Component, mission *Mission) (float64, error)
- func PcbFIT(comp *Component, mission *Mission) (float64, error)
- func PiChemical(ea, sal, env, zone float64, sealed bool) float64
- func PiInduced(comp *Component, phase *Phase) (float64, error)
- func PiInducedPcb(phase *Phase) float64
- func PiMech(grms float64) float64
- func PiPM() float64
- func PiPMActive() float64
- func PiPW() float64
- func PiProcess() float64
- func PiRH(ea, rh, temp float64) float64
- func PiRH2(ea, rh, temp float64, on bool) float64
- func PiRuggedising() float64
- func PiTCCase(nc int, time, tdelta, tmax float64) float64
- func PiTCSolder(nc int, time, duration, tdelta, tmax float64) float64
- func PiTV(tamb float64) float64
- func PiThermal(ea, temp float64, on bool) float64
- func PiThermal_cap(ea, tamb, sref, ratio float64, on bool) float64
- func PiThermal_voltageFactor(v, vmax float64) float64
- func PiezoFIT(comp *Component, mission *Mission) (float64, error)
- func PiezoType(c *Component) piezoType
- func ResistorFIT(comp *Component, mission *Mission) (float64, error)
- func ResistorType(c *Component) resistorType
- func Rthja_semi(pkg string, k bool) (int, float64, float64)
- func SemiconductorFIT(comp *Component, mission *Mission) (float64, error)
- type Bom
- func (b *Bom) FITAll(m *Mission) ([]float64, []error)
- func (b *Bom) FITByBlock(m *Mission) (map[string]float64, []error)
- func (bom *Bom) FromCsvs(files []string) error
- func (bom *Bom) Len() int
- func (bom *Bom) Less(i, j int) bool
- func (b *Bom) Report(m *Mission, w io.Writer) error
- func (bom *Bom) Sort(field string)
- func (bom *Bom) Swap(i, j int)
- func (b *Bom) TotalFIT(m *Mission) (float64, []error)
- type Component
- type Design
- type Mission
- type Package
- type Phase
Constants ¶
const InvBoltzman float64 = 11604
InvBoltzman is 1/k_B in K/eV, rounded as in the formulas of the FIDES 2022 guide (p. 41).
Variables ¶
This section is empty.
Functions ¶
func Arrhenius25 ¶
Arrhenius25 returns the Arrhenius factor at temp [°C] relative to 293 K (20 °C). FIDES 2022 uses 293 K as the reference (Kelvin offset: 273, not 273.15). This differs intentionally from model.Arrhenius25 (298.15 K / 25 °C).
func CapacitorFIT ¶
CapacitorFIT returns the FIDES 2022 FIT of a ceramic, aluminium or tantalum capacitor.
func CapacitorType ¶
CapacitorType returns the FIDES 2022 capacitor type of a component, from its tags, value and rated voltage.
func ConnectorFIT ¶
PCB connectors, less that one insertion/year
func Cs ¶
Cs returns Csensitivity of a class and tags, from the first row of css whose tags the component has all of.
func FIT ¶
FIT returns the FIDES 2022 failure rate of a component for a mission, in failures in 10⁹ hours.
func IsPowerTransistor ¶
IsPowerTransistor reports whether a component falls under the FIDES 2022 model for discrete power semiconductors (pp. 138-140): silicon MOS rated 5 W or more, and IGBTs.
func LEDFIT ¶
LEDFIT returns the FIDES 2022 FIT of a light-emitting diode (class D, tag led; pp. 141-143).
The chip is a colour LED unless tagged white. The package basic failure rates depend on the maximum direct current Imax and the package (see ledPackage). comp.T is the junction temperature rise over ambient, P·Rth.
func NorrisLandzberg ¶
func NorrisLandzberg(tdeltaRef, tdeltaUse, tmaxRef, tmaxUse, fRef, fUse float64, a, b, c float64) float64
Norris-Landberg, general form
For SAC305 lead-free solder: a=2.3, b=0.3, c=4562 See "Norris–Landzberg Acceleration Factors and Goldmann Constants for SAC305 Lead-Free Electronics" (Journal of Electronic Packaging · September 2012) See also: https://www.lamar.edu/engineering/_files/documents/mechanical/dr.-fan-publications/2008/Fan%202008_13%20ECTC_3.pdf
func OptoFIT ¶
OptoFIT returns the FIDES 2022 FIT of an optocoupler (class U, tag opto or optocoupler; pp. 144-145): a phototransistor optocoupler unless tagged photodiode. The package basic failure rates are those of the integrated circuit or discrete semiconductor package; comp.T is the junction temperature rise over ambient, P·Rth.
func PcbFIT ¶
PcbFIT returns the FIDES 2022 FIT of a printed circuit board (class PCB; pp. 174-176), from comp.Layers, comp.Mounts (mounting points: SMD pads and through-holes), comp.PiClass (1 to 6, from the minimum conductor width and spacing) and comp.PiTechno (0.25 through-holes, 0.5 blind holes, 1 micro-vias, 2.5 pad on via).
func PiChemical ¶
func PiInduced ¶
Contribution of induced factors (overstresses): Electrical overstress, mechanical overstress, thermal overstress
func PiInducedPcb ¶
func PiPM ¶
func PiPM() float64
PiPM is the quality and technical control over manufacturing of a passive item (default value, FIDES 2022, p. 36).
func PiPMActive ¶
func PiPMActive() float64
PiPMActive is PiPM for active components: integrated circuits, discrete semiconductors, LEDs and optocouplers (default value, FIDES 2022, p. 36).
func PiPW ¶
func PiPW() float64
PiPW is the design factor of discrete power semiconductors, silicon MOS over 5 W and IGBTs (default value, FIDES 2022, p. 138).
func PiProcess ¶
func PiProcess() float64
quality and technical control over the development, manufacturing and usage process for the product containing the item (Use default value)
func PiRuggedising ¶
func PiRuggedising() float64
PiRuggedising represents the influence of the policy for taking account of overstresses in the product development. (Use default value)
func PiTCSolder ¶
Temperature cycling, solder joints, Norris-Landzberg model (FIDES 2022, pp. 43-44): the cycle duration factor is (min(θcy, 2)/2)^(1/3). See https://www.lamar.edu/engineering/_files/documents/mechanical/dr.-fan-publications/2008/Fan%202008_13%20ECTC_3.pdf (The 1.9 factor is OK for lead-free also, according to this paper)
func PiThermal_cap ¶
func PiThermal_voltageFactor ¶
PiThermal_voltageFactor is ΠEl of a signal diode up to 1 A (not zener or tvs): (V/Vrated)^2.4 above a ratio of 0.3, and 0.056 up to it (FIDES 2022, p. 137).
func PiezoFIT ¶
PiezoFIT returns the FIDES 2022 FIT of a quartz crystal resonator or oscillator (pp. 163-164). The output current I of an oscillator counts when it is 80 % of Imax or more.
func PiezoType ¶
func PiezoType(c *Component) piezoType
PiezoType returns the quartz crystal type of a component: an oscillator if tagged osc or oscillator, else a resonator; through-hole if tagged tht or its package is through-hole, else surface-mounted.
func ResistorFIT ¶
ResistorFIT returns the FIDES 2022 FIT of a resistor (pp. 146-148).
func ResistorType ¶
func ResistorType(c *Component) resistorType
ResistorType returns the FIDES 2022 resistor type of a component, from its tags, rated power and value (pp. 146-147):
- melf: "MiniMELF" fixed resistor
- network: SMD resistor network (λ0 × √N, N resistors)
- thick: SMD thick film, or high-power thick film if rated 1 W or more
- ww: wirewound precision, or high-power wirewound if rated 1 W or more
- pot, potmeter, potentiometer, variable: non-wirewound potentiometer
- otherwise: thin film, precision, high-stability, by value; SMD unless tagged tht
func Rthja_semi ¶
Rthja_semi returns the number of pins, the junction-to-ambient thermal resistance (on a substrate of high thermal conductivity if k is true) and the junction-to-case thermal resistance of a discrete package or one of its equivalents, from the package table; -1, -1, -1 if it is not there.
Types ¶
type Bom ¶
type Bom struct {
Components []*Component
}
func (*Bom) FITAll ¶
FITAll computes FIT for every component. A nil error entry means success; NaN in the corresponding fits entry means that component failed to compute.
func (*Bom) FITByBlock ¶
FITByBlock groups computed FIT values by the Block field on each Component. Components with NaN FIT or an empty Block are skipped.
type Component ¶
type Component struct {
Name string // Denominator or reference
Value float64 // Value in SI unit
Tolerance float64
Type string // Part number
Description string // Free description
Class string
Tags []string
Block string // For classifying per block or function
Package string
N int // Number of devices
Np int // TODO Number of pins
Rtha float64
Vp, V, P, I, T float64 // Working conditions (T is the delta over ambient)
Vpmax, Vmax, Pmax, Imax, Tmax float64 // Device limits
// Temperature coefficient. Set to NaN for undefined
TC float64
// Printed circuit boards (FIDES 2022, p. 175)
Layers int // number of layers
Mounts int // number of mounting points: SMD pads and through-holes
PiClass float64 // ΠClass, 1 to 6, from the minimum conductor width and spacing
PiTechno float64 // ΠTechno: 0.25 through-holes, 0.5 blind holes, 1 micro-vias, 2.5 pad on via
FIT float64
}
func NewComponent ¶
NewComponent returns a component whose working conditions V, I and P are not set (NaN). A zero V, I or P is a valid working condition (a capacitor or diode at 0 V, an unloaded resistor), so NaN, not 0, marks a value as missing.
type Mission ¶
func NewMission ¶
func NewMission() *Mission
type Package ¶
type Package struct {
Name string
Npins int
Tags []string
// contains filtered or unexported fields
}
func NewPackage ¶
func (*Package) Rtha ¶
Rtha returns the default junction-to-ambient thermal resistance of the package in K/W, on a substrate with the given thermal conductivity in W/(m·K): Ctype·Np^-0.58·K for integrated circuit packages (FIDES 2022, p. 119), else the value of the package table (p. 120). It returns -1 if there is none: an IC package without a pin count, QFN (whose formula needs the package area), or a discrete package without a table value.
It takes the name and pin count that NewPackage keeps apart for IC packages (SOIC8: SOIC, 8), and the table row of discrete packages and their equivalents.
type Phase ¶
type Phase struct {
Name string
Duration float64
NCycles int
CycleDuration float64
On bool
Tamb float64
Tdelta float64
Tmax float64
RH float64
Grms float64
// 1 = weak,low; 2 = high,strong
SalinePollution float64
// 1 = weak,low; 1.5 = moderate; 2 = strong,high
AmbientPollution float64
// 1 = weak,low; 2 = moderate, 4 = strong,high
ZonePollution float64
// Ingress protection (true = hermetic, sealed)
IP bool
Tags string
// Application factor
AppFactor float64
}