FastFieldSolvers Forum
FastFieldSolvers Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
 All Forums
 FastFieldSolvers
 FastHenry2
 Spice and state-space model
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

James

2 Posts

Posted - Nov 01 2019 :  09:14:55  Show Profile  Reply with Quote
Hello,
I use *.spice file generated from FastHenry in Micro-Cap, and AC simulation gives me negative resistance and negative inductance. I correct this by changing the sign in the spice model.
Can be this corrected by MakeLnegative utility?
Can I generate rom.m file with state-space model (A,B,C,D matrix)? Or how can I get these matrices from *.spice model?

Thanks,
James

Enrico

537 Posts

Posted - Nov 03 2019 :  19:49:13  Show Profile  Reply with Quote
Hi James,

I'm not sure which is the *.spice file generated by FastHenry you refer to.

Is this the one you get using the 'MakeLCircuit' utility or the one you get from FastHenry as state-space model?

I am not sure by your simulator would give you negative resistance and inductance. I don't know Micro-Cap; is this able to handle negative K (inductive coupling) in the Spice input file? MakeLnegative is done to cope with simulators not able to specify negative values for the Spice K element.

You can anyway surely generate space state models (this is why I guess the first *.spice file you talked about is possibly generated via MakeLCircuit), you find full details on how to do that in the FastHenry User's Guide (pag 20).

Best Regards,
Enrico

Go to Top of Page

James

2 Posts

Posted - Nov 05 2019 :  12:56:22  Show Profile  Reply with Quote
Hi Enrico,
I refer to the file generated with the option “–r order“ that creates the frequency-dependent model.
The problem with the matrix sign in Micro-cap is solved. if the current source is used, then everything is OK (I will check the syntax for this).
The description of –r option should generate rom.m file that contains state-space A, B, C, D matrixes. The file is generated if debug is on (thanks for source codes).
Best regards,
James
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
FastFieldSolvers Forum © 2020 FastFieldSolvers S.R.L. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.06