- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Modelica.ComplexBlocks problem
Page Start Prev 1 Next End
Modelica.ComplexBlocks problem
Modelica.ComplexBlocks problem
Apr-08-21 07:51:27
before opening a ticket:
I'm using elements from Modelica.ComplexBlocks e.g. block feedback
When using the original implementation
Code:
block Feedback
...
equation
y = (if useConjugateInput1 then Modelica.ComplexMath.conj(u1) else u1) - (if useConjugateInput2 then Modelica.ComplexMath.conj(u2) else u2);
I received a warning and initialization fails.
Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem:
$DER.GridConverter.Icontroller.PId.x = 0.0
$DER.GridConverter.Icontroller.PIq.x = 0.0.
After modification of feedback block:
Code:
block MyFeedback
...
equation
// y = (if useConjugateInput1 then Modelica.ComplexMath.conj(u1) else u1) - (if useConjugateInput2 then Modelica.ComplexMath.conj(u2) else u2);
y = u1 - u2;
everything is fine.
unfortunately I was not able to create a simple model to demonstrate this behavior.
As my temporary workaround a removed all "useConjugateInput" from all ComplexBlocks elements I used.
omc: OMCompiler v1.18.0-dev.188+gb64a64f15a
MSL: 3.2.3
OS: Linux 64
Thx & BR
Page Start Prev 1 Next End
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Modelica.ComplexBlocks problem
There are 0 guests and 0 other users also viewing this topic