Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

frequency domain spice model in ngspice?

Status
Not open for further replies.

buenos

Advanced Member level 3
Joined
Oct 24, 2005
Messages
960
Helped
40
Reputation
82
Reaction score
24
Trophy points
1,298
Location
Florida, USA
Activity points
9,116
s2spice

hi

is it possible to do transient analysis for tabulated frequency data (behavioral spice model) with ngspice?
(pspice and ltspice can simulate it, but i need an opensource commandline prog)
example from a spice netlist:

Code:
.SUBCKT  cfy30.LIB 1 2 3; Port1 Port2 Common
*Subcircuit generated by S2P2LIB1.EXE on 08-29-2003
* Common Source S-Parameters:                       August  1996 
*  f         S11            S21            S12            S22 
* GHz     MAG   ANG      MAG   ANG      MAG   ANG      MAG   ANG 
* 
R1N 1 5 -50
R1P 5 7 100
R2N 2 4 -50
R2P 4 6 100
 
* E11 7 9 FREQ {V(5,3)}= MAG | DB | R_I | DEG | RAD
* Default is DB and DEG,  R_I is real and imag

*S11   FREQ   DB   PHASE
E11 7 9 FREQ {V(5,3)}= MAG
+(  0.01gHz,    1.00, -0.2)
+(  0.02gHz,    1.00, -0.4)
+(  0.05gHz,    1.00, -1)
+(  0.10gHz,    1.00, -2)
+(  0.40gHz,    1.00, -8)
+(  0.80gHz,    0.99, -16)
+(  1.20gHz,    0.97, -24)
+(  1.60gHz,    0.95, -32)
+(  2.00gHz,    0.92, -40)
+(  2.40gHz,    0.90, -48)
+(  2.80gHz,    0.87, -58)
+(  3.20gHz,    0.83, -68)

this was generated from a s-parameter file by the s2spice.exe
LTspice Yahoo group
**broken link removed**
Files > Tut > S-Parameter > S-Parameter to SPICE > s2spice_win095.exe
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top