//public BeamProperties(double matStiff, double poison, string section, WR_ReleaseBeam3d stRel, WR_ReleaseBeam3d enRel) //{ // // _stRel = stRel; // _enRel = enRel; // _section = CrossSectionFormString(section); // } public BeamProperties(BeamProperties other) { _mat = other._mat.Copy(); _section = other._section; _stRel = other._stRel.Copy(); _enRel = other._enRel.Copy(); }
protected override void SolveInstance(IGH_DataAccess DA) { double E, p, rho, fu; E = 0; p = 0; rho = 0; fu = 0; if (!DA.GetData(0, ref E)) { return; } if (!DA.GetData(1, ref p)) { return; } if (!DA.GetData(2, ref rho)) { return; } if (!DA.GetData(3, ref fu)) { return; } WR_Material mat = new WR_Material(E, p, rho, fu); DA.SetData(0, mat); }
public BeamProperties(WR_Material mat, string section, WR_ReleaseBeam3d stRel, WR_ReleaseBeam3d enRel) { _mat = mat; _stRel = stRel; _enRel = enRel; _section = CrossSectionFormString(section); }
public BeamProperties() { _section = null; _stRel = null; _enRel = null; _mat = null; }
public BeamProperties(WR_Material mat, WR_IXSec section, WR_ReleaseBeam3d stRel, WR_ReleaseBeam3d enRel, WR_Element3dOptProp elemOptProp) { _mat = mat; _stRel = stRel; _enRel = enRel; _section = section; _elemOptProp = elemOptProp; }
protected override void SolveInstance(IGH_DataAccess DA) { // string crossSection = ""; WR_IXSec xSec = null; WR_ReleaseBeam3d stREl = null; WR_ReleaseBeam3d enREl = null; WR_Material mat = null; WR_Element3dOptProp optProp = null; if (!DA.GetData(0, ref xSec)) { return; } if (!DA.GetData(1, ref stREl)) { return; } if (!DA.GetData(2, ref enREl)) { return; } if (!DA.GetData(3, ref mat)) { return; } // Check releases if (!CheckReleases(stREl, enREl)) { return; } BeamProperties beamProp; if (!DA.GetData(4, ref optProp)) { beamProp = new BeamProperties(mat, xSec, stREl, enREl); } else { beamProp = new BeamProperties(mat, xSec, stREl, enREl, optProp); } DA.SetData(0, beamProp); }