# OMSimulator [![License: OSMC-PL](https://img.shields.io/badge/license-OSMC--PL-lightgrey.svg)](OSMC-License.txt)
The OpenModelica FMI & SSP-based co-simulation environment.
## Downloads
OMSimulator can be installed as stand-alone application, as C library to be linked into custom applications, and as python package. OMSimulator is also shipped with the OpenModelica installer, which also includes OMEdit as the graphical editor.
* [OpenModelica](https://openmodelica.org/)
* [Stand-alone package](https://build.openmodelica.org/omsimulator/)
* Python 3.8+: `pip3 install OMSimulator`
## Documentation
The latest documentation is available as [pdf](https://openmodelica.org/doc/OMSimulator/master/OMSimulator.pdf) and [html](https://openmodelica.org/doc/OMSimulator/master/html/) versions.
For OMSimulatorLib a [Doxygen source code documentation](https://openmodelica.org/doc/OMSimulator/master/OMSimulatorLib/) is available as well.
## FMI cross-check results
* https://libraries.openmodelica.org/fmi-crosschecking/OMSimulator/history/
## Dependencies
- [Boost](http://www.boost.org/) (system, filesystem)
- [cmake](http://www.cmake.org)
- [Sphinx](http://www.sphinx-doc.org/en/stable/)
- [readline (if using Lua)](http://git.savannah.gnu.org/cgit/readline.git)
- [3rdParty subproject](https://github.com/OpenModelica/OMSimulator-3rdParty)
- FMILibrary
- Lua
- PugiXML
- SUNDIALS CVODE
- SUNDIALS KINSOL
- CTPL
## Compilation
Note: Make sure to fetch the submodules, e.g., using `git submodule update --init`.
### Linux / MacOS
1. Install libxml2-dev
```bash
sudo apt-get install libxml2-dev
```
1. Configure OMSimulator
```bash
make config-3rdParty
make config-OMSimulator
```
For the debug configuration add `BUILD_TYPE=Debug` to `make config-OMSimulator`.
1. Build OMSimulator
```bash
make OMSimulator -j4
```
### Windows (OMDev mingw)
1. Setup OMDev
- Checkout OMDev (OpenModelica Development Environment): `git clone https://openmodelica.org/git/OMDev.git`
- Follow the instructions in `OMDev/INSTALL.txt`
1. Configure OMSimulator
```bash
make config-3rdParty
make config-OMSimulator
```
For the debug configuration add `BUILD_TYPE=Debug` to `make config-OMSimulator`.
1. Build OMSimulator
```bash
make OMSimulator -j4
```
### Windows (Visual Studio)
The following versions of Visual Studio are supported:
- "VS14-Win32" -> "Visual Studio 14 2015"
- "VS14-Win64" -> "Visual Studio 14 2015 Win64"
- "VS15-Win32" -> "Visual Studio 15 2017"
- "VS15-Win64" -> "Visual Studio 15 2017 Win64"
It is not strictly required to install the full Visual Studio IDE. The batch scripts only require *[Visual C++ Build Tools](http://landinghub.visualstudio.com/visual-cpp-build-tools)*.
1. Install boost (VS14: 1.63, VS15: 1.64)
- Download and install precompiled boost libs, e.g. from [this](https://sourceforge.net/projects/boost/files/boost-binaries/) source
- Set environment variable `BOOST_ROOT` to install path, e.g:
- `BOOST_ROOT=C:\local\boost_1_64_0`
1. Configure OMSimulator
```bash
.\configWinVS.bat VS15-Win64
```
To build the debug version change `CMAKE_BUILD_TYPE` to `Debug` or change the release type in Visual Studio to `debug`.
1. Build OMSimulator
```bash
.\buildWinVS.bat VS15-Win64
```
## Test your build
The testsuite of OMSimulator is run on Jenkins for every commit and creating
[test reports](https://test.openmodelica.org/jenkins/job/OMSimulator/job/master/lastSuccessfulBuild/testReport/).
The project is tested for the following OS:
- linux-arm32
- linux64 without OMPython
- cross-compiled mingw64
- msvc64
- cross-compiled OSX
In addition the [OpenModelica project](https://github.com/OpenModelica/OpenModelica) has a number of test cases using OMSimulator for FMU simulation that can be find in this [OpenModelica test reports](https://test.openmodelica.org/jenkins/job/OpenModelica/job/master/lastSuccessfulBuild/testReport/).
To verify your build is compiled and installed corrrectly see the following instructions.
### Linux / MacOS / Windows (OMDev mingw)
1. Build test dependencies
```bash
make -C testsuite/ difftool resources
```
2. Run partest
```bash
cd testsuite/partest/
./runtests.pl -j4
```
Use `-jN` to test with `N` threads.
To disable TLM tests add `-notlm`, to disable Python tests add `-asan`.
### Windows (Visual Studio)
We currently have no bat-Script to build and test with CMD, so you have to use OMDev mingw shell for the tests.
1. Build test dependencies
```bash
make -C testsuite/ difftool resources
```
2. Run partest
```bash
cd testsuite/partest/
./runtests.pl -j4 -platform=win
```
Use `-jN` to test with `N` threads.
To disable TLM tests add `-notlm`, to disable Python tests add `-asan`.
没有合适的资源?快使用搜索试试~ 我知道了~
基于OpenModelicaFMI和SSP的协同仿真环境。_Lua_C++_下.zip
共1056个文件
txt:141个
rst:115个
lua:111个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 127 浏览量
2023-04-08
18:05:31
上传
评论
收藏 84.26MB ZIP 举报
温馨提示
基于OpenModelicaFMI和SSP的协同仿真环境。_Lua_C++_下.zip
资源推荐
资源详情
资源评论
收起资源包目录
基于OpenModelicaFMI和SSP的协同仿真环境。_Lua_C++_下.zip (1056个子文件)
configWinVS.bat 11KB
make.bat 7KB
buildWinVS.bat 3KB
OMSimulatorPython3.bat 105B
OMSimulatorLua.c 52KB
GetGitRevisionDescription.cmake 4KB
FindGccAtomic.cmake 2KB
FindKINSOLLibrary.cmake 1KB
FindCVODELibrary.cmake 1KB
FindFMILibrary.cmake 1KB
FindLUALibrary.cmake 1KB
FindMINIZIP.cmake 1KB
FindFMI4c.cmake 1021B
FindZLIB.cmake 1014B
fmi.config 427B
fmi.config 148B
fmi.config 148B
System.cpp 107KB
ComponentFMUME.cpp 68KB
ComponentFMUCS.cpp 67KB
Values.cpp 63KB
OMSimulator.cpp 58KB
Model.cpp 48KB
SystemWC.cpp 40KB
SystemTLM.cpp 36KB
SystemSC.cpp 28KB
AlgLoop.cpp 22KB
TLMBusConnector.cpp 19KB
Snapshot.cpp 16KB
Scope.cpp 13KB
ComponentTable.cpp 13KB
Flags.cpp 12KB
DirectedGraph.cpp 11KB
Connector.cpp 10KB
Connection.cpp 10KB
Logging.cpp 8KB
MATWriter.cpp 7KB
Tags.cpp 7KB
OMSFileSystem.cpp 6KB
Component.cpp 6KB
ElementGeometry.cpp 5KB
FMUInfo.cpp 5KB
ConnectionGeometry.cpp 5KB
ResultReader.cpp 5KB
ExternalModel.cpp 5KB
MatReader.cpp 5KB
ComRef.cpp 4KB
CSVReader.cpp 4KB
MatVer4.cpp 4KB
Variable.cpp 4KB
ResultWriter.cpp 4KB
SignalDerivative.cpp 4KB
CSVWriter.cpp 3KB
BusConnector.cpp 3KB
Clocks.cpp 3KB
Element.cpp 3KB
OMSString.cpp 2KB
Clock.cpp 2KB
ConnectorGeometry.cpp 2KB
SystemGeometry.cpp 2KB
StepSizeConfiguration.cpp 2KB
ExternalModelInfo.cpp 2KB
main.cpp 2KB
TLM_FMI_3D_FineGrained.csv 2.41MB
TLM_FMI_1D.csv 1.16MB
TLM_FMI_ME_1D.csv 1.16MB
TLM_External_Tools.csv 1.13MB
TLM_FMI_3D.csv 317KB
tlm3d.csv 313KB
TLM_FMI_1D_CoarseGrained.csv 252KB
TLM_FMI_1D_FineGrained.csv 251KB
TLM_FMI_Submodels.csv 238KB
tlm1d.csv 66KB
tlm1dfg.csv 57KB
tlm3d_all.csv 49KB
tlmexternal.csv 40KB
tlmsignals.csv 32KB
drivetrain.csv 7KB
CONOPS.csv 347B
CONOPS.csv 347B
CONOPS.csv 347B
setpoint.csv 57B
table.csv 52B
road.csv 34B
eCS_Generic_Export.dll 5.67MB
eCS_Generic_Export.dll 5.11MB
engine.dll 3.55MB
cockpit.dll 3.53MB
consumer_A.dll 3.49MB
consumer_B.dll 3.49MB
eCS_SW.dll 3.47MB
bC.dll 3.44MB
engine.dll 3.17MB
cockpit.dll 3.16MB
consumer_A.dll 3.13MB
consumer_B.dll 3.13MB
eCS_SW.dll 3.08MB
bC.dll 3.06MB
DualMassOscillator_System2.dll 1.01MB
DualMassOscillator_System1.dll 1019KB
共 1056 条
- 1
- 2
- 3
- 4
- 5
- 6
- 11
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9154
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于SIFT算法实现全景图像拼接python源码+项目说明.zip
- 1.py
- LS416 高性能DSP的声控处理芯片语音识别模块AD设计硬件(原理图+PCB)+L2416-M-26P模块封装库+器件手册
- 基于tensorflow实现LSTM, CNN, SVM, MLP语音情感识别源码.zip
- 基于JSP在线学生选课管理系统源码.zip
- 基于JSP在线学生信息管理系统源码.zip
- 常用DHT11 MIC SHT11 VS1838B CHT8305 MQ-3 温湿度气体等传感元件2D3D封装库.PcbLib
- 基于JSP在线新闻管理系统包含前后台源码.zip
- 基于JSP在线文具销售平台商城源码.zip
- tiamo软件教程.doc
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功