Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

Spice3 issue ?

Spice3 issue ?

Dear all,
please find here after a small diagram with 2 x 3 coupled inductors. The model does not work compare to the attended results and compare to the same model in LTSpice.
The goal of this model is to have a look on V_FI ...

And the relative netlist spice ...
L1 0 N002 1.57050669468473
L2 N002 N005 0.033714301106239
L3 NC_01 N003 0.05521312598501
L4 N003 N006 0.009481871379016
L5 N001 N004 245.391671044489
L6 N004 N007 0.937385890525789
R1 N005 0 0.061620942082922
R2 N006 0 0.00628903159971
R3 N007 0 14.5262976395218
V1 N001 0 SINE(0 1250 50)
K1 L1 L3 L5 1
K2 L2 L4 0.834491038835512
K3 L2 L6 0.617984954096065
K4 L4 L6 0.758762907589478
.tran 10
.backanno
.end

PACK1.mo

Thanks for your comment.
Regards
Fred

Attachments:

Re: Spice3 issue ?

Hi,

1) parameters should be inside the model (at the moment parameters are in the package)

2) I've no idea about the technical problem behind your model. But with a Coupling Factor of 99% the system is NOT stable. I changed

Code:

parameter Real unite = 0.40  "e.g."; 

and it was OK.

best regards
Johann

Re: Spice3 issue ?

DearJohann,
thanks for your support.
First, I'm not a specialist of modelica, and I put parameters in the package in order to use them in many variant of the same model in one package.
Is there a best solution ? Thanks for your advice ...
Second, the parameters are relative to a transformer where the coupling coefficient are close to 1.
By calculation, I grouped L1-L2, L3-L4, L5-L6 and the coupling coefficient are around 0.998 or more.
Then I simplify the model with the calculated value and obtained a similar results.
So you're right, the system seems not stable.

Any idea ?
Thanks for your reply
Fred.

There are 0 guests and 0 other users also viewing this topic