Is it possible to run a netlist from the command line but specifying what kind of analysis to run?

19 views
Skip to first unread message

pablo_sole...@brown.edu

unread,
May 6, 2019, 2:02:50 PM5/6/19
to xyce-users
I want to run a netlist from the command line in a way that lets me leave the netlist unchanged but changing the kind of analysis

For example, I want to run 
>xyce <option1>   "circuit.cir"
and do a transient analysis and without changing the netlist run
>xyce <option2>   "circuit.cir"
and step through temperatures and do output multiple transient analyses to the same csv

The effect would be having two analysis lines in the netlist where one is always commented out. It would save the trouble of going into the netlist and commenting out one and uncommenting the other.

Is this possible?

xyce-users

unread,
May 6, 2019, 2:08:38 PM5/6/19
to xyce-users
Xyce does not have this capability.  You will either have to edit the netlist or implement a script that does it for you.

pablo_sole...@brown.edu

unread,
May 6, 2019, 3:27:11 PM5/6/19
to xyce-users
If it is not possible, then is it possible to do so through an include file? In other words, can the .INCLUDE file have the analysis line?
If I were to have no analysis line in the main netlist and include a file "analysis.inc" with the line ".tran ..." , ".print tran..." would that work? Then I could just choose 
to include different include files for different analyses?

xyce-users

unread,
May 6, 2019, 3:33:44 PM5/6/19
to xyce-users
Yes, you can put anything you like into included files, including the analysis or .print lines.  You could easily swap out all the analysis and output statements by changing which file you include.  Alternatively, you could have your entire circuit included by a top-level "netlist" that contains only analysis and options lines.
Reply all
Reply to author
Forward
0 new messages