예제 #1
0
        public void SaveFile(BinaryWriter w)
        {
            w.Write(Name);

            SectionProperties.SaveFile(w);
            SoilParameters.SaveFile(w);
        }
예제 #2
0
        public Section(Project parent, string name)
        {
            mParent = parent;
            mName = name;
            SectionProperties = new SectionProperties(this);
            SoilParameters = new SoilParameters(this);
            AnalysisModel = new CulvertAnalysisModel(this);

            AnalysisModel.UpdateModel();
        }
예제 #3
0
        public Section(Project parent, string name)
        {
            mParent           = parent;
            mName             = name;
            SectionProperties = new SectionProperties(this);
            SoilParameters    = new SoilParameters(this);
            AnalysisModel     = new CulvertAnalysisModel(this);

            AnalysisModel.UpdateModel();
        }
예제 #4
0
        public Section Clone()
        {
            Section s = new Section(mParent);

            s.Name = Name;

            s.SectionProperties = SectionProperties.Clone();
            s.SoilParameters    = SoilParameters.Clone();

            return(s);
        }
예제 #5
0
        public static Section FromStream(Project parent, BinaryReader r)
        {
            Section s = new Section(parent);

            s.Name = r.ReadString();

            s.SectionProperties = SectionProperties.FromStream(s, r);
            s.SoilParameters    = SoilParameters.FromStream(s, r);

            return(s);
        }
예제 #6
0
        public SoilParameters Clone()
        {
            SoilParameters s = new SoilParameters(mParent);

            s.FillHeight             = FillHeight;
            s.SoilUnitWeight         = SoilUnitWeight;
            s.InternalFrictionAngle  = InternalFrictionAngle;
            s.Surcharge              = Surcharge;
            s.BeddingCoefficient     = BeddingCoefficient;
            s.ElasticityModulus      = ElasticityModulus;
            s.PoissonsRatio          = PoissonsRatio;
            s.PerformRackingAnalysis = PerformRackingAnalysis;
            s.PGA = PGA;

            return(s);
        }
예제 #7
0
        public static SoilParameters FromStream(Section parent, BinaryReader r)
        {
            SoilParameters s = new SoilParameters(parent);

            s.FillHeight             = r.ReadSingle();
            s.SoilUnitWeight         = r.ReadSingle();
            s.InternalFrictionAngle  = r.ReadSingle();
            s.Surcharge              = r.ReadSingle();
            s.BeddingCoefficient     = r.ReadSingle();
            s.ElasticityModulus      = r.ReadSingle();
            s.PoissonsRatio          = r.ReadSingle();
            s.PerformRackingAnalysis = r.ReadBoolean();
            s.PGA = r.ReadSingle();

            return(s);
        }
예제 #8
0
        public SoilParameters Clone()
        {
            SoilParameters s = new SoilParameters(mParent);

            s.FillHeight = FillHeight;
            s.SoilUnitWeight = SoilUnitWeight;
            s.InternalFrictionAngle = InternalFrictionAngle;
            s.Surcharge = Surcharge;
            s.BeddingCoefficient = BeddingCoefficient;
            s.ElasticityModulus = ElasticityModulus;
            s.PoissonsRatio = PoissonsRatio;
            s.PerformRackingAnalysis = PerformRackingAnalysis;
            s.PGA = PGA;

            return s;
        }
예제 #9
0
        public static SoilParameters FromStream(Section parent, BinaryReader r)
        {
            SoilParameters s = new SoilParameters(parent);

            s.FillHeight = r.ReadSingle();
            s.SoilUnitWeight = r.ReadSingle();
            s.InternalFrictionAngle = r.ReadSingle();
            s.Surcharge = r.ReadSingle();
            s.BeddingCoefficient = r.ReadSingle();
            s.ElasticityModulus = r.ReadSingle();
            s.PoissonsRatio = r.ReadSingle();
            s.PerformRackingAnalysis = r.ReadBoolean();
            s.PGA = r.ReadSingle();

            return s;
        }