-
Notifications
You must be signed in to change notification settings - Fork 0
module equation_builder.API
ThomWright edited this page Sep 7, 2014
·
2 revisions
Table of Contents generated with DocToc
Create an equation to describe a circuit.
- Source:
- module:matrixy
- module:chai
-
- Object
- Source:
Name Type Description stamp
module:equation_builder.stamp getEquation
module:equation_builder.getEquation -
- Object
- Source:
Name Type Description nodalAdmittances
external:Matrix inputs
external:Matrix -
getEquation() → {module:equation_builder.equation}
-
- Source:
-
Stamp an element into the circuit equation.
Name Type Description value
Number Value to stamp.
- Source:
Choice of units to stamp.
- Type
- Object
# Stamp a 5 ohm resistor between nodes 1 and 2 stamp(5).ohms.between(1, 2)
# Stamp 5 volts from node 1 to node 2 stamp(5).volts.from(1).to(2)
# Stamp a Voltage-Controlled-Current-Source (VCCS) stamp.a.gain.of(10).multiplying.a.voltage.from(1).to(2) .controlling.a.currentSource.from(2).to(3)