当前位置: 首页>>代码示例>>C#>>正文


C# Circuit.stampNonLinear方法代码示例

本文整理汇总了C#中Circuit.stampNonLinear方法的典型用法代码示例。如果您正苦于以下问题:C# Circuit.stampNonLinear方法的具体用法?C# Circuit.stampNonLinear怎么用?C# Circuit.stampNonLinear使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Circuit的用法示例。


在下文中一共展示了Circuit.stampNonLinear方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: stamp

 public override void stamp(Circuit sim)
 {
     int vn = sim.nodeCount + pins[2].voltSource;
     sim.stampNonLinear(vn);
     sim.stampNonLinear(0);
     sim.stampNonLinear(lead_node[2]);
 }
开发者ID:DotNetSparky,项目名称:SharpCircuit,代码行数:7,代码来源:PhaseCompElm.cs

示例2: stamp

 public override void stamp(Circuit sim)
 {
     // output pin
     sim.stampVoltageSource(0, lead_node[1], pins[1].voltSource);
     // attach Vi to R1 pin so its current is proportional to Vi
     sim.stampVoltageSource(lead_node[0], lead_node[4], pins[4].voltSource, 0);
     // attach 5V to R2 pin so we get a current going
     sim.stampVoltageSource(0, lead_node[5], pins[5].voltSource, 5);
     // put resistor across cap pins to give current somewhere to go
     // in case cap is not connected
     sim.stampResistor(lead_node[2], lead_node[3], cResistance);
     sim.stampNonLinear(lead_node[2]);
     sim.stampNonLinear(lead_node[3]);
 }
开发者ID:DotNetSparky,项目名称:SharpCircuit,代码行数:14,代码来源:VCOElm.cs

示例3: stamp

 public override void stamp(Circuit sim)
 {
     sim.stampNonLinear(lead_node[0]);
     sim.stampNonLinear(lead_node[1]);
 }
开发者ID:DotNetSparky,项目名称:SharpCircuit,代码行数:5,代码来源:Lamp.cs

示例4: stamp

 public override void stamp(Circuit sim)
 {
     sim.stampNonLinear(lead_node[anode]);
     sim.stampNonLinear(lead_node[cnode]);
     sim.stampNonLinear(lead_node[gnode]);
     sim.stampNonLinear(lead_node[inode]);
     sim.stampResistor(lead_node[gnode], lead_node[cnode], cresistance);
     diode.stamp(sim, lead_node[inode], lead_node[gnode]);
 }
开发者ID:DotNetSparky,项目名称:SharpCircuit,代码行数:9,代码来源:SiliconRectifier.cs

示例5: stamp

 public void stamp(Circuit sim, int n0, int n1)
 {
     nodes[0] = n0;
     nodes[1] = n1;
     sim.stampNonLinear(nodes[0]);
     sim.stampNonLinear(nodes[1]);
 }
开发者ID:DotNetSparky,项目名称:SharpCircuit,代码行数:7,代码来源:Diode.cs

示例6: stamp

 public override void stamp(Circuit sim)
 {
     // stamp voltage divider to put ctl pin at 2/3 V
     sim.stampResistor(lead_node[N_VIN], lead_node[N_CTL], 5000);
     sim.stampResistor(lead_node[N_CTL], 0, 10000);
     // output pin
     sim.stampVoltageSource(0, lead_node[N_OUT], pins[N_OUT].voltSource);
     // discharge pin
     sim.stampNonLinear(lead_node[N_DIS]);
 }
开发者ID:DotNetSparky,项目名称:SharpCircuit,代码行数:10,代码来源:TimerElm.cs

示例7: stamp

 public override void stamp(Circuit sim)
 {
     sim.stampVoltageSource(0, lead_node[3], voltSource);
     sim.stampNonLinear(lead_node[3]);
     sim.stampNonLinear(lead_node[1]);
 }
开发者ID:DotNetSparky,项目名称:SharpCircuit,代码行数:6,代码来源:TriStateBuffer.cs

示例8: getVoltageText

 /*public override void getInfo(String[] arr) {
     arr[0] = "op-amp";
     arr[1] = "V+ = " + getVoltageText(lead_volt[1]);
     arr[2] = "V- = " + getVoltageText(lead_volt[0]);
     // sometimes the voltage goes slightly outside range, to make
     // convergence easier. so we hide that here.
     double vo = Math.Max(Math.Min(lead_volt[2], maxOut), minOut);
     arr[3] = "Vout = " + getVoltageText(vo);
     arr[4] = "Iout = " + getCurrentText(current);
     arr[5] = "range = " + getVoltageText(minOut) + " to " + getVoltageText(maxOut);
 }*/
 public override void stamp(Circuit sim)
 {
     int vn = sim.nodeCount + voltSource;
     sim.stampNonLinear(vn);
     sim.stampMatrix(lead_node[2], vn, 1);
 }
开发者ID:DotNetSparky,项目名称:SharpCircuit,代码行数:17,代码来源:OpAmp.cs


注:本文中的Circuit.stampNonLinear方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。