Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register
  • Index
  • » Users
  • » abdo227
  • » Profile

Posts

Posts

Feb-08-17 16:58:12
How can the 'x' variable be defined independently of time ? (x=from 0 to 10 for example)

What if I need the variable 'x' to be independent of time ?

Feb-07-17 09:21:37
How can the 'x' variable be defined independently of time ? (x=from 0 to 10 for example)

I appreciate your feedback, however I am looking to plot the evolution of y over values of x from 0 to 10 for example (y=f(x)) and not just solve the equation. So I should probably define the range of values for x. Is that doable ?

Feb-06-17 19:16:12
How can the 'x' variable be defined independently of time ? (x=from 0 to 10 for example)

model Linear

parameter Real a=2;
parameter Real b=1;

Real y;
Real x;

equation

y=a*x + b;


end Linear;

Feb-06-17 12:28:17
Trying to plot the most simple linear function in Modelica
Category: Programming

Is there an alternative to using time ? It is very important for me to use two variables independent of time...

Feb-05-17 18:51:21
Trying to plot the most simple linear function in Modelica
Category: Programming

What should I add to make this work. I know that this needs one more equation where I need to define the range x maybe ? Any help would be appreciated. Thank you in advance.

model Plot

Real y;
Real x;

equation

y=x;

end Plot;

  • Index
  • » Users
  • » abdo227
  • » Profile
You are here: