Changeset 13441


Ignore:
Timestamp:
2012-10-17T17:17:04+02:00 (12 years ago)
Author:
cschubert
Message:

Test: GyroscopifEffects - test for orientation rather than position as this is more important in this particular test (also it is closest to selected state Q, which is marked as protected)

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.GyroscopicEffects
     1// name:     Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive
    22// keywords: simulation MSL Examples
    33// status: correct
     
    99
    1010loadModel(Modelica,{"3.2.1"});
     11
    1112setMatchingAlgorithm("PFPlus");
    1213setIndexReductionMethod("dynamicStateSelection");
    13 simulate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects,stopTime=5.0);
     14simulate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects,stopTime=5);
    1415res := 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"});
    3945
    4046// Result:
     
    4450// record SimulationResult
    4551//     resultFile = "Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects_res.mat",
    46 //     simulationOptions = "startTime = 0.0, stopTime = 5.0, numberOfIntervals = 500, tolerance = 1e-06, 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 = ''",
    4753//     messages = ""
    4854// end SimulationResult;
Note: See TracChangeset for help on using the changeset viewer.