Thin-walled tank/HW02: Difference between revisions

From ASCEND
Jump to navigation Jump to search
SreenathaB (talk | contribs)
No edit summary
SreenathaB (talk | contribs)
No edit summary
 
Line 3: Line 3:
MODEL my_model;
MODEL my_model;


   (* variable *)
   (* variables declaration *)
   x,y,z,d,a IS_A solver_var;
   x,
  y,
  z,
  d,
  a IS_A solver_var;


   (* specifications *)
   (* specifications *)
   (* equation *)
        d = 1;
 
   (* equations *)
         x+y+z = a*d;
         x+y+z = a*d;
         x+y+2*z = 5;
         x+y+2*z = 5;

Latest revision as of 15:29, 4 April 2012

REQUIRE "system.a4l";
MODEL my_model;

  (* variables declaration *)
  x,
  y,
  z,
  d,
  a IS_A solver_var;

  (* specifications *)
        d = 1;

  (* equations *)
        x+y+z = a*d;
        x+y+2*z = 5;
        5*x + 2*y - 3*z = 0;

END my_model;