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
  • » Mrsong
  • » Profile

Posts

Posts

May-23-22 11:25:32
I am a new openmodelica operator, Can you help me? Thanks
Category: Developer

Thanks a lot.I will have a try

May-23-22 00:48:31
I am a new openmodelica operator, Can you help me? Thanks
Category: Developer

class Simplecircuit1

import Modelica;
Resistor R1(R=10);
Capacitor C(C = 0.01);
Resistor R2(R2=100);
Inductor L(L=0.1);
VsourceAC AC;
Ground G;
equation
connect(AC.p,R1.P);
connect(R1.n,C.p);
connect(C.n,AC.n);
connect(R1.p,R2.p);
connect(R2.n,L.p);
connect(L.n,C.n);
connect(AC.n,G.n);
end Simplecircuit1;

Error infoemation: [Simplecircuit1: 10:1-10:9]: Class Ground not found in scope Simplecircuit1.
So how should I deal with this error?

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