Group Abstract Group Abstract

Message Boards Message Boards

0
|
8.1K Views
|
1 Reply
|
1 Total Like
View groups...
Share
Share this post:

[?] Find a simple x^n power kind of block in Modelica library?

Posted 8 years ago
POSTED BY: Mor Bo

As far as I know there are no Power block in the Modelica standard library, but it's trivial to roll your own:

model PowerN
  extends Modelica.Blocks.Interfaces.SISO;
  parameter Integer n;
  annotation(Diagram(coordinateSystem(extent = {{-148.5, -105}, {148.5, 105}}, preserveAspectRatio = true, initialScale = 0.1, grid = {5, 5})));
equation
  y = u^n;
end PowerN;
POSTED BY: Otto Tronarp
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard