public double Moment(double X) { beam.EvaluateX(X); double M; if (eWasCalculated == false) { Calculate_e(); } if (X <= b) { M = -w * X * X / 2.0; BeamEntryFactory.CreateEntry("Mx", M, BeamTemplateType.Mx, 1, new Dictionary <string, double>() { { "X", X }, { "w", w } }, CASE, beam); } else { M = w * b / 2.0 * (b - 2.0 * X); BeamEntryFactory.CreateEntry("Mx", M, BeamTemplateType.Mx, 2, new Dictionary <string, double>() { { "L", L }, { "X", X }, { "w", w }, { "b", b } }, CASE, beam); } return(M); }
public double Moment(double X) { beam.EvaluateX(X); double M; if (X <= a) { M = 0; BeamEntryFactory.CreateEntry("Mx", 0.0, BeamTemplateType.Mx, 1, new Dictionary <string, double>() { { "X", X } }, CASE, beam, true); } else { M = P * (X - a); BeamEntryFactory.CreateEntry("Mx", M, BeamTemplateType.Mx, 2, new Dictionary <string, double>() { { "L", L }, { "X", X }, { "P", P }, { "a", a } }, CASE, beam); } return(M); }
public double Moment(double X) { beam.EvaluateX(X); double M = w * Math.Pow(X, 2) / (6.0 * L) * (X - 3 * L); BeamEntryFactory.CreateEntry("Mx", M, BeamTemplateType.Mx, 1, new Dictionary <string, double>() { { "L", L }, { "X", X }, { "w", w }, }, CASE, beam); return(M); }
public double Moment(double X) { beam.EvaluateX(X); double M = w * X * X / 2.0; BeamEntryFactory.CreateEntry("Mx", M, BeamTemplateType.Mx, 1, new Dictionary <string, double>() { { "L", L }, { "X", X }, { "w", w } }, CASE, beam); return(M); }
public double Moment(double X) { beam.EvaluateX(X); double M; M = P * X; BeamEntryFactory.CreateEntry("Mx", M, BeamTemplateType.Mx, 1, new Dictionary <string, double>() { { "X", X }, { "P", P } }, CASE, beam); return(M); }
public double Moment(double X) { beam.EvaluateX(X); double Mx = Mo; BeamEntryFactory.CreateEntry("Mx", Mx, BeamTemplateType.Mx, 1, new Dictionary <string, double>() { { "X", X }, { "Mo", Mo }, }, CASE, beam); return(Mx); }