NL5 Forum Index  
 FAQ  •  Search  •  Memberlist  •  Usergroups   •   fChat   •  Register  •  Profile  •  Log in to check your private messages  •  Log in
 Transient Simulation Runs View next topic
View previous topic
Post new topicReply to topic
Author Message
darko



Joined: 18 Aug 2009
Posts: 14

PostPosted: Thu Aug 20, 2009 3:19 pm Reply with quoteBack to top

It would be nice if I could specify a transient simulation than ran until a certain condition was achieved rather than for a certain time. For example, lets say I want to simulate one period of a soft switched converter. I may not know exactly how long that period will be, but I do know that the next period will start when the switch voltage is zero. I can run batched simulations more efficiently if I only simulate as long as I have to.

I also second the need for a SPICE to PWL model converter (mostly for power semiconductors).

Overall I compliment you on a well designed simulator. It was about time that SOMEONE created a PWL simulator that can be controlled from other languages (PYTHON, MATLAB, etc). I will be at the ECCE so if I have time I'll stop by.
View user's profileSend private message
nl5
Site Admin


Joined: 15 Jan 2009
Posts: 25

PostPosted: Fri Aug 21, 2009 7:11 am Reply with quoteBack to top

Thank you for suggestion, I'll put "Run until..." option into my "to do " list. However, you can do something similar with the script, checking for condition at the end of the screen. Here is example from the Manual:

Wait for condition. Transient is running until peak-to-peak value of the trace is less than specified threshold. ...

threshold=1e-6;
tran;
while( v(c1).pp>threshold ) cont;

Of course, it's not exactly it, but may work for now.
Alexei.
View user's profileSend private messageSend e-mail
nl5
Site Admin


Joined: 15 Jan 2009
Posts: 25

PostPosted: Thu Nov 05, 2009 4:07 pm Reply with quoteBack to top

nl5 wrote:
I'll put "Run until..." option into my "to do " list.

"Run until..." is available in 1.33 in Transient/Settings window.
View user's profileSend private messageSend e-mail
Display posts from previous:      
Post new topicReply to topic


 Jump to:   



View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum