From: Clifford W. <cli...@cl...> - 2007-12-26 10:44:18
|
Hi, when I create a subcircuit in which I simply connect ports without any devices in between, the simulation gives me bogus results. It works fine with zero-resistance resistors thought. So the following netlist does not work: --snip-- .Def:xwire _net0 _net0 _net1 _net1 .Def:End --snap-- While this one is working fine: --snip-- .Def:xwire _net0 _net1 _net2 _net3 R:R1.0 _net1 _net0 R="0" R:R2.0 _net3 _net2 R="0" .Def:End --snap-- Here is the full working netlist: --snip-- # Qucs 0.0.12 /home/clifford/.qucs/DEMO_prj/xwire_test.sch .Def:xwire _net0 _net1 _net2 _net3 R:R1.0 _net1 _net0 R="0" R:R2.0 _net3 _net2 R="0" .Def:End Vdc:V1 _net0 _net1 U="1 V" .TR:TR1 Type="lin" Start="0" Stop="1 ms" Points="11" IntegrationMethod="Trapezoidal" Order="2" InitialStep="1 ns" MinStep="1e-16" MaxIter="150" reltol="0.001" abstol="1 pA" vntol="1 uV" Temp="26.85" LTEreltol="1e-3" LTEabstol="1e-6" LTEfactor="1" Solver="CroutLU" relaxTSR="no" initialDC="yes" MaxStep="0" VProbe:Pr2 _net2 _net3 R:R1 _net3 _net2 R="4 Ohm" Temp="26.85" Tc1="0.0" Tc2="0.0" Tnom="26.85" IProbe:Pr1 _net7 _net2 R:R2 _net6 _net7 R="1 Ohm" Temp="26.85" Tc1="0.0" Tc2="0.0" Tnom="26.85" Sub:XWire1 _net0 _net4 _net1 _net5 Type="xwire" Sub:XWire2 _net5 _net3 _net4 _net6 Type="xwire" --snap-- yours, - clifford -- "Backups are for wimps. Real men upload their data to an FTP site and have everyone else mirror it." -- Linus Torvalds |
From: Stefan J. <st...@gr...> - 2007-12-29 12:00:24
|
Am Mi, 26.12.2007, 11:39, schrieb Clifford Wolf: > Hi, Hello! > when I create a subcircuit in which I simply connect ports without any > devices in between, the simulation gives me bogus results. It works fine > with zero-resistance resistors thought. > > So the following netlist does not work: > > --snip-- > .Def:xwire _net0 _net0 _net1 _net1 > .Def:End > --snap-- > > While this one is working fine: > > --snip-- > .Def:xwire _net0 _net1 _net2 _net3 > R:R1.0 _net1 _net0 R="0" > R:R2.0 _net3 _net2 R="0" > .Def:End > --snap-- > > Here is the full working netlist: > > --snip-- > # Qucs 0.0.12 /home/clifford/.qucs/DEMO_prj/xwire_test.sch > > .Def:xwire _net0 _net1 _net2 _net3 > R:R1.0 _net1 _net0 R="0" > R:R2.0 _net3 _net2 R="0" > .Def:End > > Vdc:V1 _net0 _net1 U="1 V" > .TR:TR1 Type="lin" Start="0" Stop="1 ms" Points="11" > IntegrationMethod="Trapezoidal" Order="2" InitialStep="1 ns" > MinStep="1e-16" MaxIter="150" reltol="0.001" abstol="1 pA" vntol="1 uV" > Temp="26.85" LTEreltol="1e-3" LTEabstol="1e-6" LTEfactor="1" > Solver="CroutLU" relaxTSR="no" initialDC="yes" MaxStep="0" > VProbe:Pr2 _net2 _net3 > R:R1 _net3 _net2 R="4 Ohm" Temp="26.85" Tc1="0.0" Tc2="0.0" Tnom="26.85" > IProbe:Pr1 _net7 _net2 > R:R2 _net6 _net7 R="1 Ohm" Temp="26.85" Tc1="0.0" Tc2="0.0" Tnom="26.85" > Sub:XWire1 _net0 _net4 _net1 _net5 Type="xwire" > Sub:XWire2 _net5 _net3 _net4 _net6 Type="xwire" > --snap-- This one, about the "two or more subcircuit ports, but same node", is known already. I've not yet come to an implemented solution, but it is on my todo list. Thanks for reporting, Stefan. |