Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
Electrical machine + Spice
Posted 7 mars 2011, 07:59 UTC−5 Low-Frequency Electromagnetics 15 Replies
Please login with a confirmed email address before reporting spam
Does anyone has a simple working model of an electrical motor/generator connected to a Spice circuit ?
Thank you in advance!
Hello L. Queval
Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.
If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.
Please login with a confirmed email address before reporting spam
The model of the electric machine in language Spice is necessary?
For which Spice-program? PSpice? gnucap? etc?
I have models for LTSpice.
yuri
Please login with a confirmed email address before reporting spam
I am not familiar with Spice for COMSOL.
Yuri
Please login with a confirmed email address before reporting spam
it's in the ACDC module "Circuit" or "CIR" nice way to an electric circuit, it's just that currently it's missing a simple editor visualiser
--
Good luck
Ivar
Please login with a confirmed email address before reporting spam
Where it is possible to read the description of a format Spice for COMSOL ?
Yuri.
P.S. I do not have installed versions COMSOL
Please login with a confirmed email address before reporting spam
not more than the help files:
Refences
1. bwrc.eecs.berkeley.edu/Classes/IcBook/SPICE/
2. P. Antognetti and G. Massobrio, Semiconductor Device Modeling with Spice, 2nd ed., McGraw-Hill, Inc., 1993.
--
Good luck
Ivar
Please login with a confirmed email address before reporting spam
Ivar, thanks for a reply!
Where it is possible to read the description of a format Spice for COMSOL ?
Yuri.
P.S. I do not have installed versions COMSOL
Here is a screen shot of what you can do with COMSOL "spice". See attached picture.
Not everything that you can do in LTSpice, Orcad, etc, can be done in COMSOL. It is fairly limited and primitive.
I am only aware of one example file in the model galleries here that shows how to link up spice and COMSOL. Does not seem to be well documented feature.
Descriptions of how the electrical interface works is in the RF Module documentation.
When you import a netlist, they have to end with a .cir extension.
If you do not follow the correct spice format, COMSOL will tell you so.
Attachments:
Please login with a confirmed email address before reporting spam
for those who want to test it there is also this: www.comsol.eu/community/exchange/146/
--
Good luck
Ivar
Please login with a confirmed email address before reporting spam
The most simple model of the electric machine can be constructed by means of "Arbitrary behavioral voltage or current sources".
But these elements are not present in COMSOL, therefore construction of model will be problematic.
Unfortunately, my models of electric machines cannot be applied for COMSOL.
Probably, elements "External..." it is possible to use to representation of a these sources.
Yuri.
Please login with a confirmed email address before reporting spam
you should be able to use "arbitrary behavioral" elements. these are the dependent sources that are listed in the image i attached above. things like a voltage controlled voltage source and so on. in spice lingo these are E, F,G,H elements. if may not be a pretty spice model but you can do it.
Please login with a confirmed email address before reporting spam
I do not have installed versions COMSOL, therefore I can not estimate opportunity E, F, G, H elements
To the address of sourceforge.net/projects/diel/files/ is located the file: Sohor_Modelling_LTSPICE.pdf (in Russian). Here on pages 97 - 99 there are examples of models of asynchronous motor for LTSpice.
Here an example of one of them:
.subckt ADZ a b c w m n
.param Zp=2 Lm=28.7m Ls=29.4m Lr=29.7m Rs=0.067 Rr=0.032 J=0.62
.param q=sqrt(Ls*Lr2) Lr2=1.5*Lr Rr2=1.5*Rr sq3=sqrt(3.)
+k11=Lm/q
+k21=-Lm/2/q
+k22=sq3*Lm/q/2
+k31=-Lm/q/2
+k32=-sq3*Lm/q/2
R1 a N001 {Rs}
R2 b N003 {Rs}
R3 c N005 {Rs}
L1 N001 n {Ls}
L2 N003 n {Ls}
L3 N005 n {Ls}
L4 N002 N004 {Lr2}
L5 N006 N007 {Lr2}
k1 L1 L4 {k11}
k2 L2 L4 {k21}
k3 L2 L5 {k22}
k4 L3 L4 {k31}
k5 L3 L5 {k32}
R5 N004 0 {Rr2}
R6 N007 0 {Rr2}
B10 N002 0 V=-{Zp}*v(w)*({Lm}*sq3/2*(i(L2)-i(L3)) + {Lr2}*i(L5))
B11 N006 0 V={Zp}*v(w)*(3/2*{Lm}*i(L1) + {Lr2}*i(L4) )
B9 0 w I={Zp}*sq3/2*{Lm}*( (i(L2)-i(L3))*i(L4) - sq3*i(L1)*i(L5))
B1 m 0 V=I(B9)
C2 w 0 {J}
.end ADZ
If details interest, that I can give them .
Yuri
Please login with a confirmed email address before reporting spam
I am not able to read russian but I can tell you that the netlist you posted will give you other troubles in comsol. I think that a netlist with a B statement such as B10 below, may be specific to LTSpice. In LTspice it is an arbitrary behavioral source. I don't think comsol has an equivalent. Also, the K statements for linking inductors is a problem too. Comsol does not recognize that one either. If you tried to import that as a netlist, I am 100% sure comsol will give you an error. Maybe future versions of the s/w will but not right now. Maybe somebody else out there knows more???
Please login with a confirmed email address before reporting spam
But it will be more exact model and more complex.
Yuri.
Please login with a confirmed email address before reporting spam
but aren't we here talking about different spice file formats and conventions ?
Does there not exist a "translator" somewhere out there ?
--
Good luck
Ivar
Please login with a confirmed email address before reporting spam
Likely, behavior source and K statements it is possible to collect from elements E, F, G, H....
Then it is possible to find or make the translator.
Yuri.
Please login with a confirmed email address before reporting spam
Could you give me a copy of the Sohor_Modelling_LTSPICE.pdf to chenxi@tju.edu.cn? Thanks.
Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.