queraltab / Greenhouses-Library

The Greenhouse Modelica Library aims at providing a fully open-source modeling framework for the simulation of greenhouse climate, crop yield and the energy integration of greenhouses with thermal systems (e.g. generation units, thermal storage units, district heating networks, etc.).
BSD 3-Clause "New" or "Revised" License
47 stars 18 forks source link

Jmodelica Issues #14

Open bienpierre opened 5 years ago

bienpierre commented 5 years ago

I am using Jmodelica to compile a fmu from one modelica model which has in it the greenhouse model from the unit. I have two main issues and one warning:

_First a warning message about cardinality, that say it is a deprecated operator (the warning);

_Second, from the canopy, air and floor, the cardinality is written as: cardinality(R_Flr_Glob)==0 However, R_Flr_Glob seems to be an array. This is causing an error. I commented the code and the error disappeared.

_Third, I have issues with model Flow1DimLnc and the following code: Medium.specificEnthalpy_pTX(pstart,Tstart_inlet,fill(0,0)),Medium.specificEnthalpy_pTX(pstart,Tstart_outlet,fill(0,0)).

I have an error message about fill(0,0), I modified with fill(0.0,1) and the error disappeared. greenhouseissues Regards,

adrpo commented 1 year ago

PR #20 fixes the issues you found properly handling the cardinality and the issues with typing of specificEnthalpy_PTX.