Пример #1
0
        public void Simulate()
        {
            //if (!File.Exists(FilePaths.Output3dResults))
            //{
            StartResultsFile(FilePaths.Output3dResults);
            //}

            for (int i = 0; i < Catch.Count; i++)
            {
                if (SolverSettings.InitialShape.Contains("Axi"))// && Codend.SameLengthPanels())
                {
                    Codend.SetAxiInitialShape(FilePaths, Catch, i, Towing);
                }
                else
                {
                    Codend.SetCylInitialShape();
                }

                Codend.RestrainEntrance();
                //CalculateBoundaryDOF();

                ApplyTowing();
                Catch.Apply(Codend, i);

                Solve();

                //SaveFemShape(FilePaths.Output3dShapes, (int)Catch.BlockedMeshes[i]);
                SaveFemShape(FilePaths.Output3dShapes, i);
                AppendResults(FilePaths.Output3dResults);
            }
        }
Пример #2
0
        //=========================
        // constructors
        //=========================

        public Simulation(Codend Codend, Catch Catch, Towing Towing)
        {
            this.Codend = Codend;
            this.Catch  = Catch;
            this.Towing = Towing;

            SolverSettings = new SolverSettings(); // start with default settings

            Codend.SetCylInitialShape();
            Codend.RestrainEntrance();
            CalculateBoundaryDOF();
        }