electricpy

Description

electricpy Package - Main Module.

>>> import electricpy as ep

Filled with calculators, evaluators, and plotting functions, this package will provide a wide array of capabilities to any electrical engineer.

Built to support operations similar to Numpy and Scipy, this package is designed to aid in scientific calculations.

Functions

acpiv([S, I, VLL, VLN, V, PF])

AC Power-Voltage-Current Relation Function.

bridge_impedance(z1, z2, z3, z4, z5)

Bridge Impedance Calculator.

characterz(R, G, L, C[, freq])

Characteristic Impedance Calculator.

cosfilt(arr, Srate[, domain])

Cosine Filter Function.

cprint(val[, unit, label, title, pretty, ...])

Phasor (Complex) Printing Function.

curdiv(Ri, Rset[, Vin, Iin, Vout, combine])

Electrical Current Divider Function.

de_calc(rho[, freq])

De Transmission Line Value Calculator.

dynetz([delta, wye, round])

Delta-Wye Impedance Converter.

fftplot(dc, real[, imag, title])

FFT System Plotter.

fftsumplot(dc, real[, imag, freq, xrange, ...])

FFT Summation Plotter.

funcfft(func[, minfreq, maxmult, complex])

FFT Evaluator for Callable Functions.

geninternalv(I, Zs, Vt[, Vgn, Zm, Zmp, ...])

Electric Generator Internal Voltage Evaluator.

gmd(Ds, *args)

GMD (Geometric Mean Distance) Calculator.

harmonics(real[, imag, dc, freq, domain])

Harmonic Function Generator.

hartleydata(BW, M)

Hartley Data Function.

ic_555_astable([R, C, freq, t_high, t_low])

555 Integrated Circuit Calculator.

ic_555_monostable([R, C, freq, t_high, t_low])

555 Integrated Circuit Calculator.

induction_machine_slip(Nr[, freq, poles])

Induction Machine slip calculator.

instpower(P, Q, t[, freq])

Instantaneous Power Function.

ipu(S[, VLL, VLN, V1phs])

Per-Unit Current Evaluator.

iscrl(V, Z[, t, f, mxcurrent, alpha])

Short-Circuit-Current (ISC) Calculator.

led_resistor(Vsrc[, Vfwd, Ifwd])

LED Resistor Calculator.

lm317(r1, r2, v_out)

LM317 linear voltage regulator solver.

machslip(mech[, syn])

Machine Slip Calculator.

motorstartcap(V, I[, freq])

Single Phase Motor Starting Capacitor Function.

natfreq(C, L[, Hz])

Natural Frequency Evaluator.

nlinpf([PFtrue, PFdist, PFdisp])

Non-Linear Power Factor Evaluator.

non_linear_pf([PFtrue, PFdist, PFdisp])

Non-Linear Power Factor Evaluator.

parallel_plate_capacitance([A, d, e, C])

Parallel-Plate Capacitance Calculator.

peak(val)

Sinusoid RMS to Peak Converter.

pfcorrection(S, PFold, PFnew[, VLL, VLN, V, ...])

Power Factor Correction Function.

phaseline([VLL, VLN, Iline, Iphase, realonly])

Line-Line to Line-Neutral Converter.

phs3valpha(VA[, VB, VC])

Three-Phase V-Alpha Calculator.

pi_attenuator(Adb, Z0)

Pi attenuator.

powerflow(Vsend, Vrec, Xline)

Approximated Power-Flow Calculator.

powerimpedance(S, V[, PF, parallel, terms])

Impedance from Apparent Power Formula.

powerset([P, Q, S, PF, find])

Power Triangle Conversion Function.

primary(val, Np[, Ns, invert])

Electrical Transformer Primary Evaluator.

propagation_constants(z, y, length)

Transaction Line Propagation Constant Calculator.

puchgbase(quantity, puB_old, puB_new)

Per-Unit Change of Base Function.

reactance(z[, freq, sensetivity])

Capacitance/Inductance from Impedance.

rms(val)

Sinusoid Peak to RMS Converter.

rxrecompose(x_pu, XoR[, S3phs, VLL, VLN])

Resistance/Reactance from Per-Unit System Evaluator.

sampfft(data, dt[, minfreq, complex])

Sample Dataset FFT Evaluator.

secondary(val, Np[, Ns, invert])

Electrical Transformer Secondary Evaluator.

shannondata(BW, S, N)

Shannon Data Function.

short_circuit_current(V, Z[, t, f, ...])

Short-Circuit-Current (ISC) Calculator.

sinfilt(arr, Srate[, domain])

Sine Filter Function.

slew_rate([V, freq, SR, find])

Slew Rate Calculator.

solenoid_inductance([A, l, N, u, L])

Solenoid Inductance Calculator.

suspension_insulators(number_capacitors, ...)

Discrete Capacitors Voltage in a Suspension Insulator Strain.

syncspeed(Npol[, freq, Hz, rpm])

Synchronous Speed Calculator Function.

t_attenuator(Adb, Z0)

T attenuator.

tap_changing_transformer(Vgen, Vdis, Pload, ...)

Calculate Turn Ratio of Load Tap Changing Transformer.

tcycle([ncycles, freq])

Time of Electrical Cycles.

transposez(Zeq[, fabc, fcab, fbca, linelen])

Transmission Matrix Equivalent Transposition Calculator.

unbalance(A, B, C[, all])

Voltage/Current Unbalance Function.

vipf([V, I, PF, find])

Voltage / Current / Power Factor Solver.

voltdiv(Vin, R1, R2[, Rload])

Electrical Voltage Divider Function.

vscdcbus(VLL, Zs, P[, Q, mmax, debug])

Voltage Sourced Converter DC Bus Voltage Function.

vscgains(Rs, Ls[, tau, freq])

Voltage Sourced Converter Gains Calculator.

wireresistance([length, diameter, rho, R])

Wire Resistance Calculator.

wrms(func[, dw, NN, quad, plot, title, round])

WRMS Function.

zdecompose(Zmag, XoR)

Impedance Decomposition Function.

zener_diode_power(Vin, Vo, R)

Zener diode power loss function.

zener_diode_required_resistor(Vin, Vo, I)

Zener diode required resistance function .

zperlength([Rd, Rself, Rac, Rgwac, De, rho, ...])

Transmission Line Impedance (RL) Calculator.

zpu(S[, VLL, VLN])

Per-Unit Impedance Evaluator.

zrecompose(z_pu, S3phs[, VLL, VLN])

Impedance from Per-Unit System Evaluator.

zsource(S, V, XoR[, Sbase, Vbase, perunit])

Source Impedance Calculator.