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

Function doDenom

SLiCAP/SLiCAPshell.py:573–615  ·  view source on GitHub ↗

Returns the denominator of a transfer 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 attrib

(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

571 return result
572
573def doDenom(cir, source='circuit', detector='circuit', lgref='circuit',
574 transfer='gain', convtype=None, pardefs=None, numeric=False,
575 stepdict=None):
576 """
577 Returns the denominator of a transfer or a detector voltage or current.
578
579 :return: SLiCAP results object of which the following attributes with be
580 set as a result of this instruction:
581
582 :rtype: SLiCAP.SLiCAPinstruction.instruction object
583
584 **Return value attributes**
585
586 - doDenom(<circuit>).M: MNA matrix (sympy.Matrix)
587 - doDenom(<circuit>).Dv: Vector with dependent variables (sympy.Matrix)
588 - doDenom(<circuit>).denom: Denominator of the voltage transfer from V1
589 to V_out (sympy.Expr)
590
591 If parameter stepping is applied, all above attributes are lists of values
592 or expressions for each step.
593
594 **Parameters**
595
596 See section `General instruction format`_.
597
598 **Example**
599
600 .. code-block:: python
601
602 import SLiCAP as sl
603 sl.initProject("My First RC Network")
604 # Generate the circuit object from the netlist
605 cir = sl.makeCircuit("myFirstRCnetwork.cir")
606 # Obtain the numerator od the voltage transfer from V1 to V_out:
607 V_gain = sl.doNumer(cir).laplace
608
609 """
610 result = _executeInstruction(cir, transfer=transfer, source=source,
611 detector=detector, lgref=lgref,
612 convtype=convtype, datatype='denom',
613 pardefs=pardefs, numeric=numeric,
614 stepdict=stepdict)
615 return result
616
617def doTime(cir, source='circuit', detector='circuit', lgref='circuit',
618 transfer=None, convtype=None, pardefs=None, numeric=False,

Callers

nothing calls this directly

Calls 1

_executeInstructionFunction · 0.85

Tested by

no test coverage detected