Changeset 13386
- Timestamp:
- 2012-10-15T12:23:11+02:00 (12 years ago)
- Location:
- trunk/testsuite/simulation/modelica
- Files:
-
- 2 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/testsuite/simulation/modelica/linear_system/MissV.mos
r13385 r13386 2 2 // keywords: linear system of equations 3 3 // status: correct 4 // teardown_command: rm -rf initializationTests.MissV* _initializationTests.MissV* output.log4 // teardown_command: rm -rf linear_system.MissV* _linear_system.MissV* output.log 5 5 // 6 6 // Solving of a linear system of equations … … 10 10 11 11 loadString(" 12 package initializationTests12 package linear_system 13 13 model MissV 14 14 Real pb(start = 12000000); … … 25 25 Qa + Qb = 0; 26 26 end MissV; 27 end initializationTests;27 end linear_system; 28 28 "); getErrorString(); 29 instantiateModel( initializationTests.MissV); getErrorString();30 simulate( initializationTests.MissV,startTime=0.0, stopTime=1.0, numberOfIntervals=500, tolerance=1e-5); getErrorString();29 instantiateModel(linear_system.MissV); getErrorString(); 30 simulate(linear_system.MissV,startTime=0.0, stopTime=1.0, numberOfIntervals=500, tolerance=1e-5); getErrorString(); 31 31 32 32 val(pa, 1.0); … … 36 36 // true 37 37 // "" 38 // "class initializationTests.MissV38 // "class linear_system.MissV 39 39 // Real pb(start = 12000000.0); 40 40 // Real Qb; … … 48 48 // pa = pb; 49 49 // Qa + Qb = 0.0; 50 // end initializationTests.MissV;50 // end linear_system.MissV; 51 51 // " 52 52 // "" 53 53 // 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 = ''", 56 56 // messages = "" 57 57 // end SimulationResult; -
trunk/testsuite/simulation/modelica/nonlinear_system/NonlinearFailed.mos
r13385 r13386 3 3 // teardown_command: rm -f NonLinSysFailed* 4 4 5 loadFile("NonlinearFailed.mo"); 5 loadString(" 6 model NonLinSysFailed 7 Real x; 8 equation 9 1.1 = sin(x); 10 end NonLinSysFailed; 11 "); 6 12 simulate(NonLinSysFailed); 7 13 -
trunk/testsuite/simulation/modelica/nonlinear_system/NonlinearMixed.mos
r13385 r13386 3 3 // teardown_command: rm -f NonlinearMixed_* 4 4 5 loadFile("NonlinearMixed.mo"); 5 loadString(" 6 model 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); 12 equation 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; 18 end NonlinearMixed; 19 "); 6 20 simulate(NonlinearMixed); 7 21 val(x,{0.0,0.5});
Note: See TracChangeset
for help on using the changeset viewer.