public IAnalysisBeam CreateBeamInstance(string BeamCaseId, LoadBeam load, ICalcLog Log) { double L = d.L; double LoadDimension_a = d.a_load; Beam bm = null; if (BeamCaseId.StartsWith("C1") == true) { bm = new BeamSimple(d.L, load, Log); } else if (BeamCaseId.StartsWith("C2") == true) { bm = new BeamSimpleWithOverhang(L, LoadDimension_a, load, Log); } else if (BeamCaseId.StartsWith("C3") == true) { bm = new BeamPinnedFixed(L, load, Log); } else if (BeamCaseId.StartsWith("C4") == true) { bm = new BeamFixedFixed(L, load, Log); } else //else if (BeamCaseId.StartsWith("C5") == true) { bm = new BeamCantilever(L, load, Log); } bm.ModulusOfElasticity = d.E; bm.MomentOfInertia = d.I; return(bm); }
public IAnalysisBeam CreateBeamInstance(string BeamCaseId, LoadBeam load, ICalcLog Log) { double L = d.L; double LoadDimension_a = d.a_load; Beam bm = null; if (BeamCaseId.StartsWith("C1") == true) { bm = new BeamSimple(d.L, load, Log); } else if (BeamCaseId.StartsWith("C2") == true) { bm = new BeamSimpleWithOverhang(L, LoadDimension_a, load, Log); } else if (BeamCaseId.StartsWith("C3") == true) { bm = new BeamPinnedFixed(L,load, Log); } else if (BeamCaseId.StartsWith("C4") == true) { bm = new BeamFixedFixed(L, load, Log); } else //else if (BeamCaseId.StartsWith("C5") == true) { bm = new BeamCantilever(L, load, Log); } bm.ModulusOfElasticity = d.E; bm.MomentOfInertia = d.I; return bm; }