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

Posts

Posts

Big thanks to JOssorio for this solution!


However the Excavator example was still not working for me. It gives the following error:

Code:


[3] 14:01:51 Translation Error
[Modelica.Mechanics.MultiBody.Visualizers: 1986:8-1987:83]: PartialModelicaServices is partial, name lookup is not allowed in partial classes.

[4] 14:01:51 Translation Error
[ModelicaServices: 653:5-654:81]: PartialModelicaServices is partial, name lookup is not allowed in partial classes.

Also the PressureCompensated & PressureCompensatedLoadSensing circuits were still not working for me, which I tracked down to the following:

Need to change OpenHydraulics.Components.MotorsPumps.PCLSPump.mo
For the swashPlatePD bloack we need to change the initType from Init.InitialState to InitPID.InitialState

Before:

Code:


  Modelica.Blocks.Continuous.LimPID swashPlatePD(
    final controllerType=Modelica.Blocks.Types.SimpleController.PD,
    k=propGain,
    Td=timeConst,
    final yMin=0,
    initType=Modelica.Blocks.Types.Init.InitialState)
    annotation (Placement(transformation(extent={{0,-36},{20,-16}},
          rotation=0)));

After

Code:


  Modelica.Blocks.Continuous.LimPID swashPlatePD(
    final controllerType=Modelica.Blocks.Types.SimpleController.PD,
    k=propGain,
    Td=timeConst,
    final yMin=0,
    initType=Modelica.Blocks.Types.InitPID.InitialState)
    annotation (Placement(transformation(extent={{0,-36},{20,-16}},
          rotation=0)));

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