{"id":23275576,"url":"https://github.com/pr-dc/prdc_omoctave","last_synced_at":"2025-07-24T08:07:50.936Z","repository":{"id":189542091,"uuid":"445140675","full_name":"PR-DC/PRDC_OMOctave","owner":"PR-DC","description":"GNU Octave scripting OpenModelica interface by PR-DC. ","archived":false,"fork":false,"pushed_at":"2022-01-06T11:15:09.000Z","size":133,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-05-04T16:00:13.225Z","etag":null,"topics":["gnu-octave","octave","openmodelica"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PR-DC.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.txt","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-01-06T11:10:47.000Z","updated_at":"2023-07-02T10:44:47.000Z","dependencies_parsed_at":"2023-08-20T17:58:50.077Z","dependency_job_id":"28f2294f-55fb-4dcb-bb2f-d1409444b373","html_url":"https://github.com/PR-DC/PRDC_OMOctave","commit_stats":null,"previous_names":["pr-dc/prdc_omoctave"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PR-DC%2FPRDC_OMOctave","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PR-DC%2FPRDC_OMOctave/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PR-DC%2FPRDC_OMOctave/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PR-DC%2FPRDC_OMOctave/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PR-DC","download_url":"https://codeload.github.com/PR-DC/PRDC_OMOctave/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230501171,"owners_count":18236061,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gnu-octave","octave","openmodelica"],"created_at":"2024-12-19T21:15:00.728Z","updated_at":"2024-12-19T21:15:01.172Z","avatar_url":"https://github.com/PR-DC.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PR-DC OMOctave\nGNU Octave scripting OpenModelica interface using ZEROMQ based on OMMatlab available at:\u003cbr\u003e\nhttps://github.com/OpenModelica/OMMatlab/\n\n## Requirements\n[OpenModelica](https://www.openmodelica.org/)\u003cbr\u003e\n[GNU Octave](https://www.gnu.org/software/octave/)\u003cbr\u003e\n\nProvided interface is partially tested with **GNU Octave 6.2.0** and **OpenModelica 1.16.5**.\n\n## Installation\nClone the repository and add the installation directory to Octave PATH. For Example \u003cbr\u003e\n```\n\u003e\u003e addpath('C:\\OMOctave\\')\n```\nYou can also directly use the OMOctave package directly from the directory where you have cloned, without need to perform the above steps. But the package cannot be used globally.\n\n## Usage\n```\n\u003e\u003e omc = OMOctave();\n\u003e\u003e omc.sendExpression(\"getVersion()\")\nans =\n{\n  [1,1] = OpenModelica v1.16.5 (64-bit)\n}\n\u003e\u003e omc.sendExpression(\"model a end a;\")\nans =\n{\n  [1,1] = a\n}\n\u003e\u003e omc.sendExpression('loadFile(\"C:/Program Files/OpenModelica1.16.5-64bit/OMSens/resource/BouncingBall.mo\")')\nans =\n{\n  [1,1] = true\n}\n\u003e\u003e omc.sendExpression(\"getClassNames()\")\nans =\n{\n  [1,1] = BouncingBall\n  [1,2] = a\n}\n\u003e\u003e omc.sendExpression(\"simulate(BouncingBall)\")\nans =\n\n  scalar structure containing the fields:\n\n    resultFile = C:/Users/User/Desktop/OMOctave/BouncingBall_res.mat\n    simulationOptions = startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-006, method = 'dassl', fileNamePrefix = 'BouncingBall', options = '', outputFormat = 'mat', variabl\neFilter = '.*', cflags = '', simflags = ''\n    messages = LOG_SUCCESS       | info    | The initialization finished successfully without homotopy method.\nLOG_SUCCESS       | info    | The simulation finished successfully.\n\n    timeFrontend = 0.0065355\n    timeBackend = 0.0096361\n    timeSimCode = 0.0013927\n    timeTemplates = 0.0318059\n    timeCompile = 8.706928700000001\n    timeSimulation = 0.3084547\n    timeTotal = 9.0651016\n\u003e\u003e omc.close();\n```\nTo see the list of available OpenModelicaScripting API see https://www.openmodelica.org/doc/OpenModelicaUsersGuide/latest/scripting_api.html\n\n## License\nCopyright (C) 2021 PR-DC \u003cinfo@pr-dc.com\u003e\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU Lesser General Public License as \npublished by the Free Software Foundation, either version 3 of the \nLicense, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU Lesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public License\nalong with this program.  If not, see \u003chttps://www.gnu.org/licenses/\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpr-dc%2Fprdc_omoctave","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpr-dc%2Fprdc_omoctave","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpr-dc%2Fprdc_omoctave/lists"}