コード例 #1
0
        //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();
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 public BeamProperties(WR_Material mat, string section, WR_ReleaseBeam3d stRel, WR_ReleaseBeam3d enRel)
 {
     _mat     = mat;
     _stRel   = stRel;
     _enRel   = enRel;
     _section = CrossSectionFormString(section);
 }
コード例 #4
0
 public BeamProperties()
 {
     _section = null;
     _stRel   = null;
     _enRel   = null;
     _mat     = null;
 }
コード例 #5
0
 public BeamProperties(WR_Material mat, string section, WR_ReleaseBeam3d stRel, WR_ReleaseBeam3d enRel)
 {
     _mat = mat;
     _stRel = stRel;
     _enRel = enRel;
     _section = CrossSectionFormString(section);
 }
コード例 #6
0
 //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();
 }
コード例 #7
0
 public BeamProperties()
 {
     _section = null;
     _stRel = null;
     _enRel = null;
     _mat = null;
 }
コード例 #8
0
 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;
 }
コード例 #9
0
 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;
 }
コード例 #10
0
        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);
        }
コード例 #11
0
        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);
        }