Changeset 217


Ignore:
Timestamp:
Mar 15, 2007, 10:11:56 PM (15 years ago)
Author:
Argimiro Resende Secchi
Message:

Remove some warnings from samples.

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

Legend:

Unmodified
Added
Removed
  • branches/newlanguage/sample/miscellaneous/sample_calc_object.mso

    r176 r217  
    4545Model Calc as CalcBasic
    4646        PARAMETERS
    47 outer obj as Plugin;
    48 
     47outer obj as Plugin(Type="sample");
     48        dummy as Real(Default=0);
     49       
    4950        EQUATIONS
    50         r1 = obj.method1(T, P);
     51        r1 = obj.method1(T, dummy);
    5152        r2 = obj.method2(T, P);
    5253        r3 = obj.method3(z);
     
    7677FlowSheet CalcTest
    7778        PARAMETERS
    78         obj     as Plugin(File = "calcsample");
     79        obj     as Plugin(Type="sample");
    7980        NoComps as Integer(Default = 5);
    80        
     81
    8182        DEVICES
    8283        calc1   as Calc;
     
    100101        OPTIONS
    101102        RelativeAccuracy = 1e-6;
    102         #mode = "steady";
     103        Dynamic = false;
    103104end
    104105
  • branches/newlanguage/sample/miscellaneous/sample_hyperbolics.mso

    r182 r217  
    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
  • branches/newlanguage/sample/miscellaneous/sample_if_tanh.mso

    r182 r217  
    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
  • branches/newlanguage/sample/miscellaneous/sample_mathematicals.mso

    r182 r217  
    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
  • branches/newlanguage/sample/miscellaneous/sample_switcher.mso

    r180 r217  
    1313        T as temperature;
    1414        Pout as pressure;
    15         k as Real(Default=1e-3);
     15        k as Real(Default=1e-3,Unit='kmol/h/kPa^0.5');
    1616
    1717        VARIABLES
Note: See TracChangeset for help on using the changeset viewer.