diff --git a/Py4Mod/py4mod/README.md b/Py4Mod/py4mod/README.md index b7f4ecbb22835cdfddde4c7f997b1a905e2d852f..b064b665267de7d6bdd92d049761dedaa68eaff7 100644 --- a/Py4Mod/py4mod/README.md +++ b/Py4Mod/py4mod/README.md @@ -1,5 +1,8 @@ # Funktionennamen +The following table gives a comparison between the names of the functions of the interfaces and a small description of their function. It is important to keep in mind that some functions receive different arguments depending on the chosen interface. + + | DymolaInterface | OpenModelica Interface | ModelicaModel | | | ------------------------ | ------------------------ | ------------- | ------------------------------------------------------------------------------------------------------ | | __init__ | __init__ | createInterface | In OM creates an OMCSessionZMQ object, in DymInterface starts Dymola | @@ -15,12 +18,15 @@ | dymApplyModifiers | setValue | --- | In Dymola applies modifiers in modifierList. In OM chage the starts values in the XML init file | | buildModel | buildModel | buildModel | Builds a modelica model by generating c code and build it | | --- | simulate | --- | Simulate or re-simulate model by calling the .exe file (generated with buildModel()) | -| simulateModel | simulateModel || Simulates a modelica model by generating c code, build it and run the simulation executable | +| simulateModel | simulateModel | --- | In OM simulates a modelica model by generating c code, build it and run the simulation executable. In Dymola simulates the model and compiles it if it has not been compiled before | | getResultVarNames | getResultVarNames | getResultVarNames | Returns the variablen names from the simulation result | | getResultsFast | getResultsFast | getResults | Returns the trajectories for the variables in outputVarList by using ModelicaRes | | getResults | getResults | --- | To extract simulation results by using OMPython/DymolaInterface | -| close | exit | --- | To close dymola | +| close | close | close | To close dymola or OM | <br /> ** This function is not necesary in Dymola <br /> ---- This function is not implemented in the Interface \ No newline at end of file +--- This function is not implemented in the Interface + +<br /> +The functions that have not been implemented in ModelicaModel but in any of the interfaces can be easily called with the class variable self.interface.