- Index
- » Users
- » parameswararaob
- » Profile
Posts
Posts
hi,
while I am executing the "DCmotorcircuit model"in DR control tutorial in O M N book
an error is occurring
this is the code
loadModel(Modelica);
model DCMotorCircuit
Modelica.Electrical.Analog.Basic.Resistor resistor1(R = 10);
Modelica.Electrical.Analog.Basic.Inductor inductor1(L = 0.2);
Modelica.Electrical.Analog.Basic.Ground ground1;
//Modelica.Mechanics.Rotational.Components.Inertia inertia1(J = 1);
//Modelica 3.1
Modelica.Mechanics.Rotational.Inertia inertia1(J = 1);
Modelica.Electrical.Analog.Basic.EMF emf1;
Modelica.Blocks.Sources.Step step1;
Modelica.Electrical.Analog.Sources.SignalVoltage signalVoltage1;
equation
//connect(step1.outport, signalVoltage1.inPort);
connect(step1.y, signalVoltage1.v);
connect(signalVoltage1.p, resistor1.p);
connect(resistor1.n, inductor1.p);
connect(inductor1.n, emf1.p);
connect(emf1.flange_b, inertia1.flange_a);
connect(signalVoltage1.n, ground1.p);
connect(ground1.p, emf1.n);
end DCMotorCircuit;
simulate( DCMotorCircuit, stopTime=150 )
the following error occured
record SimulationResult
resultFile = "",
messages = "Simulation failed for model: DCMotorCircuit
[<interactive>:2:3-2:66:writable] Error: Class Modelica.Electrical.Analog.Basic.Resistor not found in scope DCMotorCircuit.
Error: Error occurred while flattening model DCMotorCircuit
"
end SimulationResult;
plot( signalVoltage1.i );
i am using modelica 3.2
any one help to resolve this problem
the libraries are found in my modelica library
hi,
i am beginner to this modelica environment
please clarify whether debugging and step by step code execution is available or not
if possible please give the details
if any other options available please suggest
Thank you
- Index
- » Users
- » parameswararaob
- » Profile