- Index
- » Users
- » jobehrendt
- » Profile
Posts
Posts
record Soluble
Real O2 "gO2/m3 dissolved oxygen";
Real I "gCOD/m3 inert soluble organic material";
Real S "gCOD/m3 readily biodegradable organic substances";
Real NH "gN/m3 ammonium + ammonia N";
Real NO "gN/m3 nitrite + nitrate N";
Real ND "gN/m3 dissolved organic N";
Real ALK "mol/m3 alkalinity";
end Soluble;
record Particulate
Real H "gCOD/m3 heterotrophic bacteria";
Real A "gCOD/m3 autotrophic bacteria";
Real S "gCOD/m3 particulate slowly degradable substrates";
Real I "gCOD/m3 inert particulate organic material";
Real P "gCOD/m3 inert particulate organic matter resulting from decay";
Real ND "gN/m3 particulate organic nitrogen";
end Particulate;
SS in the partial model and S in the main model are defined as record Soluble
XX in the partial model and X in the main model are defined as record Particulate
in the main model the partial model is included in the way.
extends WWParameters(SS = S, XX = X);
leeds to an error message
Component SS of variability parameter has binding 'DN1.S' of higher variability continuous.
So it's really hard for me to make use of the partial model approach. So I am starting a rollback and copying all partial model code into the model where they are needed. Or do I misunderstanding the error massage?
By the way the stable release Connected to OpenModelica 1.14.0~dev.beta3 crashes frequently, so at the moment i am intending to go back to the release 1.13.2
Joachim
thank you for the explanation. But this makes the use of partial models inattractive and the code longer.
I have subscribed the stable release that has updated from 1.13.2 (latest release) to 1.14.0~dev.beta1-7-g9a11e9c. Now many of my developments are not working under the new compiler frontend. I can switch the the old frontend and everything work as expected.
The main difference is related to "partial model"
ExamplePartModel.mo
I add an example. If I am using variables in the partial model that are defined elsewhere, the compiler ends with an error message. "variable y not found".
I did not find any hind in the documentation. I think one sense of a "partial model" is that it could be a part of a "normal" model, where of cause all variables has to be declared.
My question is this a bug or a shift in paradigm?
Best regards
Joachim
- Index
- » Users
- » jobehrendt
- » Profile