{"action":"closed","issue":{"url":"https://api.github.com/repos/tbeu/ModelicaSpecification/issues/422","repository_url":"https://api.github.com/repos/tbeu/ModelicaSpecification","labels_url":"https://api.github.com/repos/tbeu/ModelicaSpecification/issues/422/labels{/name}","comments_url":"https://api.github.com/repos/tbeu/ModelicaSpecification/issues/422/comments","events_url":"https://api.github.com/repos/tbeu/ModelicaSpecification/issues/422/events","html_url":"https://github.com/tbeu/ModelicaSpecification/issues/422","id":372193648,"node_id":"MDU6SXNzdWUzNzIxOTM2NDg=","number":422,"title":"Overconstrained Connectors","user":{"login":"modelica-trac-importer","id":22202507,"node_id":"MDQ6VXNlcjIyMjAyNTA3","avatar_url":"https://avatars1.githubusercontent.com/u/22202507?v=4","gravatar_id":"","url":"https://api.github.com/users/modelica-trac-importer","html_url":"https://github.com/modelica-trac-importer","followers_url":"https://api.github.com/users/modelica-trac-importer/followers","following_url":"https://api.github.com/users/modelica-trac-importer/following{/other_user}","gists_url":"https://api.github.com/users/modelica-trac-importer/gists{/gist_id}","starred_url":"https://api.github.com/users/modelica-trac-importer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/modelica-trac-importer/subscriptions","organizations_url":"https://api.github.com/users/modelica-trac-importer/orgs","repos_url":"https://api.github.com/users/modelica-trac-importer/repos","events_url":"https://api.github.com/users/modelica-trac-importer/events{/privacy}","received_events_url":"https://api.github.com/users/modelica-trac-importer/received_events","type":"User","site_admin":false},"labels":[{"id":1097449438,"node_id":"MDU6TGFiZWwxMDk3NDQ5NDM4","url":"https://api.github.com/repos/tbeu/ModelicaSpecification/labels/P:%20high","name":"P: high","color":"ff6666","default":false},{"id":1097433290,"node_id":"MDU6TGFiZWwxMDk3NDMzMjkw","url":"https://api.github.com/repos/tbeu/ModelicaSpecification/labels/enhancement","name":"enhancement","color":"a2eeef","default":true},{"id":1097450175,"node_id":"MDU6TGFiZWwxMDk3NDUwMTc1","url":"https://api.github.com/repos/tbeu/ModelicaSpecification/labels/worksforme","name":"worksforme","color":"55ff55","default":false}],"state":"closed","locked":false,"assignee":{"login":"tbeu","id":5444067,"node_id":"MDQ6VXNlcjU0NDQwNjc=","avatar_url":"https://avatars0.githubusercontent.com/u/5444067?v=4","gravatar_id":"","url":"https://api.github.com/users/tbeu","html_url":"https://github.com/tbeu","followers_url":"https://api.github.com/users/tbeu/followers","following_url":"https://api.github.com/users/tbeu/following{/other_user}","gists_url":"https://api.github.com/users/tbeu/gists{/gist_id}","starred_url":"https://api.github.com/users/tbeu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbeu/subscriptions","organizations_url":"https://api.github.com/users/tbeu/orgs","repos_url":"https://api.github.com/users/tbeu/repos","events_url":"https://api.github.com/users/tbeu/events{/privacy}","received_events_url":"https://api.github.com/users/tbeu/received_events","type":"User","site_admin":false},"assignees":[{"login":"tbeu","id":5444067,"node_id":"MDQ6VXNlcjU0NDQwNjc=","avatar_url":"https://avatars0.githubusercontent.com/u/5444067?v=4","gravatar_id":"","url":"https://api.github.com/users/tbeu","html_url":"https://github.com/tbeu","followers_url":"https://api.github.com/users/tbeu/followers","following_url":"https://api.github.com/users/tbeu/following{/other_user}","gists_url":"https://api.github.com/users/tbeu/gists{/gist_id}","starred_url":"https://api.github.com/users/tbeu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbeu/subscriptions","organizations_url":"https://api.github.com/users/tbeu/orgs","repos_url":"https://api.github.com/users/tbeu/repos","events_url":"https://api.github.com/users/tbeu/events{/privacy}","received_events_url":"https://api.github.com/users/tbeu/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/tbeu/ModelicaSpecification/milestones/7","html_url":"https://github.com/tbeu/ModelicaSpecification/milestone/7","labels_url":"https://api.github.com/repos/tbeu/ModelicaSpecification/milestones/7/labels","id":3752833,"node_id":"MDk6TWlsZXN0b25lMzc1MjgzMw==","number":7,"title":"ModelicaSpec3.3rev1","description":"","creator":{"login":"modelica-trac-importer","id":22202507,"node_id":"MDQ6VXNlcjIyMjAyNTA3","avatar_url":"https://avatars1.githubusercontent.com/u/22202507?v=4","gravatar_id":"","url":"https://api.github.com/users/modelica-trac-importer","html_url":"https://github.com/modelica-trac-importer","followers_url":"https://api.github.com/users/modelica-trac-importer/followers","following_url":"https://api.github.com/users/modelica-trac-importer/following{/other_user}","gists_url":"https://api.github.com/users/modelica-trac-importer/gists{/gist_id}","starred_url":"https://api.github.com/users/modelica-trac-importer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/modelica-trac-importer/subscriptions","organizations_url":"https://api.github.com/users/modelica-trac-importer/orgs","repos_url":"https://api.github.com/users/modelica-trac-importer/repos","events_url":"https://api.github.com/users/modelica-trac-importer/events{/privacy}","received_events_url":"https://api.github.com/users/modelica-trac-importer/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":24,"state":"closed","created_at":"2018-10-19T18:35:49Z","updated_at":"2018-10-20T09:40:52Z","due_on":null,"closed_at":"2018-10-19T18:35:49Z"},"comments":2,"created_at":"2018-10-20T09:40:11Z","updated_at":"2018-10-20T09:40:52Z","closed_at":"2018-10-20T09:40:52Z","author_association":"COLLABORATOR","body":"**Reported by ahaumer on 27 Aug 2013 07:58 UTC**\nThe concept of overconstrained connectors is extremely useful for the design of quasi-stationary electrical machines. In that case, we need to couple (not connect) the reference type of connectors from different domains, especially a connector from the electrical and another from the magnetic domain. \n\n```\nrecord Reference\n  Modelica.SIunits.Angle gamma;\n  function equalityConstraint \n    input Reference reference1;\n    input Reference reference2;\n    output Real residue[0];\n  algorithm \n    assert(abs(reference1.gamma - reference2.gamma) < 1E-6*2*Modelica.Constants.pi, \"Reference angles should be equal!\");\n  end equalityConstraint;\nend Reference;\n```\n\n```\nconnector ElectricalPin\n  Modelica.SIunits.ComplexVoltage v;\n  flow Modelica.SIunits.ComplexCurrent i;\n  Reference reference;\nend ElectricalPin;\n```\n\n```\nconnector Port\n  Modelica.SIunits.ComplexMagneticPotential V_m;\n  flow Modelica.SIunits.ComplexMagneticFlux Phi;\n  Reference reference;\nend Port;\n```\n\nThe physical relations are defined by equations, expressing the magnetic potential dependent on electrical currents and calculating the electrical voltages from magnetic flux. \nIs it legal to couple two different connectors, i.e. establishing a relation between the references?\n\n```\n//is this legal?\n  Connections.branch(pin.reference, port.reference);\n//relationship between reference types\n  pin.reference.gamma=port.reference.gamma;\n```\n\nIt is necessary to clarify the specification whther the above code is legal; if it is not legal, how should the coupling between domains be established? Without Connections.branch it is nearly impossible to define the potential roots correct for all usecases.\n\n----\n\nMigrated-From: https://trac.modelica.org/Modelica/ticket/1262"}}
{"actor":{"display_login":"modelica-trac-importer"}}