From: Jamie on 21 Feb 2010 13:24 Helmut Sennewald wrote: > "Jamie" <jamie_ka1lpa_not_valid_after_ka1lpa_(a)charter.net> schrieb im > Newsbeitrag news:ckdgn.25708$K81.23606(a)newsfe18.iad... > >>Helmut Sennewald wrote: >> >> >>>"Jamie" <jamie_ka1lpa_not_valid_after_ka1lpa_(a)charter.net> schrieb im >>>Newsbeitrag news:Yb0gn.1532$mn6.304(a)newsfe07.iad... >>> >>> >>>>I don't use LTspice a lot how ever, recently I have been poking around >>>>with a simple buck circuit that just does not seem to do in spice as it >>>>does in real life. I can put those little things aside how ever, I do >>>>have a problem when changing values and then exec the sim. It pops up >>>>with an error stating something on the line of >>>>"Step size to small x.xxxxxx xxxxxx, error at NC_01" >>>> >>>>that may not be the exact message but it's close.. >>>> >>>>This can happen just about any where on any component I change the >>>>value on. To fix the problem, I decreas/increase the value by 1. >>>> >>>>For example: >>>> If change an inductor to 150uf, it didn't like that. I could >>>>go larger or smaller, but I found that all I needed to do was to >>>>add 1 or subtract 1 to make the sim happy. >>>> >>>> This does not happen in just inductors, it happens with R's caps >>>>etc.. >>>> >>>> Any one have something on that? >>> >>> >>> >>>Hello Jamie, >>> >>>If the simulator stops with "time step too small", you should try some >>>options to help the solver. >>> >>>1. >>> >>>.tran 20m >>> >>>Set a small time step in .TRAN , e.g 100n if you have a 100kHz switching >>>frequency. >>> >>>.tran 0 20ms 0 100n >>> >>>If it alreay fails at the beginning, you should try with the >>>option "startup" in the .TRAN command. >>>Sometimes additional ".nodeset" will help to get the simulation >>>started. >>> >>>.tran 0 40ms 0 100n startup >>> >>> >>> >>>I prefer to continue as shown below. >>> >>>2.. >>> >>>Control Panel -> SPICE -> Reset to default >>>Control Panel -> Hacks -> Reset to default >>> >>>There are some options which can be helpful. Try either one, >>>some or all in combination. >>>These are SPICE directives which you place in your schematic. >>> >>>.options gmin=1e-10 >>>.options abstol=1e-10 >>>.options reltol=0.003 >>> >>>3. >>> >>>If that fails, you could try with the Alternate solver. >>>Therefore don't use any option from above orr set them to their default >>>values. >>> >>> >>>Control Panel -> SPICE -> Reset to default >>>Control Panel -> SPICE -> Solver: Alternate >>> >>>The default values: >>>.options gmin=1e-12 >>>.options abstol=1e-12 >>>.options reltol=0.001 >>> >>> >>> >>> >>>4. >>> >>>If it still fails, go back to the normal solver. >>> >>>Control Panel -> SPICE -> Solver: Normal >>> >>>Use the following only as the last option, because it can have a >>>lot of side effects, especially if you have used a larger value >>>for cshunt. >>> >>>.options cshunt=1e-15 >>> >>>This adds a capacitor with 1fF from every node to GND. >>>I wouldn't go higher than 1e-14. >>> >>>You should also use a combination of these options as in 2) in this >>>case. >>>.options gmin=1e-10 >>>.options abstol=1e-10 >>>.options reltol=0.003 >>> >>> >>>Best regards, >>>Helmut >>> >> >>As I indicated in another message, I found that after I make the SIM >>happy, I run a SIM and if I change the values back to where they were that >>caused the problem, I can rerun SIM with no issues ;/ >> >> Something is wrong with the software. A initiation problem perhaps? >> >> BTW. >> I do use the options in the control panel to make it nearest to >>real world operation as possible. Nice features btw and still learning >> what most of them do, good thing there are docs :) >> >> I tried a combination of things and no matter what I did, once the error >>was there, it just wasn't going to start. This error takes place >> at the very beginning. It does not happen once the annalistic data starts >>collecting. >> >> Who knows, maybe one day I'll track it down.. >> > > > Hello Jamie, > > Maybe you feel it's different, because LTspice nowadays tries with > "pseudo transient analysis" to find the operating point when the classic > methods failed. > Older versions simply started with the transient simulation even without > having found an operating point. > You could suppress this method with this SPICE-directive. > .options ptrantau=0 > > Best regards, > Helmut > > > I'll keep that noted, I don't remember seeing this in older versions, It may have something to do with it. Thanks.
From: Dave Platt on 21 Feb 2010 15:27 >I don't use LTspice a lot how ever, recently I have been poking around >with a simple buck circuit that just does not seem to do in spice as it >does in real life. I can put those little things aside how ever, I do >have a problem when changing values and then exec the sim. It pops up >with an error stating something on the line of >"Step size to small x.xxxxxx xxxxxx, error at NC_01" > >that may not be the exact message but it's close.. > >This can happen just about any where on any component I change the >value on. To fix the problem, I decreas/increase the value by 1. > >For example: > If change an inductor to 150uf, it didn't like that. I could >go larger or smaller, but I found that all I needed to do was to >add 1 or subtract 1 to make the sim happy. > > This does not happen in just inductors, it happens with R's caps >etc.. > > Any one have something on that? You might want to review the following article, which discusses some of the possible causes of Spice convergence failures (which is what you're seeing here). Much of the discussion applies to most SPICE variants and derivatives. http://www.intusoft.com/articles/converg.pdf -- Dave Platt <dplatt(a)radagast.org> AE6EO Friends of Jade Warrior home page: http://www.radagast.org/jade-warrior I do _not_ wish to receive unsolicited commercial email, and I will boycott any company which has the gall to send me such ads!
From: Wimpie on 22 Feb 2010 09:25 On 21 feb, 16:32, MooseFET <kensm...(a)rahul.net> wrote: > On Feb 21, 6:57 am, Wimpie <wimabc...(a)tetech.nl> wrote: > > > > > On 21 feb, 03:02, Jamie > > > <jamie_ka1lpa_not_valid_after_ka1l...(a)charter.net> wrote: > > > I don't use LTspice a lot how ever, recently I have been poking around > > > with a simple buck circuit that just does not seem to do in spice as it > > > does in real life. I can put those little things aside how ever, I do > > > have a problem when changing values and then exec the sim. It pops up > > > with an error stating something on the line of > > > "Step size to small x.xxxxxx xxxxxx, error at NC_01" > > > > that may not be the exact message but it's close.. > > > > This can happen just about any where on any component I change the > > > value on. To fix the problem, I decreas/increase the value by 1. > > > > For example: > > > If change an inductor to 150uf, it didn't like that. I could > > > go larger or smaller, but I found that all I needed to do was to > > > add 1 or subtract 1 to make the sim happy. > > > > This does not happen in just inductors, it happens with R's caps > > > etc.. > > > > Any one have something on that? > > > Hello Jamie, > > > In addition to the good tips of Helmut, you may check your circuit for > > unrealistic components. A real inductor has loss that you can model > > with resistors and capacitors. > > > To increase the simulation speed and/or solve convergence problems, > > you can add a resistor in parallel with problematic inductors. You may > > add a capacitor in series with the parallel resistor when the effect > > on circuit behavior is too large. > > > Good luck with getting your simulation to run! > > It is better to use the values that are part of the inductor rather > than adding ones. Right click on the inductor and fill in the stray > values. The solver runs faster with them built into the part because > it has an extra optimization for that. > I am not familiar with LTspice. However when you can add parasitics inside the inductor subcircuit model, I agree that it is better to do that instead of adding parasitics externally. Off course it depends on how the parasitics are modeled inside the inductor subcircuit and whether or not parameter extraction has been done for certain inductor types. Best regards, Wim PA3DJS www.tetech.nl
First
|
Prev
|
Pages: 1 2 3 Prev: Speaking of high frequency transformer stuff... Next: Repair water damaged Solar Garden Lamp |