Skip to main content
1-Visitor
December 19, 2018
Question

Solving of spice netlist using Mathcad prime 5.0

  • December 19, 2018
  • 4 replies
  • 2870 views

Is there any way to generate the voltage and current equations from spice netlist using Mathcad prime 5.0??

4 replies

25-Diamond I
December 19, 2018

It may be possible to do so.

You would have to write a program which reads in the spice file and parses it. Looks like a lot of work.

Guess that calculations would only be possible for simple circuits only, though.

21-Topaz II
December 19, 2018
23-Emerald IV
December 19, 2018

While parsing of the input file may be doable, to actually calculate voltages and currents in a given circuit requires much more. You have to have models and their parameters. Note that models differ between when you do an AC simulation or a TRANsient. If you want to be able to tackle any spice input deck, your effort will be huge, and given the fact that PRIME is not a programming language (!) I think you better crack another nut.

 

This is not to say that it's impossible to calculate electronic circuits, in time or frequency domain.

For a small example:

LM_20181219_Spice.png

Success!
Luc

 

14-Alexandrite
December 21, 2018

There's no tool in Mathcad to do this. But there's a free addon for Maple that turns a netlist into equations

 

https://www.maplesoft.com/applications/view.aspx?sid=127001

 

BB11-VisitorAuthor
1-Visitor
December 21, 2018

Is there any add on for the Mathcad prime like syrup for Maple??

23-Emerald IV
December 21, 2018

Mathcad from version 4 through 13 uses/used Maple as the symbolic engine. Starting with Mathcad 14, and on to Prime 5 the symbolic engine is MuPad.

 

So: You cannot have Prime use Maple.

 

If you want to use Maple, buy Maple...

 

Success

Luc