If i have a non-modelica function which has no input and no output like
void foo(void)
{
variable1;
variable2;
for loop
{
if conditions
}
variable2=foobar(); // another function call, foobar() is not modelica function
}
then can i model it like below in modelica ?
model foo
variable1;
variable2;
algorithm
for loop
{
if conditions
}
variable2 :=foobar(); //foobar here is modelica function
end foo;