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
  • » mahesRBR
  • » Profile

Posts

Posts

Sep-13-21 07:38:23
details of getComponentAnnotations

Hi,
I want to know what is defintion of each values returned by getComponentAnnotations
I was not able to interpret from the pattern
For example below are getComponentAnnotation for Inertia Block and ChuaCircuit .
I was not able to locate a document explaining the constituents of return statement

Code:

>> getComponentAnnotations(Modelica.Mechanics.Rotational.Components.Inertia)

{{},{HideResult=true, Dialog("Advanced","Parameters",true,false,false,-,-,-,-,"",false)},{Dialog("General","Initialization",true,true,false,-,-,-,-,"",false)},{Dialog("General","Initialization",true,true,false,-,-,-,-,"",false)},{Dialog("General","Initialization",true,true,false,-,-,-,-,"",false)}}

Code:

>> getComponentAnnotations(Modelica.Electrical.Analog.Examples.ChuaCircuit)

{{Placement(true,-75.0,38.0,-25.0,-25.0,25.0,25.0,270.0,-,-,-,-,-,-,)},{Placement(true,-75.0,-17.0,-25.0,-25.0,25.0,25.0,270.0,-,-,-,-,-,-,)},{Placement(true,-,-,-25.0,38.0,25.0,88.0,-,-,-,-,-,-,-,)},{Placement(true,25.0,3.0,-25.0,-25.0,25.0,25.0,270.0,-,-,-,-,-,-,)},{Placement(true,-25.0,3.0,-25.0,-25.0,25.0,25.0,270.0,-,-,-,-,-,-,)},{Placement(true,75.0,3.0,-25.0,-25.0,25.0,25.0,270.0,-,-,-,-,-,-,)},{Placement(true,-,-,-25.0,-112.0,25.0,-62.0,-,-,-,-,-,-,-,)}}

Code:

Thanks

Jul-13-21 10:58:53
Class SI.Reluctance not found in scope

Hi,
I tried recreating the example  (Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance) in a new Model "Inerti2"
copied the same code from that example to this Model as refers to many Type paramaters
Get the error

Error: Class SI.Reluctance not found in scope inerti2

However if i compile the example , it works fine

I am using Modelica 4.0.0 and Open Modelcal 1.17

Thanks

Jul-12-21 05:31:36
Simulation output to csv

Thanks. Both issues are resolved by setting simulation flag -noEventEmit

Jul-09-21 13:41:16
Simulation output to csv

Hi,
Thanks for reply
For second issue
Here is lookup.mo file, data file sued and csv file generated

lookup-res.csv

data2.txt

lookup.mo

for the first issue - so what is the solution. how to avoid the last line from being repeated ?

Thanks

Jul-09-21 11:07:53
Simulation output to csv

Hi,

I observed 2 issues while writing simulated output to csv files

1. when I click on "csv" button in plot window or set in simulation options ( Output tab , Output format =csv) , the generated csv as addtional row at end duplicating the last row (like this , first column is time of simulation and interval was set as 0.1)
3.8   23,1, 43,2
3.9    21,1, 41,2
4    20,1, 40,2
4  20,1, 40,2   ( this row gets repeated)


2. When combitime table is added , 2 rows duplicated are added for each simulated row as shown below

0    0    0    0
1    2    3    4
1    2    3    4
1    2    3    4
2    4    6    8
2    4    6    8
2    4.    6    8
3    6    9    12
3    6    9    12


I  am using OPenmodeilca 1.17 and Modelica 4.0.0

Thanks

Jun-09-21 09:09:05
Simulation Process failed , Exited with Code -1

Hi,
I am trying to use a CombiTable1D in my model

Created a txt file (filename tab01.txt)  as  shown below

#1
double tab1(3,3)   # comment line
1.1 2.1 5.1
2.1 3.1 7.1
3.1 6.1 8.1

and in CombTable1D set parameters as given below
Modelica.Blocks.Sources.CombiTimeTable taba(columns = 2:3, fileName = "C:/Openmod/data01.txt", tableName = "tab1", tableOnFile = true)

Compiling it get this error

... loading "tab1" from "C:/Openmod/data01.txt"

Error in line 5 when reading numeric data of matrix "tab1(3,3)" from file "C:/Openmod/data01.txt"

simulation terminated by an assertion at initialization
Simulation process failed. Exited with code -1.

I am using Open Modelica 1.17 with Modelical 4.0.0 librry loaded

THanks

Apr-22-21 06:28:19
FMU does not export annotations

HI,
When I create a model and export as FMU in OMEdit , it looks like the annotations are not exported as when I import the same FMU in OMEdit , the diagram view is blank
ami i missing anything here ?

thanks

Apr-20-21 11:41:19
Difference between Class and Model in OpenModellica

Hi,
I am new to OpenModelica and want to know if there is any difference between 'Class" and "Model" in OpenModelica ( Open New Modelica class and set the Specialization as Class or Model)
I find whatever can be done by Class can also  be done as Model and vice versa

Thanks

Feb-25-21 08:48:50
Graphical Web intrface for OpenModellica

HI ,
I am new to Openmodelica and I want to know if there exists graphical web interface to edit /create models like OMedit
I understand there is tool called OMWeb -but it more training /learning

This link below talks of tool that I am looking for . But there was link to download the sw
http://liu.diva-portal.org/smash/get/di … TEXT01.pdf


Thanks

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