dymola

How to compile with /bigobj within Dymola (Modelica)

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-02 02:46:58
I am integrating a relative small Finite Element (FE) model into Modelica. In doing so, I created a Model (Modelica class) that can read the mass (M) and stiffness (K) matrix in Matlab binary file format. I connected the FE model with some components from the Modelica Standard Library (Modelica.Mechanics.MultiBody). If M and K are very small (say 20x20), then Dymola is able to run the Model and provides pretty accurate results compared to Abaqus (but computational not that efficient). However, if I increase the complexity of the FE model that includes larger M and K (e.g. size(M)=[200,200]),

External Functions: Reference headers in C-script to compiled dll

无人久伴 提交于 2019-12-01 20:20:50
Using Dymola 2017. Case A) Calling an external c-script I have had success implementing simple external c functions that have no “# include <-->” statements: Modelica Function: function chirp input Modelica.SIunits.AngularVelocity w_start; input Modelica.SIunits.AngularVelocity w_end; input Real A; input Real M; input Real t; output Real u "output signal"; external "C" u=chirp(w_start,w_end,A,M,t) annotation(IncludeDirectory="modelica://ExternalFuncTest/Resources/Source/", Include="#include \"chirp.c\""); end chirp; C-script: double chirp(double w1, double w2, double A, double M, double time)

matlab dymola connection fails after a while

若如初见. 提交于 2019-12-01 13:57:44
I have data of an experiment in a .mat file and a model written in dymola. I use the dymolaM.m file to send commands from matlab to dymola. In that way I can use matlab to optimize a parameter of my model. Matlab reads in the data from the .mat file, initialises dymola in a correct way, lets dymola simulate the model, reads in the output of dymola and compares it with the experimental data. This all works fine for a wile, but if I repeat the matlab dymola connection too much I always get the following error: ??? Error using ==> ddeexec The first argument 'channel' is not valid. Error in ==>

matlab dymola connection fails after a while

情到浓时终转凉″ 提交于 2019-12-01 10:37:45
问题 I have data of an experiment in a .mat file and a model written in dymola. I use the dymolaM.m file to send commands from matlab to dymola. In that way I can use matlab to optimize a parameter of my model. Matlab reads in the data from the .mat file, initialises dymola in a correct way, lets dymola simulate the model, reads in the output of dymola and compares it with the experimental data. This all works fine for a wile, but if I repeat the matlab dymola connection too much I always get the

Teaching Modelica Medical Non-SI Units

左心房为你撑大大i 提交于 2019-12-01 05:15:03
I want to use non-SI units in a Modelica model in a medical context. I am using Modelica in Dymola. Being an engineer I prefer the SI units. But my model parameters are sourced from medical publications and I want to avoid conversion mistakes. Medical units also simplify communication with doctors. For example, the unit "mmHg" (millimetres of mercury) is used instead of "Pa" for pressure. Pressure variables are defined in the model as follows: type Pressure_mmHg = Real (final quantity="Pressure", final unit="mmHg") Translating the model for simulation yields the following warning for every

Teaching Modelica Medical Non-SI Units

别来无恙 提交于 2019-12-01 03:24:42
问题 I want to use non-SI units in a Modelica model in a medical context. I am using Modelica in Dymola. Being an engineer I prefer the SI units. But my model parameters are sourced from medical publications and I want to avoid conversion mistakes. Medical units also simplify communication with doctors. For example, the unit "mmHg" (millimetres of mercury) is used instead of "Pa" for pressure. Pressure variables are defined in the model as follows: type Pressure_mmHg = Real (final quantity=

How to initialize model with previous simulation solution?

泄露秘密 提交于 2019-11-30 17:25:17
问题 Having run out of ideas again I turn to you. I'm sure this has to have been answered before though for the life of me I can't find a clear description of it. Scenario: You work hard to get a model all set up with initial guesses, etc., and then solve for the 'real' steady state (SS) condition of all parameters in the model. From this solution I want to investigate events effects on the system. To perform this deviation from SS analysis, it would be expedient to be able to simply load the SS

List of Dymola flags

萝らか妹 提交于 2019-11-30 16:30:06
Some settings in Dymola can be altered by setting flags in the "Commands" window: Some examples for flags are: Advanced.AutoFormatting Advanced.PedanticModelica Advanced.LogStartValuesForIterationVariables Hidden.PrintFailureToDifferentiate Is there a comprehensive list of all Dymola flags? Or, even better, a command to print such a list? Or, even better, something like the about:config in Firefox? Especially, I would like to change the default setting for the Save contents in one file checkbox to Directories - No Questions because version control software (git in my case) works better with

How to add load libraries, change directory, etc. on startup?

自古美人都是妖i 提交于 2019-11-28 11:02:57
问题 Is there a way to automatically load libraries, change to a certain working directory, etc. when launching Dymola? 回答1: The question is slightly ambiguous - the other answer is quite good for one scenario. (The openModel call in Step 2 can be modified.) However, if you always want to launch Dymola in a specific directory etc it is possible using the GUI in Dymola 2017 FD01 (and slightly differently from Dymola 2016 FD01): Change Directory (File>Change Directory) Add to Modelica Path (File