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

Posts

Posts

So, I found just the right thing I was looking for.

ElectricalEnergyStorage.Sources.Loads.SignalPower

With a lookup table I can tell at what time which Power is needed.

That is my intention, but I need to feed the data in the table into a load.
This is how I'm using a 1D Lookup table. I'm feeding the data in the voltage source.
https://imgur.com/a/7Erepq5
But I need something like PowerSouce.

Hello,

right now I'm developing a battery model. Until now I used the Modelica.Electrical.Analog.Sources.SignalCurrent model of Modelica and simulating with SignalCurrent delivered good results.
Now for the next step, I need something like SignalCurrent but I want to be able to say, how many Watts or Kilowatts I need at a specific time window.
For example:

0-10 sec: 1 kW
10-20 sec: 2kW
20-30 sec: -500W etc.

Does any library have something like this?

Many thanks in advance.

Yes, I only posted the algorithm section, since the rest of my program is not that relevant to the question.

And yes I understand what I should be doing now. I am relatively new to OpenModelica and still trying to figure it out

Your answer helped me a lot, many thanks.

Hello,

I'm trying to figure out the lost energy due to the current flow. OpenModelica calculates LossPower for me, I just need to multiply this with time in order to calculate the energy.
To calculate the time, I've defined 2 variables and trying to write an while loop, something like this:

  while resistor1.i <> 0 loop
    counter_h = counter_h + 1;
  end while;
  while resistor1.i == 0 loop
    counter_c = counter_c + 1;
  end while;

energyLoss = (resistor1.LossPower + resistorS.LossPower) * (counter_h - counter_c)

The program won't simulate.
Do you have any suggestions?

Many thanks in advance


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