Skip to content

Propagate parameters via expandable connector? #1841

@modelica-trac-importer

Description

@modelica-trac-importer

Reported by ahaumer on 20 Nov 2015 18:29 UTC
I wonder whether it could be possible to propagate parameters via the bus (expandable connector); simple rule: one participant may set the parameter, all participants can get it. Would be a smart feature.

expandable connector Bus
  parameter Real p;
end Bus;

model A
  parameter Real p;
  Bus bus(p=p);
end A;

model B
  parameter Real p=bus.p;
  Bus bus;
end B;

model C
  A a(p=1);
  B b;
equation 
  connect(a.bus, b.bus);
end C;

Migrated-From: https://trac.modelica.org/Modelica/ticket/1841

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions