Coder Social home page Coder Social logo

Comments (5)

HansOlsson avatar HansOlsson commented on August 23, 2024 1

For each non-partial non-expandable connector class the number of flow variables shall be equal to the number of variables that are neither parameter, constant, input, output, stream nor flow.

So I'm sticking with my original statement that this model is invalid, as the name suggests :)

Ah that is true. But if we enforce that rule in general we will get some problems in the MSL.
If i see it correctly Frame.mo for example is not balanced by this rule. But that probably is another discussion entirely.

The quote above was shortened. It is followed by:
"The number of variables of an overdetermined type or record class (see Section 9.4.1) is the size of the output
argument of the corresponding equalityConstraint() function."
which handles the frame-connectors.

from modelica-compliance.

kabdelhak avatar kabdelhak commented on August 23, 2024

The connector is not balanced, but equation wise this should be balanced. We have an equation for each potential variable (p.v = {1.0, 2.0, 3.0}, x= 4.0) and the flows will get set to zero because they are not connected. 7 variables and 7 equations, am i missing something? Maybe the name is just wrong.

from modelica-compliance.

HansOlsson avatar HansOlsson commented on August 23, 2024

I believe this should say shouldPass = false, as is also indicated by the name of the class:

__ModelicaAssociation(TestCase(shouldPass = true, section = {"9.3.1"})),

Yes, looking more there's also a SizeNestedValid without the x in the connector (which therefore should be ok), so it makes sense that this one was changed to be invalid.

from modelica-compliance.

maltelenz avatar maltelenz commented on August 23, 2024

The connector is not balanced, but equation wise this should be balanced. We have an equation for each potential variable (p.v = {1.0, 2.0, 3.0}, x= 4.0) and the flows will get set to zero because they are not connected. 7 variables and 7 equations, am i missing something? Maybe the name is just wrong.

It references the section 9.3.1, which says:

For each non-partial non-expandable connector class the number of flow variables shall be equal to the number of variables that are neither parameter, constant, input, output, stream nor flow.

So I'm sticking with my original statement that this model is invalid, as the name suggests :)

from modelica-compliance.

kabdelhak avatar kabdelhak commented on August 23, 2024

For each non-partial non-expandable connector class the number of flow variables shall be equal to the number of variables that are neither parameter, constant, input, output, stream nor flow.

So I'm sticking with my original statement that this model is invalid, as the name suggests :)

Ah that is true. But if we enforce that rule in general we will get some problems in the MSL.
If i see it correctly Frame.mo for example is not balanced by this rule. But that probably is another discussion entirely.

from modelica-compliance.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.