MCPcopy Create free account
hub / github.com/SLiCAP/SLiCAP_python / doLaplace

Function doLaplace

SLiCAP/SLiCAPshell.py:429–476  ·  view source on GitHub ↗

Returns a transfer function or a detector voltage or current. :return: SLiCAP results object of which the following attributes with be set as a result of this instruction: :rtype: SLiCAP.SLiCAPinstruction.instruction object **Return value attributes**

(cir, source='circuit', detector='circuit', lgref='circuit', 
              transfer='gain', convtype=None, pardefs=None, numeric=False, 
              stepdict=None)

Source from the content-addressed store, hash-verified

427 return result
428
429def doLaplace(cir, source='circuit', detector='circuit', lgref='circuit',
430 transfer='gain', convtype=None, pardefs=None, numeric=False,
431 stepdict=None):
432 """
433 Returns a transfer function or a detector voltage or current.
434
435 :return: SLiCAP results object of which the following attributes with be
436 set as a result of this instruction:
437
438 :rtype: SLiCAP.SLiCAPinstruction.instruction object
439
440 **Return value attributes**
441
442 - doLaplace(<circuit>).M: MNA matrix (sympy.Matrix)
443 - doLaplace(<circuit>.Iv: Vector with independent variables (sympy.Matrix)
444 - doLaplace(<circuit>).Dv: Vector with dependent variables (sympy.Matrix)
445 - doLaplace(<circuit>).numer: Numerator of the voltage transfer from V1 to
446 V_out (sympy.Expr)
447 - doLaplace(<circuit>).denom: Denominator of the voltage transfer from V1
448 to V_out (sympy.Expr)
449 - doLaplace(<circuit>).laplace: Voltage transfer from V1 to V_out
450 (sympy.Expr)
451
452 If parameter stepping is applied, all above attributes are lists of values
453 or expressions for each step.
454
455 **Parameters**
456
457 See section `General instruction format`_.
458
459 **Example**
460
461 .. code-block:: python
462
463 import SLiCAP as sl
464 sl.initProject("My First RC Network")
465 # Generate the circuit object from the netlist
466 cir = sl.makeCircuit("myFirstRCnetwork.cir")
467 # Obtain the voltage transfer from V1 to V_out:
468 V_gain = sl.doLaplace(cir).laplace
469
470 """
471 result = _executeInstruction(cir, transfer=transfer, source=source,
472 detector=detector, lgref=lgref,
473 convtype=convtype, datatype='laplace',
474 pardefs=pardefs, numeric=numeric,
475 stepdict=stepdict)
476 return result
477
478def doDC(cir, source='circuit', detector='circuit', lgref='circuit',
479 transfer='gain', convtype=None, pardefs=None, numeric=False,

Callers

nothing calls this directly

Calls 1

_executeInstructionFunction · 0.85

Tested by

no test coverage detected