Changeset 13441
- Timestamp:
- 2012-10-17T17:17:04+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/testsuite/simulation/libraries/msl32/Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.mos
r13439 r13441 1 // name: Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects. GyroscopicEffects1 // name: Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive 2 2 // keywords: simulation MSL Examples 3 3 // status: correct … … 9 9 10 10 loadModel(Modelica,{"3.2.1"}); 11 11 12 setMatchingAlgorithm("PFPlus"); 12 13 setIndexReductionMethod("dynamicStateSelection"); 13 simulate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects,stopTime=5 .0);14 simulate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects,stopTime=5); 14 15 res := OpenModelica.Scripting.compareSimulationResults("Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects_res.mat", 15 "ReferenceFiles/Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.mat","Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects_diff.csv",0.01,0.00001, 16 {"revolute.phi", 17 "revolute.w", 18 "bodyCylinder2.body.frame_a.r_0[1]", 19 "bodyCylinder2.body.frame_a.r_0[2]", 20 "bodyCylinder2.body.frame_a.r_0[3]", 21 "bodyCylinder2.body.v_0[1]", 22 "bodyCylinder2.body.v_0[2]", 23 "bodyCylinder2.body.v_0[3]", 24 "bodyCylinder4.body.frame_a.r_0[1]", 25 "bodyCylinder4.body.frame_a.r_0[2]", 26 "bodyCylinder4.body.frame_a.r_0[3]", 27 "rotor1D.phi", 28 "rotor1D.w", 29 "der(revolute.phi)", 30 "der(revolute.w)", 31 "bodyCylinder2.body.a_0[1]", 32 "bodyCylinder2.body.a_0[2]", 33 "bodyCylinder2.body.a_0[3]", 34 "bodyCylinder4.body.v_0[1]", 35 "bodyCylinder4.body.v_0[2]", 36 "bodyCylinder4.body.v_0[3]"}); 37 38 16 "ReferenceFiles/Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.mat","Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects_diff.csv",0.02,0.06, 17 {"bodyCylinder2.body.frame_a.R.T[1,1]", 18 "bodyCylinder2.body.frame_a.R.T[1,2]", 19 "bodyCylinder2.body.frame_a.R.T[1,3]", 20 "bodyCylinder2.body.frame_a.R.T[2,1]", 21 "bodyCylinder2.body.frame_a.R.T[2,2]", 22 "bodyCylinder2.body.frame_a.R.T[2,3]", 23 "bodyCylinder2.body.frame_a.R.T[3,1]", 24 "bodyCylinder2.body.frame_a.R.T[3,2]", 25 "bodyCylinder2.body.frame_a.R.T[3,3]", 26 "bodyCylinder2.body.w_a[1]", 27 "bodyCylinder2.body.w_a[2]", 28 "bodyCylinder2.body.w_a[3]", 29 "revolute.phi", 30 "revolute.w", 31 "bodyCylinder3.body.frame_a.R.T[1,1]", 32 "bodyCylinder3.body.frame_a.R.T[1,2]", 33 "bodyCylinder3.body.frame_a.R.T[1,3]", 34 "bodyCylinder3.body.frame_a.R.T[2,1]", 35 "bodyCylinder3.body.frame_a.R.T[2,2]", 36 "bodyCylinder3.body.frame_a.R.T[2,3]", 37 "bodyCylinder3.body.frame_a.R.T[3,1]", 38 "bodyCylinder3.body.frame_a.R.T[3,2]", 39 "bodyCylinder3.body.frame_a.R.T[3,3]", 40 "bodyCylinder3.body.w_a[1]", 41 "bodyCylinder3.body.w_a[2]", 42 "bodyCylinder3.body.w_a[3]", 43 "rotor1D.phi", 44 "rotor1D.w"}); 39 45 40 46 // Result: … … 44 50 // record SimulationResult 45 51 // resultFile = "Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects_res.mat", 46 // simulationOptions = "startTime = 0.0, stopTime = 5.0, numberOfIntervals = 500, tolerance = 1e-0 6, method = 'dassl', fileNamePrefix = 'Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects', storeInTemp = false, noClean = false, options = '', outputFormat = 'mat', variableFilter = '.*', measureTime = false, cflags = '', simflags = ''",52 // simulationOptions = "startTime = 0.0, stopTime = 5.0, numberOfIntervals = 500, tolerance = 1e-08, method = 'dassl', fileNamePrefix = 'Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects', storeInTemp = false, noClean = false, options = '', outputFormat = 'mat', variableFilter = '.*', measureTime = false, cflags = '', simflags = ''", 47 53 // messages = "" 48 54 // end SimulationResult;
Note: See TracChangeset
for help on using the changeset viewer.