Returns the (Laplace) solution of the circuit. The (Laplace) values of all independent sources are taken as input signals. The application of initial conditions has not yet been implemented. The arguments for source, detector, lgref and transfer will be ignored and con
(cir, source=None, detector=None, lgref=None, transfer=None,
convtype=None, pardefs=None, numeric=False, stepdict=None)
| 954 | return result |
| 955 | |
| 956 | def doSolve(cir, source=None, detector=None, lgref=None, transfer=None, |
| 957 | convtype=None, pardefs=None, numeric=False, stepdict=None): |
| 958 | """ |
| 959 | Returns the (Laplace) solution of the circuit. |
| 960 | |
| 961 | The (Laplace) values of all independent sources are taken as input signals. |
| 962 | The application of initial conditions has not yet been implemented. |
| 963 | |
| 964 | The arguments for source, detector, lgref and transfer will be ignored and |
| 965 | considered: None. |
| 966 | |
| 967 | :return: SLiCAP results object of which the following attributes with be |
| 968 | set as a result of this instruction: |
| 969 | |
| 970 | :rtype: SLiCAP.SLiCAPinstruction.instruction object |
| 971 | |
| 972 | **Return value attributes** |
| 973 | |
| 974 | - doSolve(<circuit>).M: MNA matrix (sympy.Matrix) |
| 975 | - doSolve(<circuit>.Iv: Vector with independent variables (sympy.Matrix) |
| 976 | - doSolve(<circuit>).Dv: Vector with dependent variables (sympy.Matrix) |
| 977 | - doSolve(<circuit>).solve Vector with solutions of dependent variables |
| 978 | (sympy.Matrix) |
| 979 | |
| 980 | If parameter stepping is applied, all above attributes are lists of values |
| 981 | or expressions for each step. |
| 982 | |
| 983 | **Parameters** |
| 984 | |
| 985 | See section `General instruction format`_. |
| 986 | |
| 987 | **Example** |
| 988 | |
| 989 | .. code-block:: python |
| 990 | |
| 991 | import SLiCAP as sl |
| 992 | sl.initProject("My First RC Network") |
| 993 | # Generate the circuit object from the netlist |
| 994 | cir = sl.makeCircuit("myFirstRCnetwork.cir") |
| 995 | # Obtain the network solution: |
| 996 | solution = sl.doSolve(cir).solve |
| 997 | |
| 998 | """ |
| 999 | if transfer != None: |
| 1000 | print("Warning: Invalid transfer={} will be changed to None".format(str(transfer))) |
| 1001 | |
| 1002 | result = _executeInstruction(cir, transfer=None, source=None, |
| 1003 | detector=None, lgref=None, |
| 1004 | convtype=convtype, datatype='solve', |
| 1005 | pardefs=pardefs, numeric=numeric, |
| 1006 | stepdict=stepdict) |
| 1007 | return result |
| 1008 | |
| 1009 | def doDCsolve(cir, source=None, detector=None, lgref=None, transfer=None, |
| 1010 | convtype=None, pardefs=None, numeric=False, stepdict=None): |
nothing calls this directly
no test coverage detected