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

Adding Modelica Library

Adding Modelica Library

Hello Everyone.

I am a new user of the OM. I have problem with adding a Modelica Library, concretely FuelCellLib. I've tried to use some tricks from this forum, but they haven't helped me.
I've got always following messages

Failed to load package FuelCellLib (default) using MODELICAPATH C:/OpenModelica1.8.1/lib/omlibrary.

Failed to insert class FC2Layer within FuelCellLib.CaseStudies;
the available classes were:
  FuelCellLib.casestudies
  FuelCellLib.Basics.vc_mem
  FuelCellLib.Basics.vc_dif
  FuelCellLib.Basics.vc_act
  FuelCellLib.Basics.tp_mem_mid
  FuelCellLib.Basics.tp_mem
  FuelCellLib.Basics.tp_dif_mid
  FuelCellLib.Basics.tp_dif
  FuelCellLib.Basics.tp_act_mid
  FuelCellLib.Basics.tp_act
  FuelCellLib.Basics.terminal
  FuelCellLib.Basics.exac
  FuelCellLib.Basics.col_mem
  FuelCellLib.Basics.col_cat
  FuelCellLib.Basics.Loads.Step_Load
  FuelCellLib.Basics.Loads.PRB_Load
  FuelCellLib.Basics.Loads
  FuelCellLib.Basics
  FuelCellLib.Units.Aio
  FuelCellLib.Units.alfav
  FuelCellLib.Units.beta
  FuelCellLib.Units.MolarGasConstant
  FuelCellLib.Units.c_diff
  FuelCellLib.Units.TafelSlope
  FuelCellLib.Units.factor
  FuelCellLib.Units.EnthalpyxMol
  FuelCellLib.Units.Wload
  FuelCellLib.Units.molarF
  FuelCellLib.Units.volpore
  FuelCellLib.Units
  FuelCellLib


I think that I do something wrong. Can anybody help me?

Thank you

pn

Re: Adding Modelica Library

That library is malformed as Modelica is case-sensitive. Some library developers use operating systems and Modelica tools that disregard this restriction.

Change the package named FuelCellLib.casestudies to FuelCellLib.CaseStudies or the within-statement to without caps. Or ask the library developer for an updated version of the library.

Re: Adding Modelica Library

I've changed the name and it is working now.

Thank you very much

pn

There are 0 guests and 0 other users also viewing this topic