Ignore:
Timestamp:
Jan 26, 2007, 3:21:01 PM (15 years ago)
Author:
Argimiro Resende Secchi
Message:

Adjust the measurement units of some examples.

Location:
trunk/sample/miscellaneous
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/sample/miscellaneous/sample_arrays2.mso

    r83 r138  
    3939        diff(Var1(2:Dimension,:))*"s" = Scalar*Var2(2:Dimension,:);
    4040
    41         exp(Scalar)*Var2 = sin(time/"s");
     41        exp(Scalar)*Var2 = sin(time*"rad/s");
    4242end
    4343
  • trunk/sample/miscellaneous/sample_car.mso

    r83 r138  
    4949
    5050        EQUATIONS
    51         diff([xl, yl, xr, yr]) = q;
     51        diff([xl, yl, xr, yr])*"s" = q;
    5252       
    53         eps^2*M/2 * diff(q(1)) = (l0-ll)*xl/ll
     53        eps^2*M/2 * diff(q(1))*"s" = (l0-ll)*xl/ll
    5454                +lambda(1)*xb +2*lambda(1)*(xl-xr);
    5555       
    56         eps^2*M/2 * diff(q(2)) = (l0-ll)*yl/ll
     56        eps^2*M/2 * diff(q(2))*"s" = (l0-ll)*yl/ll
    5757                +lambda(1)*yb +2*lambda(2)*(yr-yl) - eps^2*M/2;
    5858
    5959       
    60         eps^2*M/2 * diff(q(3)) = (l0-lr)*(xr-xb)/lr
     60        eps^2*M/2 * diff(q(3))*"s" = (l0-lr)*(xr-xb)/lr
    6161                -2*lambda(2)*(xl-xr);
    6262       
    63         eps^2*M/2 * diff(q(4)) = (l0-lr)*(yr-yb)/lr
     63        eps^2*M/2 * diff(q(4))*"s" = (l0-lr)*(yr-yb)/lr
    6464                -2*lambda(2)*(yl-yr) - eps^2*M/2;
    6565       
     
    7070        xb = sqrt(l^2-yb^2);
    7171       
    72         yb = r*sin(w*time);
     72        yb = r*sin(w*time*"rad/s");
    7373       
    7474        ll = sqrt(xl^2 + yl^2);
  • trunk/sample/miscellaneous/sample_cstr_simple.mso

    r83 r138  
    3636        k0 as frequency;
    3737        Ea as energy_mol (Brief = "Energia de Ativação");
    38         R  as energy_mol;
     38        R  as entr_mol;
    3939       
    4040        VARIABLES
     
    5757       
    5858        "Constante de Reação"
    59         k=k0*exp(Ea/R*(1/436.15 - 1*"K"/T));
     59        k=k0*exp(Ea/R*(1/(436.15*"K") - 1/T));
    6060       
    6161        "Taxas de Reação"
     
    6767       
    6868        "Cp da mistura"
    69         Cps=(0.5*250)*3;# *"cal/mol/K";
     69        Cps=(0.5*250)*3 * "J/mol/K";
    7070       
    7171        "Balanço de Energia"
  • trunk/sample/miscellaneous/sample_galvanic.mso

    r83 r138  
    4444        VARIABLES
    4545
    46         y1  as  current(Default=0.5, Brief="Mole fraction of NiOOH");
    47         y2  as  current(Default=0.5, Brief="Potential difference at the solid-liquid interface");
     46        y1  as  Real(Default=0.5, Brief="Mole fraction of NiOOH");
     47        y2  as  Real(Default=0.5, Brief="Potential difference at the solid-liquid interface");
    4848
    4949
     
    5353       
    5454        "Equation 1(a)"
    55         pho*V/W*diff(y1) = i01*(2*(1-y1)*exp(0.5*F/(R*T)*(y2-phi1))-2*y1*exp(-0.5*F/(R*T)*(y2-phi1)))/F;
     55        pho*V/W*diff(y1)*"s" = i01*(2*(1-y1)*exp(0.5*F/(R*T)*(y2-phi1))-2*y1*exp(-0.5*F/(R*T)*(y2-phi1)))/F;
    5656       
    5757        "Equation 1(b)"
     
    8989        INITIAL
    9090        #Parameters used for the initial conditions
    91         #y1 = 0.05;
     91        #y1 = 0.05";
    9292        y2 = 0.38;
    9393
  • trunk/sample/miscellaneous/sample_hyperbolics.mso

    r107 r138  
    4141       
    4242        Pi              as constant  (Brief="Pi Number",Default=3.14159265);
    43         Theta   as angle     (Brief ="theta angle",Default=0.5);
     43        Theta   as Real      (Brief ="Argument",Default=0.5);
    4444       
    4545        VARIABLES
     
    5353       
    5454        Pi         = 3.14159265;
    55         Theta  = 0.6*Pi*"rad";
     55        Theta  = 0.6*Pi;
    5656       
    5757        EQUATIONS
  • trunk/sample/miscellaneous/sample_if_tanh.mso

    r83 r138  
    3636        A = 10*xif + 5*xelse;
    3737
    38         xif = (1 + tanh(B * (time - 3)))/2;
    39         xelse = (1 - tanh(B * (time - 3)))/2;
     38        xif = (1 + tanh(B * (time/"s" - 3)))/2;
     39        xelse = (1 - tanh(B * (time/"s" - 3)))/2;
    4040       
    4141        SET
  • trunk/sample/miscellaneous/sample_manipulation.mso

    r107 r138  
    4141        PARAMETERS
    4242       
    43         Number(2)      as Real;
     43        Number(3)      as Real;
    4444       
    4545        VARIABLES
    4646       
    47         absolute(2)     as Real  (Brief ="abs function");
    48         maximum(2)      as Real  (Brief ="max function");
    49         minimum(2)              as Real  (Brief ="Natural log function");
    50         signal(2)       as Real  (Brief ="square root function");
    51         rounds(2)       as Real  (Brief ="square root function");
     47        absolute(3)     as Real  (Brief ="abs function");
     48        maximum         as Real  (Brief ="max function");
     49        minimum                 as Real  (Brief ="Natural log function");
     50        signal(3)       as Real  (Brief ="square root function");
     51        rounds(3)       as Real  (Brief ="square root function");
    5252       
    5353        SET
    5454       
    55         Number  = [-10.3,5.001];
     55        Number  = [-10.3,0,5.001];
    5656       
    5757        EQUATIONS
  • trunk/sample/miscellaneous/sample_mathematicals.mso

    r107 r138  
    4646        EQUATIONS
    4747       
    48         exponential     = exp(time);
    49         log10                   = log(time);
    50         NatLog                  = ln(time);
    51         squareRoot      = sqrt(time);
     48        exponential     = exp(time/"s");
     49        log10                   = log(time/"s");
     50        NatLog                  = ln(time/"s");
     51        squareRoot      = sqrt(time/"s");
    5252
    5353        OPTIONS
  • trunk/sample/miscellaneous/sample_trigonometrics.mso

    r107 r138  
    5050        tangent as Real  (Brief ="tangent function",Default=0.5);
    5151       
    52         arccosine  as Real  (Brief ="arc cosine function",Default=0.5);
    53         arcsine    as Real  (Brief ="arc sine function",Default=0.5);
    54         arctangent as Real  (Brief ="arc tangent function",Default=0.5);
     52        arccosine  as angle  (Brief ="arc cosine function",Default=0.5);
     53        arcsine    as angle  (Brief ="arc sine function",Default=0.5);
     54        arctangent as angle  (Brief ="arc tangent function",Default=0.5);
    5555       
    5656        SET
Note: See TracChangeset for help on using the changeset viewer.