Library / Methods
Calculation methods
Every method is deterministic code with declared units, equations, sources, assumptions, validity limits and reference test cases. Invalid or physically impossible inputs are rejected with reasons, never silently computed. Open one to run it.
Energy and fluids
Wind rotor power, speed and torquewind.rotor_power · v1.0.0Power captured by a rotor from the wind, the rotor speed from its tip-speed ratio and the shaft torque.Aerodynamics and fluidsAnnual energy production (Weibull site)wind.annual_energy · v1.0.0Annual energy from a Weibull wind-speed distribution and a power curve with cut-in, rated and cut-out speeds.Aerodynamics and fluidsPhotovoltaic array output and annual yieldsolar.pv_output · v1.0.0DC and AC output of a PV array at a given irradiance and temperature, and annual energy from peak sun hours.Electrical powerEnergy balance checkenergy.balance · v1.0.0Rejects any claim that a machine puts out more power than it takes in, and states the efficiency a claim implies.Systems engineering
Civil / structural
Rotor and tower wind thrust, base reactionswind.thrust · v1.0.0Horizontal wind force on the rotor and tower and the overturning moment at the tower base.StructuralSquare spread footing: overturning, sliding and soil bearingfoundation.spread_footing · v1.0.0A square reinforced-concrete pad under a tower: the stabilising weight, factors of safety against overturning and sliding, eccentricity and peak soil pressure.Civil and geotechnicalAnchor bolts on a bolt circle: tension and shear (steel strength)anchor.bolt_circle · v1.0.0Peak tension in the most-loaded anchor of a circular base-plate pattern under moment and axial load, against the ACI 318 ch. 17 steel strength.Structural
Machine design
Staged multi-generator drivetrain: energy balancedrivetrain.staged_generators · v1.0.0Shaft power through a gear stage and bearings into N generators that are engaged one at a time as power rises (clutch staging). Compares the staged arrangement with one generator of the same total rating, and proves the energy balance closes.Mechanical / machine designClutch engagement: torque, slip energy and temperature riseclutch.engagement · v1.0.0Bringing a stationary generator up to shaft speed through a slipping clutch: torque needed, heat in the clutch per engagement and temperature rise.Mechanical / machine designShaft fatigue and yield (DE-Goodman)shaft.fatigue · v1.0.0Combined bending and torsion on a rotating solid or hollow shaft at a stress raiser: fatigue factor by the distortion-energy Goodman criterion and first-cycle yield.Mechanical / machine designShaft first critical speed (uniform, simply supported span)shaft.critical_speed · v1.0.0Lowest bending critical speed of a uniform shaft span between two bearings, and the separation from the running speed.Mechanical / machine designRolling bearing rating life (ISO 281 basic) and static safetybearing.life · v1.0.0Basic rating life L10 from the dynamic load rating, adjusted for reliability, and static safety factor s0.Mechanical / machine designSpur gear tooth bending (Lewis screening)gear.lewis_bending · v1.0.0First sizing of a spur gear: tangential load, pitch-line velocity and Lewis bending stress against an allowable. Final rating is to AGMA 2001 or ISO 6336 (bending and pitting).Mechanical / machine designBolted joint: preload, tightening torque, separation and slipbolt.joint · v1.0.0Metric bolt group under external tension and shear: preload from the proof load, tightening torque, load factor against proof, separation and friction-grip slip.Mechanical / machine design
