Advertisement
Guest User

Untitled

a guest
Mar 11th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ada 0.65 KB | None | 0 0
  1. procedure calculoDinamico is
  2.    begin
  3.    for I in 1..Max loop
  4.          T(I) := (ST1(I-1) + ST2opt/2.0);
  5.          SC1(I) := (((1.95 * SR1(I))-(4.0*(T(I)-ST4(I))))*((9.0*2.0*6.0*10000.0)))/((ST2opt-ST1(I-1))*4190.0*975.0);
  6.          if(SC1(I)<7.5) then SC1(I):=7.5;
  7.          elsif(SC1(I)>20.0) then SC1(I) :=20.0;
  8.          end if;
  9.          SC2(I) := (((0.135 + 0.003 * ST2opt - 0.0204 * ST3(I)-(SD1opt/24.0)))/(1.001*(-0.00004)*ST2_ini));
  10.          if(SC2(I)<400.0) then SC2(I):=400.0;
  11.          elsif(SC2(I)>600.0) then SC2(I):=600.0;
  12.          end if;
  13.          ST1(I) := ST2opt - 11.0;
  14.       end loop;
  15.    escrituraFichero(True);
  16.    end calculoDinamico;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement