Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Model fails to execute when using two different fluids #102

Open
falis96 opened this issue Feb 15, 2024 · 0 comments
Open

Model fails to execute when using two different fluids #102

falis96 opened this issue Feb 15, 2024 · 0 comments

Comments

@falis96
Copy link

falis96 commented Feb 15, 2024

Simple model with two sinks and two sources fails to run if you use two differnt fluids in two different circuits. Two examples are attached:
Test_sinkSource_MSL_Total.zip

  1. Test_HeN2_sinkSource_MSL_Total: this model fails to compile in Dymola with error message dsmodel.c(105): 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(85): note: see previous definition of 'TwoPhaseMedium_setState_pT_C_impl_wrap'
    dsmodel.c(114): 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(94): note: see previous definition of 'TwoPhaseMedium_setState_ph_C_impl_wrap'. In OpenModelica it compiles but fails immediately with no error message;

  2. Test_HeHe_sinkSource_MSL_Total: this is the save model as the one above but using the same fluid in the two circuits, which simulates on both compilers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant