Beispiel #1
0
        protected override void SolveInstance(IGH_DataAccess DA)
        {
            // get input
            FemDesign.Materials.Material material = null;
            double creepUls  = 0;
            double creepSlq  = 0;
            double creepSlf  = 0;
            double creepSlc  = 0;
            double shrinkage = 0;

            if (!DA.GetData(0, ref material))
            {
                return;
            }
            if (!DA.GetData(1, ref creepUls))
            {
                // pass
            }
            if (!DA.GetData(2, ref creepSlq))
            {
                // pass
            }
            if (!DA.GetData(3, ref creepSlf))
            {
                // pass
            }
            if (!DA.GetData(4, ref creepSlc))
            {
                // pass
            }
            if (!DA.GetData(5, ref shrinkage))
            {
                // pass
            }
            if (material == null)
            {
                return;
            }

            //
            FemDesign.Materials.Material modifiedMaterial = FemDesign.Materials.Material.ConcreteMaterialProperties(material, creepUls, creepSlq, creepSlf, creepSlc, shrinkage);
            modifiedMaterial.EntityModified();

            // set output
            DA.SetData(0, modifiedMaterial);
        }