Changeset 13386


Ignore:
Timestamp:
2012-10-15T12:23:11+02:00 (12 years ago)
Author:
lochel
Message:
  • rename package for linear_system/MissV.mos
  • load model from string
Location:
trunk/testsuite/simulation/modelica
Files:
2 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/testsuite/simulation/modelica/linear_system/MissV.mos

    r13385 r13386  
    22// keywords: linear system of equations
    33// status: correct
    4 // teardown_command: rm -rf initializationTests.MissV* _initializationTests.MissV* output.log
     4// teardown_command: rm -rf linear_system.MissV* _linear_system.MissV* output.log
    55//
    66// Solving of a linear system of equations
     
    1010
    1111loadString("
    12 package initializationTests
     12package linear_system
    1313  model MissV
    1414    Real pb(start = 12000000);
     
    2525    Qa + Qb = 0;
    2626  end MissV;
    27 end initializationTests;
     27end linear_system;
    2828"); getErrorString();
    29 instantiateModel(initializationTests.MissV); getErrorString();
    30 simulate(initializationTests.MissV,startTime=0.0, stopTime=1.0, numberOfIntervals=500, tolerance=1e-5); getErrorString();
     29instantiateModel(linear_system.MissV); getErrorString();
     30simulate(linear_system.MissV,startTime=0.0, stopTime=1.0, numberOfIntervals=500, tolerance=1e-5); getErrorString();
    3131
    3232val(pa, 1.0);
     
    3636// true
    3737// ""
    38 // "class initializationTests.MissV
     38// "class linear_system.MissV
    3939//   Real pb(start = 12000000.0);
    4040//   Real Qb;
     
    4848//   pa = pb;
    4949//   Qa + Qb = 0.0;
    50 // end initializationTests.MissV;
     50// end linear_system.MissV;
    5151// "
    5252// ""
    5353// record SimulationResult
    54 //     resultFile = "initializationTests.MissV_res.mat",
    55 //     simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 0.00001, method = 'dassl', fileNamePrefix = 'initializationTests.MissV', storeInTemp = false, noClean = false, options = '', outputFormat = 'mat', variableFilter = '.*', measureTime = false, cflags = '', simflags = ''",
     54//     resultFile = "linear_system.MissV_res.mat",
     55//     simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 0.00001, method = 'dassl', fileNamePrefix = 'linear_system.MissV', storeInTemp = false, noClean = false, options = '', outputFormat = 'mat', variableFilter = '.*', measureTime = false, cflags = '', simflags = ''",
    5656//     messages = ""
    5757// end SimulationResult;
  • trunk/testsuite/simulation/modelica/nonlinear_system/NonlinearFailed.mos

    r13385 r13386  
    33// teardown_command: rm -f NonLinSysFailed*
    44
    5 loadFile("NonlinearFailed.mo");
     5loadString("
     6model NonLinSysFailed
     7  Real x;
     8equation
     9  1.1 = sin(x);
     10end NonLinSysFailed;
     11");
    612simulate(NonLinSysFailed);
    713
  • trunk/testsuite/simulation/modelica/nonlinear_system/NonlinearMixed.mos

    r13385 r13386  
    33// teardown_command: rm -f NonlinearMixed_*
    44
    5 loadFile("NonlinearMixed.mo");
     5loadString("
     6model NonlinearMixed
     7  Real x( start=0);
     8  Real y( start=0);
     9  Real z( start=0);
     10  discrete Boolean a( start=false);
     11  Real xx(start=0);
     12equation
     13  a = x < -1;
     14  (x+y)^2 = if a then time else 0;
     15  (y+z)^2 = if a then 0 else time;
     16  (z+x)^2 = 0;
     17  der(xx) = if time<0.5 then 1 else 0;
     18end NonlinearMixed;
     19");
    620simulate(NonlinearMixed);
    721val(x,{0.0,0.5});
Note: See TracChangeset for help on using the changeset viewer.