Skip to content

Commit

Permalink
🐛 BottomFlange and TopFlange swapped
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco-Pellegrino committed Aug 30, 2024
1 parent c4be0e8 commit b098089
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ public SteelBarCalculationParameters(double sectionsDistance, SecondOrder second
this.BucklingCurveTf = torsionalDirection;
this.LatTorBuckGen = en1993_1_1_6_3_2_2;
this.LatTorBuckGenSpecForI = en1993_1_1_6_3_2_3;
this.BucklingCurveLtb = topFlange;
this.BucklingCurveLtt = bottomFlange;
this.BucklingCurveLtb = bottomFlange;
this.BucklingCurveLtt = topFlange;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,16 @@ public override void registerEvaluationUnits(EvaluationUnitManager mngr)
evaluationUnit.Inputs[evaluationUnit.Inputs.Count - 1].Parameter.Optional = true;


evaluationUnit.RegisterInputParam(new Param_String(), "Stiff Direction Buckling Curve", "Stiff Direction Buckling Curve", "Connect 'ValueList' to get the options.\nAuto\na0\na\nb\nc\nd", GH_ParamAccess.item);
evaluationUnit.RegisterInputParam(new Param_String(), "StiffDirectionBucklingCurve", "StiffDirectionBucklingCurve", "Connect 'ValueList' to get the options.\nAuto\na0\na\nb\nc\nd", GH_ParamAccess.item);
evaluationUnit.Inputs[evaluationUnit.Inputs.Count - 1].Parameter.Optional = true;
evaluationUnit.Inputs[evaluationUnit.Inputs.Count - 1].EnumInput = Enum.GetNames(typeof(FemDesign.Calculate.SteelBarCalculationParameters.BucklingCurve)).ToList();


evaluationUnit.RegisterInputParam(new Param_String(), "Weak Direction Buckling Curve", "Weak Direction Buckling Curve", "Connect 'ValueList' to get the options.\nAuto\na0\na\nb\nc\nd", GH_ParamAccess.item);
evaluationUnit.RegisterInputParam(new Param_String(), "WeakDirectionBucklingCurve", "WeakDirectionBucklingCurve", "Connect 'ValueList' to get the options.\nAuto\na0\na\nb\nc\nd", GH_ParamAccess.item);
evaluationUnit.Inputs[evaluationUnit.Inputs.Count - 1].Parameter.Optional = true;
evaluationUnit.Inputs[evaluationUnit.Inputs.Count - 1].EnumInput = Enum.GetNames(typeof(FemDesign.Calculate.SteelBarCalculationParameters.BucklingCurve)).ToList();

evaluationUnit.RegisterInputParam(new Param_String(), "Torsional Direction Buckling Curve", "Torsional Direction Buckling Curve", "Connect 'ValueList' to get the options.\nAuto\na0\na\nb\nc\nd", GH_ParamAccess.item);
evaluationUnit.RegisterInputParam(new Param_String(), "TorsionalDirectionBucklingCurve", "TorsionalDirectionBucklingCurve", "Connect 'ValueList' to get the options.\nAuto\na0\na\nb\nc\nd", GH_ParamAccess.item);
evaluationUnit.Inputs[evaluationUnit.Inputs.Count - 1].Parameter.Optional = true;
evaluationUnit.Inputs[evaluationUnit.Inputs.Count - 1].EnumInput = Enum.GetNames(typeof(FemDesign.Calculate.SteelBarCalculationParameters.BucklingCurve)).ToList();

Expand All @@ -77,12 +77,12 @@ public override void registerEvaluationUnits(EvaluationUnitManager mngr)
evaluationUnit.Inputs[evaluationUnit.Inputs.Count - 1].Parameter.Optional = true;


evaluationUnit.RegisterInputParam(new Param_String(), "Top Flange Buckling Curve", "Top Flange Buckling Curve", "Connect 'ValueList' to get the options.\nAuto\na\nb\nc\nd", GH_ParamAccess.item);
evaluationUnit.RegisterInputParam(new Param_String(), "TopFlangeBucklingCurve", "TopFlangeBucklingCurve", "Connect 'ValueList' to get the options.\nAuto\na\nb\nc\nd", GH_ParamAccess.item);
evaluationUnit.Inputs[evaluationUnit.Inputs.Count - 1].Parameter.Optional = true;
evaluationUnit.Inputs[evaluationUnit.Inputs.Count - 1].EnumInput = Enum.GetNames(typeof(FemDesign.Calculate.SteelBarCalculationParameters.BucklingCurveLt)).ToList();


evaluationUnit.RegisterInputParam(new Param_String(), "Bottom Flange Buckling Curve", "Bottom Flange Buckling Curve", "Connect 'ValueList' to get the options.\nAuto\na\nb\nc\nd", GH_ParamAccess.item);
evaluationUnit.RegisterInputParam(new Param_String(), "BottomFlangeBucklingCurve", "BottomFlangeBucklingCurve", "Connect 'ValueList' to get the options.\nAuto\na\nb\nc\nd", GH_ParamAccess.item);
evaluationUnit.Inputs[evaluationUnit.Inputs.Count - 1].Parameter.Optional = true;
evaluationUnit.Inputs[evaluationUnit.Inputs.Count - 1].EnumInput = Enum.GetNames(typeof(FemDesign.Calculate.SteelBarCalculationParameters.BucklingCurveLt)).ToList();

Expand Down Expand Up @@ -176,19 +176,19 @@ public override void SolveInstance(IGH_DataAccess DA, out string msg, out GH_Run
DA.GetData("Iteration", ref iteration);

string stiffDirection = "Auto";
DA.GetData("Stiff Direction Buckling Curve", ref stiffDirection);
DA.GetData("StiffDirectionBucklingCurve", ref stiffDirection);

var _stiffDirection = FemDesign.GenericClasses.EnumParser.Parse<SteelBarCalculationParameters.BucklingCurve>(stiffDirection);


string weakDirection = "Auto";
DA.GetData("Weak Direction Buckling Curve", ref weakDirection);
DA.GetData("WeakDirectionBucklingCurve", ref weakDirection);

var _weakDirection = FemDesign.GenericClasses.EnumParser.Parse<SteelBarCalculationParameters.BucklingCurve>(weakDirection);


string torsionalDirection = "Auto";
DA.GetData("Torsional Direction Buckling Curve", ref torsionalDirection);
DA.GetData("TorsionalDirectionBucklingCurve", ref torsionalDirection);

var _torsionalDirection = FemDesign.GenericClasses.EnumParser.Parse<SteelBarCalculationParameters.BucklingCurve>(torsionalDirection);

Expand All @@ -200,12 +200,12 @@ public override void SolveInstance(IGH_DataAccess DA, out string msg, out GH_Run
DA.GetData("EN1993-1-1:6.3.2.3", ref en1993_1_1_6_3_2_3);

string topFlange = "Auto";
DA.GetData("Top Flange Buckling Curve", ref topFlange);
DA.GetData("TopFlangeBucklingCurve", ref topFlange);

var _topFlange = FemDesign.GenericClasses.EnumParser.Parse<SteelBarCalculationParameters.BucklingCurveLt>(topFlange);

string bottomFlange = "Auto";
DA.GetData("Bottom Flange Buckling Curve", ref bottomFlange);
DA.GetData("BottomFlangeBucklingCurve", ref bottomFlange);

var _bottomFlange = FemDesign.GenericClasses.EnumParser.Parse<SteelBarCalculationParameters.BucklingCurveLt>(bottomFlange);

Expand Down

0 comments on commit b098089

Please sign in to comment.