- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Logical Operators
Logical Operators
Logical Operators
Hello everyone,
someone can help me with this very easy code?
I don't understand what I'm doing wrong
model x
Boolean Extra1;
Boolean Extra2;
Boolean ExtraPointsCondition;
Real extraPointSurface_1;
Real extraPointSurface_2;
equation
if noEvent(extraPointSurface_1=8) or noEvent(extraPointSurface_2=8) then
ExtraPointsCondition=true;
end if;
end x;
The error message that I get is the follow
Check of x:
Unknown named argument 'extraPointSurface_1' for function noEvent in (model x).
In call noEvent(extraPointSurface_1=8)
The function is declared as:
function noEvent
end noEvent;
Unknown named argument 'extraPointSurface_2' for function noEvent in (model x).
In call noEvent(extraPointSurface_2=8)
The function is declared as:
function noEvent
end noEvent;
Errors found in: if (noEvent() or noEvent()) then
// No equations
end if;
Modelica Text: line 9
The model contained invalid expressions.
Check aborted.
ERROR: 2 errors were found
Thank you very much in advance
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Logical Operators