Example #1
0
        void _ReadSoilProperties(
            DGObjects objs,
            string tableNameSQL,
            string conditionSQL,
            string orderSQL)
        {
            ReadRawData(objs, tableNameSQL, orderSQL, conditionSQL);
            DataTable table = objs.rawDataSet.Tables[0];
            foreach (DataRow reader in table.Rows)
            {
                if (IsDbNull(reader, "ID"))
                    continue;

                SoilProperty soilProp = new SoilProperty(reader);
                soilProp.id = ReadInt(reader, "ID").Value;
                soilProp.name = ReadString(reader, "Name");
                soilProp.StratumID = ReadInt(reader, "StratumID").Value;
                soilProp.StratumSectionID = ReadInt(reader, "StratumSectionID");

                soilProp.StaticProp.w = ReadDouble(reader, "w");
                soilProp.StaticProp.gama = ReadDouble(reader, "gama");
                soilProp.StaticProp.c = ReadDouble(reader, "c");
                soilProp.StaticProp.fai = ReadDouble(reader, "fai");
                soilProp.StaticProp.cuu = ReadDouble(reader, "cuu");
                soilProp.StaticProp.faiuu = ReadDouble(reader, "faiuu");
                soilProp.StaticProp.Cs = ReadDouble(reader, "Cs");
                soilProp.StaticProp.qu = ReadDouble(reader, "qu");
                soilProp.StaticProp.K0 = ReadDouble(reader, "K0");
                soilProp.StaticProp.Kv = ReadDouble(reader, "Kv");
                soilProp.StaticProp.Kh = ReadDouble(reader, "Kh");
                soilProp.StaticProp.e = ReadDouble(reader, "e");
                soilProp.StaticProp.av = ReadDouble(reader, "av");
                soilProp.StaticProp.Cu = ReadDouble(reader, "Cu");

                soilProp.StaticProp.G = ReadDouble(reader, "G");
                soilProp.StaticProp.Sr = ReadDouble(reader, "Sr");
                soilProp.StaticProp.ccq = ReadDouble(reader, "ccq");
                soilProp.StaticProp.faicq = ReadDouble(reader, "faicq");
                soilProp.StaticProp.c_s = ReadDouble(reader, "c_s");
                soilProp.StaticProp.fais = ReadDouble(reader, "fais");
                soilProp.StaticProp.a01_02 = ReadDouble(reader, "a01_02");
                soilProp.StaticProp.Es01_02 = ReadDouble(reader, "Es01_02");
                soilProp.StaticProp.ccu = ReadDouble(reader, "ccu");
                soilProp.StaticProp.faicu = ReadDouble(reader, "faicu");
                soilProp.StaticProp.cprime = ReadDouble(reader, "cprime");
                soilProp.StaticProp.faiprime = ReadDouble(reader, "faiprime");
                soilProp.StaticProp.E015_0025 = ReadDouble(reader, "E015_0025");
                soilProp.StaticProp.E02_0025 = ReadDouble(reader, "E02_0025");
                soilProp.StaticProp.E04_0025 = ReadDouble(reader, "E04_0025");

                SoilDynamicProperty dynamicProp = new SoilDynamicProperty();
                soilProp.DynamicProp.G0 = ReadDouble(reader, "G0");
                soilProp.DynamicProp.ar = ReadDouble(reader, "ar");
                soilProp.DynamicProp.br = ReadDouble(reader, "br");

                objs[soilProp.key] = soilProp;
            }
        }
Example #2
0
 public SoilProperty(DataRow rawData)
     :base(rawData)
 {
     StaticProp = new SoilStaticProperty();
     DynamicProp = new SoilDynamicProperty();
 }
Example #3
0
 public SoilProperty(DataRow rawData)
     : base(rawData)
 {
     StaticProp  = new SoilStaticProperty();
     DynamicProp = new SoilDynamicProperty();
 }
Example #4
0
 public SoilProperty()
 {
     StaticProp = new SoilStaticProperty();
     DynamicProp = new SoilDynamicProperty();
 }
Example #5
0
 public SoilProperty()
 {
     StaticProp  = new SoilStaticProperty();
     DynamicProp = new SoilDynamicProperty();
 }