Skip to content

Commit

Permalink
GSAGH-149 description
Browse files Browse the repository at this point in the history
  • Loading branch information
Tilman Reinhardt committed Dec 13, 2023
1 parent 84f3af0 commit d03d4d3
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
32 changes: 16 additions & 16 deletions GsaGH/Components/1_Properties/CreateSpringProperty.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,23 +114,23 @@ public override void VariableParameterMaintenance() {
return;

case SpringPropertyType.Torsional:
SetInputProperties(1, "Stiffness xx [" + rotationalStiffnessAbr + "]", "Sxx", "Stiffness xx", false);
SetInputProperties(1, "Stiffness xx [" + rotationalStiffnessAbr + "]", "Sxx", "Stiffness in xx direction", false);
SetDampingRatioInputAt(2);
return;

case SpringPropertyType.General:
SetInputProperties(1, "Spring Curve x", "SCx", "[Optional] Spring Curve x");
SetInputProperties(2, "Stiffness x [" + stiffnessAbr + "]", "Sx", "[Optional] Stiffness x");
SetInputProperties(3, "Spring Curve y", "SCy", "[Optional] Spring Curve y");
SetInputProperties(4, "Stiffness y [" + stiffnessAbr + "]", "Sy", "[Optional] Stiffness y");
SetInputProperties(5, "Spring Curve z", "SCz", "[Optional] Spring Curve z");
SetInputProperties(6, "Stiffness z [" + stiffnessAbr + "]", "Sz", "[Optional] Stiffness z");
SetInputProperties(7, "Spring Curve xx", "SCxx", "[Optional] Spring Curve xx");
SetInputProperties(8, "Stiffness xx [" + rotationalStiffnessAbr + "]", "Sxx", "[Optional] Stiffness xx");
SetInputProperties(9, "Spring Curve yy", "SCyy", "[Optional] Spring Curve yy");
SetInputProperties(10, "Stiffness yy [" + rotationalStiffnessAbr + "]", "Syy", "[Optional] Stiffness yy");
SetInputProperties(11, "Spring Curve zz", "SCzz", "[Optional] Spring Curve zz");
SetInputProperties(12, "Stiffness zz [" + rotationalStiffnessAbr + "]", "Szz", "[Optional] Stiffness zz");
SetInputProperties(1, "Spring Curve x", "SCx", "[Optional] Spring Curve in x direction");
SetInputProperties(2, "Stiffness x [" + stiffnessAbr + "]", "Sx", "[Optional] Stiffness in x direction");
SetInputProperties(3, "Spring Curve y", "SCy", "[Optional] Spring Curve in y direction");
SetInputProperties(4, "Stiffness y [" + stiffnessAbr + "]", "Sy", "[Optional] Stiffness in y direction");
SetInputProperties(5, "Spring Curve z", "SCz", "[Optional] Spring Curve in z direction");
SetInputProperties(6, "Stiffness z [" + stiffnessAbr + "]", "Sz", "[Optional] Stiffness in z direction");
SetInputProperties(7, "Spring Curve xx", "SCxx", "[Optional] Spring Curve in xx direction");
SetInputProperties(8, "Stiffness xx [" + rotationalStiffnessAbr + "]", "Sxx", "[Optional] Stiffness in xx direction");
SetInputProperties(9, "Spring Curve yy", "SCyy", "[Optional] Spring Curve in yy direction");
SetInputProperties(10, "Stiffness yy [" + rotationalStiffnessAbr + "]", "Syy", "[Optional] Stiffness in yy direction");
SetInputProperties(11, "Spring Curve zz", "SCzz", "[Optional] Spring Curve in zz direction");
SetInputProperties(12, "Stiffness zz [" + rotationalStiffnessAbr + "]", "Szz", "[Optional] Stiffness in zz direction");
SetDampingRatioInputAt(13);
return;

Expand All @@ -151,9 +151,9 @@ public override void VariableParameterMaintenance() {
return;

case SpringPropertyType.Friction:
SetInputProperties(1, "Stiffness x [" + stiffnessAbr + "]", "Sx", "Stiffness x", false);
SetInputProperties(2, "Stiffness y [" + stiffnessAbr + "]", "Sy", "Stiffness y", false);
SetInputProperties(3, "Stiffness z [" + stiffnessAbr + "]", "Sz", "Stiffness z", false);
SetInputProperties(1, "Stiffness x [" + stiffnessAbr + "]", "Sx", "Stiffness in x direction", false);
SetInputProperties(2, "Stiffness y [" + stiffnessAbr + "]", "Sy", "Stiffness in y direction", false);
SetInputProperties(3, "Stiffness z [" + stiffnessAbr + "]", "Sz", "Stiffness in z direction", false);
SetInputProperties(4, "Coeff. of Friction [" + stiffnessAbr + "]", "CF", "Coefficient of Friction", false);
SetDampingRatioInputAt(5);
return;
Expand Down
14 changes: 7 additions & 7 deletions GsaGH/Components/1_Properties/GetSpringProperty.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,29 +146,29 @@ protected override void RegisterOutputParams(GH_OutputParamManager pManager) {

pManager.AddTextParameter("Name", "Na", "Spring Property Name", GH_ParamAccess.item);

pManager.AddTextParameter("Spring Curve x", "SCx", "Spring Curve x", GH_ParamAccess.item);
pManager.AddTextParameter("Spring Curve x", "SCx", "Spring Curve in x direction", GH_ParamAccess.item);

pManager.AddGenericParameter("Stiffness x [" + stiffnessAbr + "]", "Sx", "Stiffness x", GH_ParamAccess.item);
pManager.AddGenericParameter("Stiffness x [" + stiffnessAbr + "]", "Sx", "Stiffness in x direction", GH_ParamAccess.item);

pManager.AddTextParameter("Spring Curve y", "SCy", "Spring Curve y", GH_ParamAccess.item);

pManager.AddGenericParameter("Stiffness y [" + stiffnessAbr + "]", "Sy", "Stiffness y", GH_ParamAccess.item);
pManager.AddGenericParameter("Stiffness y [" + stiffnessAbr + "]", "Sy", "Stiffness in y direction", GH_ParamAccess.item);

pManager.AddTextParameter("Spring Curve z", "SCz", "Spring Curve z", GH_ParamAccess.item);

pManager.AddGenericParameter("Stiffness z [" + stiffnessAbr + "]", "Sz", "Stiffness z", GH_ParamAccess.item);
pManager.AddGenericParameter("Stiffness z [" + stiffnessAbr + "]", "Sz", "Stiffness in z direction", GH_ParamAccess.item);

pManager.AddTextParameter("Spring Curve xx", "SCxx", "Spring Curve xx", GH_ParamAccess.item);

pManager.AddGenericParameter("Stiffness xx [" + rotationalStiffnessAbr + "]", "Sxx", "Stiffness xx", GH_ParamAccess.item);
pManager.AddGenericParameter("Stiffness xx [" + rotationalStiffnessAbr + "]", "Sxx", "Stiffness in xx direction", GH_ParamAccess.item);

pManager.AddTextParameter("Spring Curve yy", "SCyy", "Spring Curve yy", GH_ParamAccess.item);

pManager.AddGenericParameter("Stiffness yy [" + rotationalStiffnessAbr + "]", "Syy", "Stiffness yy", GH_ParamAccess.item);
pManager.AddGenericParameter("Stiffness yy [" + rotationalStiffnessAbr + "]", "Syy", "Stiffness in yy direction", GH_ParamAccess.item);

pManager.AddTextParameter("Spring Curve zz", "SCzz", "Spring Curve zz", GH_ParamAccess.item);

pManager.AddGenericParameter("Stiffness zz [" + rotationalStiffnessAbr + "]", "Szz", "Stiffness zz", GH_ParamAccess.item);
pManager.AddGenericParameter("Stiffness zz [" + rotationalStiffnessAbr + "]", "Szz", "Stiffness in zz direction", GH_ParamAccess.item);

pManager.AddGenericParameter("Spring Matrix", "SM", "Spring Matrix", GH_ParamAccess.item);

Expand Down

0 comments on commit d03d4d3

Please sign in to comment.