dymola

How to access model jacobian from FMU or Dymola without analytical jacobian

喜夏-厌秋 提交于 2021-02-18 17:42:11
问题 I am trying to find a way to access the jacobian for a model in dymola either through a compiled FMU or from the exported Dymola source code. The final objective is to use the same procedure to access the jacobian for a much more complex multibody vehicle model (205 states). Using fmi2GetDirectionalDerivative() from the FMI Standard seemed promising so I made a simple linear vehicle model to test this. model Vehicle "Single-track Linear bicycle vehicle model" extends Modelica.Blocks.Icons

DYMOLA: opc server how to initialize using dsin.txt or a mat file using MATLAB

若如初见. 提交于 2021-02-17 05:52:07
问题 I created an OPC server in DYMOLA, now I have this in DYMOSIM to click and initialize using a ".MAT" file of a dsin.txt Now I created a GUI file in MATLAB, and take input for variables and created a mat file >>save FLUID_INITIALISE area volume density Now I want to initialize this using MATLAB I can do this >>write(Initialize,1) //To initialize a previous data I know can do this using dymola , SIMULATION > CONTINUE > IMPORT BUT I WANT TO INITIALIZE IT USING MATLAB normal MAT FILE LOOKS LIKE

DYMOLA: opc server how to initialize using dsin.txt or a mat file using MATLAB

[亡魂溺海] 提交于 2021-02-17 05:52:05
问题 I created an OPC server in DYMOLA, now I have this in DYMOSIM to click and initialize using a ".MAT" file of a dsin.txt Now I created a GUI file in MATLAB, and take input for variables and created a mat file >>save FLUID_INITIALISE area volume density Now I want to initialize this using MATLAB I can do this >>write(Initialize,1) //To initialize a previous data I know can do this using dymola , SIMULATION > CONTINUE > IMPORT BUT I WANT TO INITIALIZE IT USING MATLAB normal MAT FILE LOOKS LIKE

How can I analyse the results of a DymolaSimulation (simulated via python interface)

馋奶兔 提交于 2021-02-10 23:21:36
问题 I simulated some Dymola Models via the python interface (result files are dsres.mat and dsres.txt), now I would like to compare and analyse these results (or to be clear some of the outputs) with python. Is there a possibility to do so with the python interface or do I need to work with modelicares/PySimulator/buildspy or something like that? I don't get how to read and understand the dsres.txt file. I would like not only to have a diagramm with the outputs but also a table (including time,

Visual Studio 2017 for Dymola cannot open stdio.h

穿精又带淫゛_ 提交于 2021-02-10 06:44:14
问题 I am trying to use Visual Studio 2017 as a compiler in Dymola 2019. I have installed all the components in VS2017 for C++ (as far as i could find). But when i try to test compiler in Dymola, I get an error message as follows : Compiling and linking the model (Visual C++). ********************************************************************** ** Visual Studio 2017 Developer Command Prompt v15.9.11 ** Copyright (c) 2017 Microsoft Corporation *****************************************************

Visual Studio 2017 for Dymola cannot open stdio.h

不想你离开。 提交于 2021-02-10 06:44:12
问题 I am trying to use Visual Studio 2017 as a compiler in Dymola 2019. I have installed all the components in VS2017 for C++ (as far as i could find). But when i try to test compiler in Dymola, I get an error message as follows : Compiling and linking the model (Visual C++). ********************************************************************** ** Visual Studio 2017 Developer Command Prompt v15.9.11 ** Copyright (c) 2017 Microsoft Corporation *****************************************************

CVodeError while simulating with pyFMI

旧城冷巷雨未停 提交于 2021-02-07 14:44:27
问题 I try to set up the pyFMI on Anaconda (Python 3.6.8) Installed all the required packages listed on the pyFMI site. The fmu is loaded without the issue but while I try to simulate the fmu I get an error: Could not find cannot import name 'radau5' Could not find cannot import name 'dopri5' Could not find cannot import name 'rodas' Could not find cannot import name 'odassl' Could not find ODEPACK functions. Could not find RADAR5 Could not find GLIMDA. Traceback (most recent call last): File

CVodeError while simulating with pyFMI

寵の児 提交于 2021-02-07 14:43:30
问题 I try to set up the pyFMI on Anaconda (Python 3.6.8) Installed all the required packages listed on the pyFMI site. The fmu is loaded without the issue but while I try to simulate the fmu I get an error: Could not find cannot import name 'radau5' Could not find cannot import name 'dopri5' Could not find cannot import name 'rodas' Could not find cannot import name 'odassl' Could not find ODEPACK functions. Could not find RADAR5 Could not find GLIMDA. Traceback (most recent call last): File

Modelling Diffusion in Dymola/Modelica

放肆的年华 提交于 2021-02-07 09:25:44
问题 I'm facing a problem with modelling diffusion in Dymola. I want to have two seprate volumes (filled with air), which can be joined and thus exchange heat via diffusion. My approach was using the Modelica.Fluid library and connect two ClosedVolumes with a Valve. But as I found out, this library doesn't regard difussion. What would be the best way to accomplish such a model? 回答1: This limitation is due to the use of stream connector in the Modelica.Fluid library. One way to solve this is to

Dymola: OPC server grayed out

谁说我不能喝 提交于 2021-02-05 08:41:10
问题 I am using Dymola [Ran as Administrator] I have installed OPC Core Components: D:\Program Files\MATLAB\R2020a\toolbox\opc\opc\private\win64\OPCCoreComponents\OPC Core Components Redistributable (x64).exe I have installed Matrikon OPC Server Simulation. I have put in environment variables: In Dymola I am using this: This is the simple code I am running in Dymola: OPC server is grayed out still. Simulation is working. 回答1: You have to use an older version of Visual Studio. Here are the