The following Modelica code corresponds to Figure 20. It has a model A with component c1 indicated as replaceable, and a model B extending A with a component of the same name redeclaring it to alter the type ...

Icon class
icon_class
fas fa-quote-left
icon_class_computed
fas fa-quote-left
Related content
Source
Snippet kind
Keywords
Full quote
The following Modelica code corresponds to Figure 20. It has a model A with component c1 indicated as replaceable, and a model B extending A with a component of the same name redeclaring it to alter the type (compare to Subclause 10.4.3).

model A
replaceable C c1;
end A;
model B
extends A;
redeclare D c1;
end B;
Next snippet
Related snippets
Related snippets (backlinks)
Visit also
Visit also (backlinks)