コード例 #1
0
        public void FileAllParsing(ucMaterialPropertiesEstimation ucMaterialPropertiesEstimation1, string strName)
        {
            bool result;

            for (int i = 0; i < lstFileList.Items.Count; i++)
            {
                MPEClass1 = new MPEClass();
                MPEData MPEData1 = MPEClass1.NewMPEData();

                result = MPEData1.FileLoad(lstFileList.Items[i].SubItems[1].Text);
                if (result == false)                // 유효한 화일이 아니면 삭제한다
                {
                    MPEClass1.DeleteMPEData(MPEData1);
                }
                else
                {
                    MPEClass1.Name = strName;
                    ParameterInput(MPEData1, ucMaterialPropertiesEstimation1);
                    MaterialTypeInput(MPEData1);


                    //MPEData1.Calc();
                }
            }

            if (MPEClass1 != null)
            {
                frmCalc frmCalc1 = new frmCalc();
                frmCalc1.MPEClass1 = MPEClass1;
                frmCalc1.ShowDialog();
            }
        }
コード例 #2
0
        public void ParameterInput(MPEData MPEData1, ucMaterialPropertiesEstimation ucMaterialPropertiesEstimation1)
        {
            MPEData1.Thickness   = double.Parse(ucMaterialPropertiesEstimation1.strThickness);
            MPEData1.BulkDensity = double.Parse(ucMaterialPropertiesEstimation1.strBulkDensity);
            MPEData1.FResist     = double.Parse(ucMaterialPropertiesEstimation1.strFlowResistivity);
            MPEData1.SFactor     = double.Parse(ucMaterialPropertiesEstimation1.strStructureFactor);
            MPEData1.Porosity    = double.Parse(ucMaterialPropertiesEstimation1.strProsity);
            MPEData1.ViscousCL   = double.Parse(ucMaterialPropertiesEstimation1.strViscousCharLength) / 1000000;
            MPEData1.ThermalCL   = double.Parse(ucMaterialPropertiesEstimation1.strThermalCharLength) / 1000000;
            MPEData1.Ymodulus    = double.Parse(ucMaterialPropertiesEstimation1.strYoungsModulus);
            MPEData1.PoissonR    = double.Parse(ucMaterialPropertiesEstimation1.strPoissionsRatio);
            MPEData1.LossFactor  = double.Parse(ucMaterialPropertiesEstimation1.strLossFactor);

            //MPEData1.Name = ucMaterialPropertiesEstimation1.e;
            MPEData1.Temperature = double.Parse(this.edtTemperature.Text);
            MPEData1.SID         = MPEClass1.SID;

            MPEData1.FResistEst    = !ucMaterialPropertiesEstimation1.IsEnableFlowResistivity;
            MPEData1.SFactorEst    = !ucMaterialPropertiesEstimation1.IsEnableStructureFactor;
            MPEData1.ViscousCLEst  = !ucMaterialPropertiesEstimation1.IsEnableViscousCharLength;
            MPEData1.ThermalCLEst  = !ucMaterialPropertiesEstimation1.IsEnableThermalCharLength;
            MPEData1.PorosityEst   = !ucMaterialPropertiesEstimation1.IsEnableProsity;
            MPEData1.YmodulusEst   = !ucMaterialPropertiesEstimation1.IsEnableYoungsModulus;
            MPEData1.PoissonREst   = !ucMaterialPropertiesEstimation1.IsEnablePoissionsRatio;
            MPEData1.LossFactorEst = !ucMaterialPropertiesEstimation1.IsEnableLossFactor;
        }
コード例 #3
0
        public void DataBaseLoad(ucMaterialPropertiesEstimation ucMaterialPropertiesEstimation1, string strName)
        {
            MPEClass1 = new MPEClass();
            MPEData MPEData1 = MPEClass1.NewMPEData();

            MPEData1.Name = strName;
            DB_Load(MPEData1);
            ParameterInput(MPEData1, ucMaterialPropertiesEstimation1);
            MaterialTypeInput(MPEData1);

            MPEClass1.SID  = int.Parse(lblDataBaseLoad_ID.Text);
            MPEClass1.Name = lblDataBaseLoadName.Text;

            frmCalc frmCalc1 = new frmCalc();

            frmCalc1.MPEClass1 = MPEClass1;
            frmCalc1.ShowDialog();

            //MPEData1.Calc();
            //MPEClass1.Temp();
            //MPEClass1.Calc();
        }