- Index
- » Developer
- » OpenModelica development
- » Translation of algebraic variabe...
Translation of algebraic variabe into constant ?
Translation of algebraic variabe into constant ?
Hello,
I take into account this kind of MODELICA model "TestCeil.mo" defined such as :
model TestCeil
Real x;
equation
x = ceil(4.5);
end TestCeil;
The TestCeil.mof associated flattened file is then the following one:
c lass TestCeil
Real x;
equation
x = 5.0;
end TestCeil;
and the associated generated XML file TestCeil_init.xml contains :
<ScalarVariable
name = "x"
valueReference = "1000"
variability = "continuous" isDiscrete = "false"
causality = "internal" isValueChangeable = "false"
alias = "noAlias"
classIndex = "0" classType = "rAlg"
isProtected = "false"
fileName = "TestCeil.mo" startLine = "3" startColumn = "3" endLine = "3" endColumn = "9" fileWritable = "true">
<Real useStart="false" fixed="false" useNominal="false" />
</ScalarVariable>
=>
I would like to know why the x variable is always an algebraic variable of the model ?
the x variable has not to become a constant ?
Thanks;
regards;
ALAIN_2
- Index
- » Developer
- » OpenModelica development
- » Translation of algebraic variabe...