Ignore:
Timestamp:
Jul 25, 2008, 11:18:50 AM (14 years ago)
Author:
Rafael de Pelegrini Soares
Message:

Updated the models to work with some language constraints

Location:
branches/gui/sample/miscellaneous
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/gui/sample/miscellaneous/sample_arrays.mso

    r176 r574  
    3030
    3131        EQUATIONS
    32         for i in [1 : Dimension]
     32        for i in [1 : Dimension] do
    3333                diff(Var1(1,i)) = Var2(1,i)/'s';
    3434        end
  • branches/gui/sample/miscellaneous/sample_arrays2.mso

    r176 r574  
    3232        diff(Var1(1,1))*'s' = Var2(1,2);
    3333       
    34         for i in [2 : Dimension-1]
     34        for i in [2 : Dimension-1] do
    3535                diff(Var1(1,i))*'s' = Var2(1,i-1)+Var2(1,i+1);
    3636        end
  • branches/gui/sample/miscellaneous/sample_galvanic.mso

    r535 r574  
    2727*--------------------------------------------------------------------*#
    2828
    29 include "types";
    30 
     29using "types";
    3130
    3231FlowSheet cell
  • branches/gui/sample/miscellaneous/sample_tanks.mso

    r313 r574  
    3535       
    3636        SPECIFY
    37         "Vazao de entrada"
    3837        Fin = 10 * 'm^3/h';
    3938
     
    6564       
    6665        SPECIFY
    67         "Vazao de entrada"
    6866        Fin = 10 * 'm^3/h';
    6967
  • branches/gui/sample/miscellaneous/tenprobs/prob07.mso

    r228 r574  
    7171        dz = (z(N+2) - z(1))/(N+1);
    7272       
    73         for i in [2:(N+1)]
     73        for i in [2:(N+1)] do
    7474        "Concentration of reactant"     
    7575                (C(i+1) - 2*C(i)+ C(i-1))/(z(i) - z(i-1))^2
     
    111111       
    112112        SPECIFY
    113         "Lower boundary"
    114113        reac.z(1) = 0*'m';
    115114
    116         "Upper boundary"
    117115        reac.z(N+2) = reac.L;
    118 
    119116
    120117        OPTIONS
     
    162159       
    163160        SPECIFY
    164         "Lower boundary"
    165161        reac.z(1) = 0*'m';
    166162
    167         "Upper boundary"
    168163        reac.z(N+2) = reac.L;
    169 
    170164
    171165        OPTIONS
Note: See TracChangeset for help on using the changeset viewer.