modelica-3rdparty / ExternalMedia

The ExternalMedia library provides a framework for interfacing external codes computing fluid properties to Modelica.Media-compatible component models.
53 stars 36 forks source link

Model fails to run when using Modelica.Fluid.Sensors.Temperature #103

Open falis96 opened 7 months ago

falis96 commented 7 months ago

Simple model with sink, source and temperature sensor fails to compile in both Dymola and OpenModelica. Error message on OpenModelica is: Error: External function ‘TwoPhaseMedium_setState_pT_C_impl_wrap‘ could not be found in any of the given shared libraries; Error message on Dymola is: dsmodel.c(94): error C2084: function 'void TwoPhaseMedium_setState_pT_C_impl_wrap(double,double,ExternalThermodynamicState *,const char *,const char *,const char *)' already has a body dsmodel.c(84): note: see previous definition of 'TwoPhaseMedium_setState_pT_C_impl_wrap' dsmodel.c(112): error C2084: function 'void TwoPhaseMedium_setState_ph_C_impl_wrap(double,double,int,ExternalThermodynamicState *,const char *,const char *,const char *)' already has a body dsmodel.c(102): note: see previous definition of 'TwoPhaseMedium_setState_ph_C_impl_wrap' The error on Dymola is the same as in #102. The test case is attached Test_Tsensor_MSLTotal.zip