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
  • Index
  • » Users
  • » kkanso
  • » Profile

Posts

Posts

Mar-27-13 16:49:07
Magnetism examples fail to simulate

When trying to simulate Modelica.Magnetic.FundementalWave.Examples.SMEE_Generator is receive a number of warnings about values not being set.

I would like to see a simple example of translating rotational force into electrical motive force, and think that the example nicely describes this, however does not run. I have tried to build my own microscopic example but every time I try to use a magnetic source I get errors about redeclaring parameters. See the following module:

Code:


model test
  Modelica.Electrical.Analog.Basic.Ground ground1;
  Modelica.Magnetic.FundamentalWave.Components.SinglePhaseElectroMagneticConverter converter(effectiveTurns = 50, orientation = 90);
  Modelica.Magnetic.FundamentalWave.Sources.ConstantFlux constantflux1;
equation
  connect(converter.port_p,constantflux1.port_n);
  connect(converter.port_n,constantflux1.port_p);
  connect(ground1.p,converter.pin_n);
end test;

Am I just making a mistake or is there some larger problem?

  • Index
  • » Users
  • » kkanso
  • » Profile
You are here: