diff --git a/Modelica/Mechanics/Rotational/Interfaces/PartialElementaryOneFlangeAndSupport2.mo b/Modelica/Mechanics/Rotational/Interfaces/PartialElementaryOneFlangeAndSupport2.mo index 452a0cb3af..150420664b 100644 --- a/Modelica/Mechanics/Rotational/Interfaces/PartialElementaryOneFlangeAndSupport2.mo +++ b/Modelica/Mechanics/Rotational/Interfaces/PartialElementaryOneFlangeAndSupport2.mo @@ -11,7 +11,8 @@ partial model PartialElementaryOneFlangeAndSupport2 extent={{90,-10},{110,10}}))); Support support(phi=phi_support, tau=-flange.tau) if useSupport "Support/housing of component" - annotation (Placement(transformation(extent={{-10,-110},{10,-90}}))); + annotation (Placement(transformation(extent={{-10,-110},{10,-90}})), + mustBeConnected="An enabled support connector should be connected"); protected SI.Angle phi_support "Absolute angle of support flange"; equation diff --git a/Modelica/Mechanics/Rotational/Interfaces/PartialElementaryRotationalToTranslational.mo b/Modelica/Mechanics/Rotational/Interfaces/PartialElementaryRotationalToTranslational.mo index 6a40e916eb..f44cd0fb73 100644 --- a/Modelica/Mechanics/Rotational/Interfaces/PartialElementaryRotationalToTranslational.mo +++ b/Modelica/Mechanics/Rotational/Interfaces/PartialElementaryRotationalToTranslational.mo @@ -20,10 +20,12 @@ partial model PartialElementaryRotationalToTranslational extent={{90,10},{110,-10}}))); Rotational.Interfaces.Support supportR if useSupportR "Rotational support/housing of component" annotation (Placement( - transformation(extent={{-110,-110},{-90,-90}}))); + transformation(extent={{-110,-110},{-90,-90}})), + mustBeConnected="An enabled support connector should be connected"); Translational.Interfaces.Support supportT if useSupportT "Translational support/housing of component" - annotation (Placement(transformation(extent={{110,-110},{90,-90}}))); + annotation (Placement(transformation(extent={{110,-110},{90,-90}})), + mustBeConnected="An enabled support connector should be connected"); protected Rotational.Interfaces.InternalSupport internalSupportR(tau=-flangeR.tau) diff --git a/Modelica/Mechanics/Rotational/Interfaces/PartialElementaryTwoFlangesAndSupport2.mo b/Modelica/Mechanics/Rotational/Interfaces/PartialElementaryTwoFlangesAndSupport2.mo index 3d7c367503..4cc33e7773 100644 --- a/Modelica/Mechanics/Rotational/Interfaces/PartialElementaryTwoFlangesAndSupport2.mo +++ b/Modelica/Mechanics/Rotational/Interfaces/PartialElementaryTwoFlangesAndSupport2.mo @@ -13,7 +13,8 @@ partial model PartialElementaryTwoFlangesAndSupport2 transformation(extent={{90,-10},{110,10}}))); Support support(phi=phi_support, tau=-flange_a.tau - flange_b.tau) if useSupport "Support/housing of component" - annotation (Placement(transformation(extent={{-10,-110},{10,-90}}))); + annotation (Placement(transformation(extent={{-10,-110},{10,-90}})), + mustBeConnected="An enabled support connector should be connected"); protected SI.Angle phi_support "Absolute angle of support flange"; equation diff --git a/Modelica/Mechanics/Rotational/Interfaces/PartialOneFlangeAndSupport.mo b/Modelica/Mechanics/Rotational/Interfaces/PartialOneFlangeAndSupport.mo index c5d416dabe..867544690c 100644 --- a/Modelica/Mechanics/Rotational/Interfaces/PartialOneFlangeAndSupport.mo +++ b/Modelica/Mechanics/Rotational/Interfaces/PartialOneFlangeAndSupport.mo @@ -10,7 +10,8 @@ partial model PartialOneFlangeAndSupport Flange_b flange "Flange of shaft" annotation (Placement(transformation( extent={{90,-10},{110,10}}))); Support support if useSupport "Support/housing of component" - annotation (Placement(transformation(extent={{-10,-110},{10,-90}}))); + annotation (Placement(transformation(extent={{-10,-110},{10,-90}})), + mustBeConnected="An enabled support connector should be connected"); protected Support internalSupport "Internal support/housing of component (either connected to support, if useSupport=true, or connected to fixed, if useSupport=false)" diff --git a/Modelica/Mechanics/Rotational/Interfaces/PartialTwoFlangesAndSupport.mo b/Modelica/Mechanics/Rotational/Interfaces/PartialTwoFlangesAndSupport.mo index 035010ee49..138749ebba 100644 --- a/Modelica/Mechanics/Rotational/Interfaces/PartialTwoFlangesAndSupport.mo +++ b/Modelica/Mechanics/Rotational/Interfaces/PartialTwoFlangesAndSupport.mo @@ -12,7 +12,8 @@ partial model PartialTwoFlangesAndSupport Flange_b flange_b "Flange of right shaft" annotation (Placement( transformation(extent={{90,-10},{110,10}}))); Support support if useSupport "Support/housing of component" - annotation (Placement(transformation(extent={{-10,-110},{10,-90}}))); + annotation (Placement(transformation(extent={{-10,-110},{10,-90}})), + mustBeConnected="An enabled support connector should be connected"); protected Support internalSupport "Internal support/housing of component (either connected to support, if useSupport=true, or connected to fixed, if useSupport=false)" diff --git a/Modelica/Mechanics/Translational/Interfaces/PartialElementaryOneFlangeAndSupport2.mo b/Modelica/Mechanics/Translational/Interfaces/PartialElementaryOneFlangeAndSupport2.mo index aff7e8a8ed..99e595e6e1 100644 --- a/Modelica/Mechanics/Translational/Interfaces/PartialElementaryOneFlangeAndSupport2.mo +++ b/Modelica/Mechanics/Translational/Interfaces/PartialElementaryOneFlangeAndSupport2.mo @@ -13,7 +13,8 @@ partial model PartialElementaryOneFlangeAndSupport2 transformation(extent={{90,-10},{110,10}}))); Support support(s=s_support, f=-flange.f) if useSupport "Support/housing of component" - annotation (Placement(transformation(extent={{-10,-110},{10,-90}}))); + annotation (Placement(transformation(extent={{-10,-110},{10,-90}})), + mustBeConnected="An enabled support connector should be connected"); protected SI.Length s_support "Absolute position of support flange"; equation diff --git a/Modelica/Mechanics/Translational/Interfaces/PartialElementaryTwoFlangesAndSupport2.mo b/Modelica/Mechanics/Translational/Interfaces/PartialElementaryTwoFlangesAndSupport2.mo index 777309fdce..b2a0de6f1d 100644 --- a/Modelica/Mechanics/Translational/Interfaces/PartialElementaryTwoFlangesAndSupport2.mo +++ b/Modelica/Mechanics/Translational/Interfaces/PartialElementaryTwoFlangesAndSupport2.mo @@ -10,7 +10,8 @@ partial model PartialElementaryTwoFlangesAndSupport2 extends Translational.Interfaces.PartialTwoFlanges; Support support(s=s_support, f=-flange_a.f - flange_b.f) if useSupport "Support/housing of component" - annotation (Placement(transformation(extent={{-10,-110},{10,-90}}))); + annotation (Placement(transformation(extent={{-10,-110},{10,-90}})), + mustBeConnected="An enabled support connector should be connected"); SI.Length s_a "Distance between left flange and support"; SI.Length s_b "Distance between right flange and support"; protected diff --git a/Modelica/Mechanics/Translational/Interfaces/PartialOneFlangeAndSupport.mo b/Modelica/Mechanics/Translational/Interfaces/PartialOneFlangeAndSupport.mo index 0a73fd003d..86e24c3cb5 100644 --- a/Modelica/Mechanics/Translational/Interfaces/PartialOneFlangeAndSupport.mo +++ b/Modelica/Mechanics/Translational/Interfaces/PartialOneFlangeAndSupport.mo @@ -10,7 +10,8 @@ partial model PartialOneFlangeAndSupport Flange_b flange "Flange of component" annotation (Placement( transformation(extent={{90,-10},{110,10}}))); Support support if useSupport "Support/housing of component" - annotation (Placement(transformation(extent={{-10,-110},{10,-90}}))); + annotation (Placement(transformation(extent={{-10,-110},{10,-90}})), + mustBeConnected="An enabled support connector should be connected"); protected Support internalSupport "Internal support/housing of component (either connected to support, if useSupport=true, or connected to fixed, if useSupport=false)" diff --git a/Modelica/Mechanics/Translational/Interfaces/PartialTwoFlangesAndSupport.mo b/Modelica/Mechanics/Translational/Interfaces/PartialTwoFlangesAndSupport.mo index 5cab4c8a5b..fe676f659a 100644 --- a/Modelica/Mechanics/Translational/Interfaces/PartialTwoFlangesAndSupport.mo +++ b/Modelica/Mechanics/Translational/Interfaces/PartialTwoFlangesAndSupport.mo @@ -9,7 +9,8 @@ partial model PartialTwoFlangesAndSupport choices(checkBox=true)); extends Translational.Interfaces.PartialTwoFlanges; Support support if useSupport "Support/housing of component" - annotation (Placement(transformation(extent={{-10,-110},{10,-90}}))); + annotation (Placement(transformation(extent={{-10,-110},{10,-90}})), + mustBeConnected="An enabled support connector should be connected"); protected Support internalSupport "Internal support/housing of component (either connected to support, if useSupport=true, or connected to fixed, if useSupport=false)"