Exemple #1
0
        public override void LoadFromFile(string FileName)
        {
            IFormatter             formatter = new BinaryFormatter();
            Stream                 stream    = new FileStream(FileName, FileMode.Open, FileAccess.Read, FileShare.Read);
            FEMSolver_ND_Transient TheSolver = (FEMSolver_ND_Transient)formatter.Deserialize(stream);

            LoadFrom_Solver_ND_Static(TheSolver);

            stream.Close();
        }
Exemple #2
0
        protected void LoadFrom_Solver_ND_Static(FEMSolver_ND_Transient TheSolver)
        {
            LoadFrom_Solver_ND(TheSolver);

            this.DTime = TheSolver.DTime;
            this.NumberOfStepsToStore      = TheSolver.NumberOfStepsToStore;
            this.NumberOfStepsToSkipOutput = TheSolver.NumberOfStepsToSkipOutput;
            this.Times = TheSolver.Times;
            this.Ut    = TheSolver.Ut;

            this.Elements         = TheSolver.Elements;
            this.BoundaryElements = TheSolver.BoundaryElements;
        }