public void CalculateForces(double X) { ISingleLoadCaseBeam bm = BeamCaseFactory.GetForceCase(load, this); if (ReportX == false) { LogModeActive = false; } else { LogModeActive = true; } Mx = bm.Moment(X); Vx = bm.Shear(X); //Switch on or off reporting mode to avoid unnecessary data if (ReportMax == false) { LogModeActive = false; } else { LogModeActive = true; } Mmax = bm.MomentMax(); Mmin = bm.MomentMin(); Vmax = bm.ShearMax(); LogModeActive = true; hasCalculatedForces = true; }
private void CalculateDeflections() { ISingleLoadCaseDeflectionBeam bm = BeamCaseFactory.GetDeflectionCase(load, this); delta_Max = bm.MaximumDeflection(); hasCalculatedDeflections = true; }