|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectCommonsMath_ODE_RLC_circuit
public class CommonsMath_ODE_RLC_circuit
Example of a system of first order differential equations (ODEs): Transient response of a series RLC circuit.
i = iR = iL = iC ; duC/dt = iC/C ; diL/dt = uL/L ;
uR = R·iR ; uL = cos 2 π f t - uC - uR ;
See CommonsMath_ODE_RLC_circuit~Demo.jxn.
Constructor Summary | |
---|---|
CommonsMath_ODE_RLC_circuit(double R,
double L,
double C,
double lgf)
Stores the parameters of the RLC circuit and the frequency of the sinusodial voltage source. |
Method Summary | |
---|---|
void |
computeDerivatives(double t,
double[] y,
double[] ydot)
Computes duC/dt and diL/dt . |
int |
getDimension()
Returns the number of states(=2). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommonsMath_ODE_RLC_circuit(double R, double L, double C, double lgf)
R
- resistanceL
- inductanceC
- capacitancelgf
- log10 of the frequencyMethod Detail |
---|
public int getDimension()
getDimension
in interface FirstOrderDifferentialEquations
public void computeDerivatives(double t, double[] y, double[] ydot)
duC/dt
and diL/dt
.
computeDerivatives
in interface FirstOrderDifferentialEquations
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |