Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register
  • Index
  • » Users
  • » cschaad
  • » Profile

Posts

Posts

Jul-17-12 15:14:15
read data from a text file and use it in a simulation
Jan-23-12 12:04:47
Category: Developer

Hi Adeel,

I have the same problem here (Linux 64bit / 10918). With 10641 it was still working...
I think, the crash occurs with all models.

Thank You,

Christian

Nov-17-11 16:42:50
The matlab result .mat export file has no documentation

Hello Jez,
I'm using the following function to import OM-Data into Octave / Matlab

Code:


function omimport(modelname) 
%
% Read OpenModelica Result File into Workspace
%
% SYNTAX: omimport(modelname)
% z.B. omimport('package.model')
%
% Feedback/problems: Christian Schaad, ingenieurbuero@christian-schaad.de

load ([modelname,'_res.mat']);
%Sort out double times
deltat0=find(diff(data_2(1,:))==0);
disp(['Removed same time values: ',num2str(length(deltat0)),'/',num2str(length(data_2(1,:)))])
assignin('base','data_2',data_2);
assignin('base','dataInfo',dataInfo);
assignin('base','name',name);
assignin('base','deltat0',deltat0);
name=name';
for i=1:length(name)
if (isempty(strfind(name(i,:),'der(')))         
nonchars=strfind(name(i,:),char(0));
if dataInfo(2,i)<0;
assignin('base','temp',-data_2(-dataInfo(2,i),:));
else
assignin('base','temp',data_2(dataInfo(2,i),:));
end
evalin('base',(['temp(deltat0)=[];']));
evalin('base',([num2str(name(i,1:nonchars(1)-1)),'=temp;']));

end
end
clear data_1 data_2 Aclass description modelname i dataInfo temp deltat0;
evalin('base',(['clear name data_2 dataInfo nonchars temp']));

Oct-13-11 11:52:10
Need a simple OMOptim input file that works so I can learn this tool

...but anyway I still cannot get it to work. Or maybe I am too stupid.

I tried it with Mechanics.Translational.Examples.Damper:

I set springDamper3.d as optimized variable with min 20 and max 30.
As objective i defined to minimize springDamper3.f.

Simulations are running, but I get no results.
In OMOptim temp directory I find always "inf" in the second column of the iteration*.sav files...

Oct-11-11 12:12:49
Need a simple OMOptim input file that works so I can learn this tool

The above mentioned bug is resolved. Thank you!

Oct-04-11 13:01:49
Drag and drop fails from custom library
Category: Developer

At least in linux, specifying external libraries as commanline arguments works.

Oct-04-11 12:58:30
Problem with reading data from external files

Hi Ivan,

for some years now, I had problems importing external data to OpenModelica.
I already used several workarounds.
A fast and reliable solution, which I am actually using is  from Jörg Rädler:

http://www.j-raedler.de/2010/11/accessi … tareader2/

in combination with octcdf to create nc-files with octave.

If you have further questions, ask!

Christian

Aug-13-11 14:23:15
Need a simple OMOptim input file that works so I can learn this tool

This bug is still open:
https://openmodelica.org:8443/cb/issue/ … ation=true
I'm also really looking forward to have this solved.

Jul-19-11 10:50:17
Category: Developer

On linux the latest OMedit Revision 9500 segfaults while opening Modelica.Mechnics.Translational.Components from MSL 3.1.

The error messages are: 'error? malformed string-list. skipping:' followed by one character per line of: '/usr/lib/omlibrary/Modelica 3.1/Mechanics/Translational.mo"eadonly"'

(Maybe the 'eadonly' is a hint?)

These error messages also appear in SVN 9495 and earlier, but didn't lead to a crash...

Thanks for your great work with OMEdit!

May-18-11 14:53:15
Installation from source fails

...I think you are missing lpsolve?!

Mar-18-11 15:44:32
OMEdit: Missing menu entries on right click

Working perfectly! Thank you!

Mar-16-11 14:03:58
Process to install OpenModelica
Category: Workshops

For my slackware64-current installation, the deb2tgz converted debian-packages are working!

Mar-16-11 13:56:46
OMEdit: Missing menu entries on right click

Hello!
Not having used OpenModelica for two years now, I'm really pleased with the development over the last time. Thank you developers!
Also the model editor OMEdit is looking very nice. Nevertheless I'm missing the menu entries for the properties and parameters on right click on the models as described in the manual.
Am I doing something wrong or is this feature disabled at the moment? I'm using the latest linux nightly build  8226. 
Thanks, Christian

Mar-16-11 13:49:06
Error PackShape in Modelica.Animation.Shape

Hi Constantin,
Are you using linux? I had the same problem, when OPENMODELICALIBRARY in my .bashrc pointed to the wrong library...

  • Index
  • » Users
  • » cschaad
  • » Profile
You are here: