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

test: lossy gear #241

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

test: lossy gear #241

wants to merge 1 commit into from

Conversation

jvaverka
Copy link

@jvaverka jvaverka commented Nov 8, 2023

Gear efficiency example containing 2 inertias connected by an ideal gear

Reference: https://github.com/modelica/ModelicaStandardLibrary/blob/master/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1.mo

Copy link

codecov bot commented Nov 8, 2023

Codecov Report

Merging #241 (e75cd1d) into main (c85424e) will decrease coverage by 0.09%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #241      +/-   ##
==========================================
- Coverage   16.02%   15.93%   -0.09%     
==========================================
  Files          48       48              
  Lines        1629     1638       +9     
==========================================
  Hits          261      261              
- Misses       1368     1377       +9     

see 2 files with indirect coverage changes

📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!

@testset "lossy gear" begin
@mtkmodel LossyGear begin
@components begin
drive = Blocks.Sine(frequency=1, amplitude=10)
Copy link
Member

Choose a reason for hiding this comment

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

RN, this throws error. Splitting it to using Blocks: Sine and then drive = Sine(frequency=1, amplitude=10) should work now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants