Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add commonly used Blocks and Interfaces #4518

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

m-kormann
Copy link
Contributor

During development of our Modelica libraries, we centralize commonly used models and interfaces in the "DymolaModels" library, which is shipped with Dymola. Some of these models are so common that we want to give them back for the MSL.

@beutlich beutlich added enhancement New feature or enhancement L: Blocks Issue addresses Modelica.Blocks labels Jan 17, 2025
@beutlich
Copy link
Member

Thanks for the PR. Can you please resolve the few issues reported by the static checks, see https://github.com/modelica/ModelicaStandardLibrary/pull/4518/files.

Modelica/Blocks/Math.mo Outdated Show resolved Hide resolved
@m-kormann
Copy link
Contributor Author

Sure! All checks should pass now and I rebased the branch on current master.

@@ -997,6 +997,67 @@ y = u1 * u2;
Ellipse(lineColor={0,0,127}, extent={{-50,-50},{50,50}})}));
end Product;

block VectorProduct "Output product of the two inputs with dimension n"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should it be ScalarProduct? Or DotProduct?

annotation (
Documentation(
info = "<html>
<p>This blocks computes the output <strong>y</strong> as <em>product</em> of the two input vectors <strong>u1</strong> and <strong>u2</strong>: </p>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<p>This blocks computes the output <strong>y</strong> as <em>product</em> of the two input vectors <strong>u1</strong> and <strong>u2</strong>: </p>
<p>This blocks computes the output <strong>y</strong> as <em>scalar product</em> of the two input vectors <strong>u1</strong> and <strong>u2</strong>: </p>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or enhancement L: Blocks Issue addresses Modelica.Blocks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants