The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl Simulators >> Circuit Simulators >> How to set pulse voltage in Spice 3f5? https://designers-guide.org/forum/YaBB.pl?num=1269133222 Message started by ercolino on Mar 20th, 2010, 6:00pm |
Title: How to set pulse voltage in Spice 3f5? Post by ercolino on Mar 20th, 2010, 6:00pm Hi I need to run several transient simulations for an analog circuit with a voltage source with the pulse function to study the behavior of a PWM circuit. In each simulation I have to modify several parameters including the pulse value voltage (V2) and the initial conditions at some nodes. These parameters' values are linked by simple math relationships. Is there a way to set only one parameter, say the pulse value, and automatically calculate and set the others during each simulation run? The "pedestrian" approach that I took so far is to calculate the dependent parameters' values by hand and changed in the source before each run. I'm using MacSpice that relies in Spice 3f5. Thanks in advanced ercolino |
Title: Re: How to set pulse voltage in Spice 3f5? Post by ercolino on Mar 22nd, 2010, 6:58am Sorry I'm new in electronic simulation. Perhaps this not the right place to pose this question or Spice 3f5 is not the right tool for this kind of job. Can someone point me in the right direction? Thanks in advanced... |
Title: Re: How to set pulse voltage in Spice 3f5? Post by pancho_hideboo on Mar 22nd, 2010, 7:03am Why do you use old simulator such as MacSPICE ? Even in Spice3f5, I think you can use ".alter" statement for your purpose. Or prepare many netlists where necessary parameters are changed. If you have to use free simulator, use "LTSpice". Currently there are many free simulators, even if you use MacOS. Show me your platform's information. http://www.gpleda.org/index.html http://qucs.sourceforge.net/ http://www.linear.com/designtools/software/index.jsp |
Title: Re: How to set pulse voltage in Spice 3f5? Post by ercolino on Mar 22nd, 2010, 9:42am Thanks for your reply pancho_hideboo. I'm using a MacBook Pro (Intel Core 2 Duo 2.53 GHz). I've couldn't find other circuit simulation software that runs with the Finder in the new macs. I could use also X11 (Unix) applications, but there also I found SPICE 3f5. So I preferred MacSpice which relies in the same simulation core but can be launched directly from the Finder. That's no a big issue, but I do not use many X11 applications and MacSpice save me some time to get it running and integrates better with other Finder applications, besides the easier installation procedure. I've tried the .alter command, but it only lets you modify the main parameters of a device. In the case of a independent voltage source you can alter the DC and AC values, but there's no way (at least I couldn't find it) to alter the transient function parameters (pulse V2 voltage in my case). It could be a functionality not implemented in MacSpice. I will give a try to gEDA and Qucs. Any advice? By the way, LTSpice doesn't seem to have a Mac OS version. Regards, Ercolino |
Title: Re: How to set pulse voltage in Spice 3f5? Post by ercolino on Mar 22nd, 2010, 10:08am I found in the documentation of gEDA that it is based on NGSpice which in turns is based on SPICE 3f4. So its actually an older version than the one MacSpice uses. Is that right? |
Title: Re: How to set pulse voltage in Spice 3f5? Post by Geoffrey_Coram on Mar 22nd, 2010, 10:29am I'm pretty sure that 3f4 and 3f5 are relatively very close, when you compare the difference between those two and NGSpice. 3f5 is more than 15 years old! |
Title: Re: How to set pulse voltage in Spice 3f5? Post by Charles Williams on Mar 28th, 2010, 9:59am Geoffrey_Coram wrote on Mar 22nd, 2010, 10:29am:
The current version of "MacSpice 3f5" is 2.10.23. http://www.macspice.com/ It has been continually updated and improved by me for about a decade. The release notes list the significant changes: http://www.macspice.com/Release.html and as you can see for yourself, it has come a long way from its roots. All the best Charles |
Title: Re: How to set pulse voltage in Spice 3f5? Post by Charles Williams on Mar 28th, 2010, 10:47am ercolino wrote on Mar 20th, 2010, 6:00pm:
Yes, this is exactly the kind of task MacSpice has been developed for. Its scripting language is a superset of the original 'Spice 3f5/Nutmeg' language, but with the bugs and memory leaks fixed. The MacSpice website has a full set of documentation, links to tutorials and examples: http://www.macspice.com/ One of the example files: http://www.macspice.com/eg/Advanced.html#alter does something similar to what you want. Use the support/feedback link on the MacSpice website to request further assistance if you require it. All the best Charles |
The Designer's Guide Community Forum » Powered by YaBB 2.2.2! YaBB © 2000-2008. All Rights Reserved. |