- Index
- » Users
- » C1Ron
- » Profile
Posts
Posts
When exporting/saving DXF files or STL files from common 3D CAD tools, e.g. Solidworks, there are a lot of possibilities to choose from.
For the DXF case, I was not able to choose suitable settings for it to work in OpenModelica.
The STL file would be shown, but my coordinate system did not have any effect in the OM visualization.
Where can I find details for which settings to choose for the exported file to be compatible with OM interpreter ?
Also, for the DXF, there are many versions to choose from. Which version should I choose ?
When working with OMShell, you can define variables and use common functions in a similar format as other high-level languages, e.g.
Code:
x := -3:0.1:3;
y := tan(x);
Is it possible to plot these "on the fly" ?
After running simulation with resultfile "mySim_res.mat", how can I extract certain variables/parameters from that file and then write these to a csv file ?
I tried
filterSimulationResults("mySim_res.mat", "myCSV.csv", "x")
but get no output, neither true or false...
BTW, I use Windows 10, and the simulation is carried out using the OMShell - simulate-command
EDIT #1
I found that you can extract data from your simulation using "readSimulationResult". E.g.
simData := readSimulationResult("filename.mat", {var1, ..., varN})
and then write values to a csv file using
writeFile("filename.csv", simData)
where the "simData" must be a string with proper format...
- Index
- » Users
- » C1Ron
- » Profile