Skip to content

Commit ea3c988

Browse files
committed
Changed everywhere i could find MODELICAPATH to OPENMODELICALIBRARY!
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk/OMNotebook/DrModelica@2482 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent 5a323da commit ea3c988

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DrModelica.onb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
<Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">OpenModelica commands&lt;/p>&lt;/body>&lt;/html></Text>
4747
</TextCell>
4848
<TextCell style="Text" >
49-
<Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-family:Courier New;">Exit OMShell by pressing Ctrl-d&lt;br />&lt;br />up-arrow&lt;br />    Get previously given command.&lt;br />    &lt;br />down-arrow&lt;br />    Get next command.&lt;br />&lt;br />tab&lt;br />    Command completion of these builtin commands.&lt;br />    Circulate through the commands by only using tab key.&lt;br />&lt;br />cd()&lt;br />    Return the current directory&lt;br />&lt;br />cd(dir)&lt;br />    Change directory to the directory given as a string.&lt;br />    Ex: cd("myModels/myLibrary")&lt;br />&lt;br />clear()&lt;br />    Clear everything.&lt;br />&lt;br />clearVariables()&lt;br />    Clear the variables.&lt;br />&lt;br />help()&lt;br />    Print this helptext (returned as a string).&lt;br />&lt;br />instantiateModel(modelname)&lt;br />    Instantiates a model/class and returns a string &lt;br />    containing the flat class definition.&lt;br />    Ex: instantiateModel(dcmotor)&lt;br />&lt;br />list()&lt;br />    Return a string containing all class definitions.&lt;br />&lt;br />list(modelname)&lt;br />    Return a string containing the class definition of&lt;br />    the named class.&lt;br />    Ex: list(dcmotor)&lt;br />&lt;br />listVariables()&lt;br />    Return a vector of the currently defined variable &lt;br />    names.&lt;br />&lt;br />loadFile(strFile)&lt;br />    Load modelica file given as string argument.&lt;br />    Ex: loadFile("../myLibrary/myModels.mo")&lt;br />&lt;br />loadModel(name)&lt;br />    Load model, function, or package relative to $MODELICAPATH.&lt;br />    Ex: loadModel(Modelica.Electrical)&lt;br />    Note: if e.g. loadModel(Modelica) fails, you may have&lt;br />    MODELICAPATH pointing at the wrong location.&lt;br />&lt;br />plot(var)&lt;br />    Plot a variable from the most recently simulated model.&lt;br />    Ex: plot(x)&lt;br />&lt;br />plot(vars)&lt;br />    Plot variables from the most recently simulated model&lt;br />    given as a vector.&lt;br />    Ex: plot({x,y})&lt;br />&lt;/span>&lt;/p>&lt;p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Courier New; font-size:12pt; color:#000000;">&lt;/p>&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Courier New; font-size:12pt; color:#000000;"> plotParametric(var1, var2)&lt;/p>&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Courier New; font-size:12pt; color:#000000;"> Plot var2 relative to var1 from the most recently simulated &lt;/p>&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Courier New; font-size:12pt; color:#000000;"> model.&lt;/p>&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Courier New; font-size:12pt; color:#000000;"> Ex: plotParametric(x,y)&lt;/p>&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Courier New; font-size:12pt; color:#000000;">&lt;br />readFile(str)&lt;br />    Load file given as string and return a string of the&lt;br />    file content.&lt;br />    Ex: readFile("myModel/myModelr.mo")&lt;br />&lt;br />readSimulationResultSize(strFile)&lt;br />    Return the size of the record resulting from a simulation&lt;br />    The size is read from the result file, given as a string&lt;br />    Ex: readSimulationResultSize("dcmotor_res.plt");&lt;br />&lt;br />readSimulationResult(strFile, variables, size)&lt;br />    Read the results of a simulation from a file named by&lt;br />    the string argument strFile. &lt;br />    Here size is the size of the resulting record and&lt;br />    variables is a vector of the variables to investigate.&lt;br />    Ex: readSimulationResult("dcmotor_res.plt", {R1.i,L1.v}, 10)&lt;br />&lt;br />runScript(strFile)&lt;br />    Exectute script file (.mos) given as string argument.&lt;br />    Ex: runScript("simulation.mos")&lt;br />&lt;br />saveModel(strFile,modelname)&lt;br />    Save the model/class with name modelname in the file given &lt;br />    by the strFile string argument.&lt;br />&lt;br />simulate(modelname[,startTime=][,stopTime=][,numberOfIntervals=])&lt;br />    Translates a model and simulates it.&lt;br />    Ex: simulate(dcmotor)&lt;br />    Ex: simulate(dcmotor,startTime=0, stopTime=10, numberOfIntervals=1000)&lt;br />&lt;br />system(str)&lt;br />    Execute str as a system(shell) command, return integer&lt;br />    success value.&lt;br />    Ex: system("touch myFile")&lt;br />&lt;br />timing(expr)&lt;br />    Evaluates expression and returns the number of seconds &lt;br />    the evaluation took.&lt;br />    Ex: timing(x*4711+5)&lt;br />&lt;br />typeOf(variable)&lt;br />    Returns the type of the variable as a string.&lt;br />    Ex: typeOf(R1.v)&lt;br />&lt;br />quit()&lt;br />    Leave OpenModelica and kill the process.&lt;br />&lt;/p>&lt;/body>&lt;/html></Text>
49+
<Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-family:Courier New;">Exit OMShell by pressing Ctrl-d&lt;br />&lt;br />up-arrow&lt;br />    Get previously given command.&lt;br />    &lt;br />down-arrow&lt;br />    Get next command.&lt;br />&lt;br />tab&lt;br />    Command completion of these builtin commands.&lt;br />    Circulate through the commands by only using tab key.&lt;br />&lt;br />cd()&lt;br />    Return the current directory&lt;br />&lt;br />cd(dir)&lt;br />    Change directory to the directory given as a string.&lt;br />    Ex: cd("myModels/myLibrary")&lt;br />&lt;br />clear()&lt;br />    Clear everything.&lt;br />&lt;br />clearVariables()&lt;br />    Clear the variables.&lt;br />&lt;br />help()&lt;br />    Print this helptext (returned as a string).&lt;br />&lt;br />instantiateModel(modelname)&lt;br />    Instantiates a model/class and returns a string &lt;br />    containing the flat class definition.&lt;br />    Ex: instantiateModel(dcmotor)&lt;br />&lt;br />list()&lt;br />    Return a string containing all class definitions.&lt;br />&lt;br />list(modelname)&lt;br />    Return a string containing the class definition of&lt;br />    the named class.&lt;br />    Ex: list(dcmotor)&lt;br />&lt;br />listVariables()&lt;br />    Return a vector of the currently defined variable &lt;br />    names.&lt;br />&lt;br />loadFile(strFile)&lt;br />    Load modelica file given as string argument.&lt;br />    Ex: loadFile("../myLibrary/myModels.mo")&lt;br />&lt;br />loadModel(name)&lt;br />    Load model, function, or package relative to $OPENMODELICALIBRARY.&lt;br />    Ex: loadModel(Modelica.Electrical)&lt;br />    Note: if e.g. loadModel(Modelica) fails, you may have&lt;br />    OPENMODELICALIBRARY pointing at the wrong location.&lt;br />&lt;br />plot(var)&lt;br />    Plot a variable from the most recently simulated model.&lt;br />    Ex: plot(x)&lt;br />&lt;br />plot(vars)&lt;br />    Plot variables from the most recently simulated model&lt;br />    given as a vector.&lt;br />    Ex: plot({x,y})&lt;br />&lt;/span>&lt;/p>&lt;p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Courier New; font-size:12pt; color:#000000;">&lt;/p>&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Courier New; font-size:12pt; color:#000000;"> plotParametric(var1, var2)&lt;/p>&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Courier New; font-size:12pt; color:#000000;"> Plot var2 relative to var1 from the most recently simulated &lt;/p>&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Courier New; font-size:12pt; color:#000000;"> model.&lt;/p>&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Courier New; font-size:12pt; color:#000000;"> Ex: plotParametric(x,y)&lt;/p>&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Courier New; font-size:12pt; color:#000000;">&lt;br />readFile(str)&lt;br />    Load file given as string and return a string of the&lt;br />    file content.&lt;br />    Ex: readFile("myModel/myModelr.mo")&lt;br />&lt;br />readSimulationResultSize(strFile)&lt;br />    Return the size of the record resulting from a simulation&lt;br />    The size is read from the result file, given as a string&lt;br />    Ex: readSimulationResultSize("dcmotor_res.plt");&lt;br />&lt;br />readSimulationResult(strFile, variables, size)&lt;br />    Read the results of a simulation from a file named by&lt;br />    the string argument strFile. &lt;br />    Here size is the size of the resulting record and&lt;br />    variables is a vector of the variables to investigate.&lt;br />    Ex: readSimulationResult("dcmotor_res.plt", {R1.i,L1.v}, 10)&lt;br />&lt;br />runScript(strFile)&lt;br />    Exectute script file (.mos) given as string argument.&lt;br />    Ex: runScript("simulation.mos")&lt;br />&lt;br />saveModel(strFile,modelname)&lt;br />    Save the model/class with name modelname in the file given &lt;br />    by the strFile string argument.&lt;br />&lt;br />simulate(modelname[,startTime=][,stopTime=][,numberOfIntervals=])&lt;br />    Translates a model and simulates it.&lt;br />    Ex: simulate(dcmotor)&lt;br />    Ex: simulate(dcmotor,startTime=0, stopTime=10, numberOfIntervals=1000)&lt;br />&lt;br />system(str)&lt;br />    Execute str as a system(shell) command, return integer&lt;br />    success value.&lt;br />    Ex: system("touch myFile")&lt;br />&lt;br />timing(expr)&lt;br />    Evaluates expression and returns the number of seconds &lt;br />    the evaluation took.&lt;br />    Ex: timing(x*4711+5)&lt;br />&lt;br />typeOf(variable)&lt;br />    Returns the type of the variable as a string.&lt;br />    Ex: typeOf(R1.v)&lt;br />&lt;br />quit()&lt;br />    Leave OpenModelica and kill the process.&lt;br />&lt;/p>&lt;/body>&lt;/html></Text>
5050
<Rule name="FontFamily" >Courier New</Rule>
5151
</TextCell>
5252
</GroupCell>

0 commit comments

Comments
 (0)