mtiller / fmusdk Goto Github PK
View Code? Open in Web Editor NEWThis is an SDK (originally developed by QTronic) for testing the new Functional Mockup Interface developed by the Modelisar project.
This is an SDK (originally developed by QTronic) for testing the new Functional Mockup Interface developed by the Modelisar project.
Remove various print statements currently in the Linux port.
Hi,
I've been fiddling with your lib to build an own co-simulation FMU, and I just realized that things get messy when mixing different kinds of variables in the same model.
A thing that I've assumed this far is that a value reference is unique throughout the model, no matter what type the variable it is referencing. (Correct me here if I'm wrong.)
That said, I think the in-memory storage mechanism for model variables needs to be modified.
Let's say I have 1 real and 1 integer to store. This is how the storage is allocated:
comp->r = calloc(NUMBER_OF_REALS, sizeof(fmiReal));
comp->i = calloc(NUMBER_OF_INTEGERS, sizeof(fmiInteger));
...where each of those macros are defined to be 1.
I naturally pick the value references to 0 and 1 for my two variables. When trying to set the value of the variable with value reference = 1, I get "fmiSetInteger: Illegal value reference 1", This is because we can't store the integer at the second position in the allocated array of length 1:
comp->i[vr[i]] = value[i]; // vr[i] == 1
I find this inconsistent.
Thanks for all your great work.
Stefan
There have been reports that the temp dir is not getting removed after simulation (in the Linux port at least).
I guess this needs ab update after release of fmusdk vs. 2.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.