示例#1
0
        internal MOUSE_HD_parameters(PFSSection Section)
        {
            _pfsHandle = Section;

            for (int i = 1; i <= Section.GetSectionsNo(); i++)
            {
                PFSSection sub = Section.GetSection(i);
                switch (sub.Name)
                {
                default:
                    _unMappedSections.Add(sub.Name);
                    break;
                }
            }

            Model_type       = new Model_type(_pfsHandle.GetKeyword("Model_type", 1));
            TRAP_Setup       = new TRAP_Setup(_pfsHandle.GetKeyword("TRAP_Setup", 1));
            SaveStep_HrMiSec = new SaveStep_HrMiSec(_pfsHandle.GetKeyword("SaveStep_HrMiSec", 1));
            HD_summary       = new HD_summary(_pfsHandle.GetKeyword("HD_summary", 1));
        }
    internal MOUSE_HD_parameters(PFSSection Section)
    {
      _pfsHandle = Section;

      for (int i = 1; i <= Section.GetSectionsNo(); i++)
      {
        PFSSection sub = Section.GetSection(i);
        switch (sub.Name)
        {
          default:
            _unMappedSections.Add(sub.Name);
          break;
        }
      }

      Model_type = new Model_type(_pfsHandle.GetKeyword("Model_type", 1));
      TRAP_Setup = new TRAP_Setup(_pfsHandle.GetKeyword("TRAP_Setup", 1));
      SaveStep_HrMiSec = new SaveStep_HrMiSec(_pfsHandle.GetKeyword("SaveStep_HrMiSec", 1));
      HD_summary = new HD_summary(_pfsHandle.GetKeyword("HD_summary", 1));
    }
示例#3
0
        public MOUSE_HD_parameters(string pfsname)
        {
            _pfsHandle = new PFSSection(pfsname);

            _pfsHandle.AddKeyword(new PFSKeyword("RTC_Computation", PFSParameterType.Boolean, true));

            _pfsHandle.AddKeyword(new PFSKeyword("UWC_Computation", PFSParameterType.Boolean, true));

            _pfsHandle.AddKeyword(new PFSKeyword("TRAP_Computation", PFSParameterType.Boolean, true));

            _pfsHandle.AddKeyword(new PFSKeyword("Simulation_start", PFSParameterType.String, ""));

            _pfsHandle.AddKeyword(new PFSKeyword("Simulation_end", PFSParameterType.String, ""));

            _pfsHandle.AddKeyword(new PFSKeyword("Dt_MaxSec", PFSParameterType.Integer, 0));

            _pfsHandle.AddKeyword(new PFSKeyword("Dt_MinSec", PFSParameterType.Integer, 0));

            _pfsHandle.AddKeyword(new PFSKeyword("Dt_IncreaseFactor", PFSParameterType.Double, 0));

            _pfsHandle.AddKeyword(new PFSKeyword("HotStart_DateTime", PFSParameterType.String, ""));

            _pfsHandle.AddKeyword(new PFSKeyword("Allow_OverWrite", PFSParameterType.Boolean, true));

            _pfsHandle.AddKeyword(new PFSKeyword("TRAP_AD_Hot", PFSParameterType.Boolean, true));

            _pfsHandle.AddKeyword(new PFSKeyword("HD_summary_NSE", PFSParameterType.String, ""));

            _pfsHandle.AddKeyword(new PFSKeyword("HD_summary_LSE", PFSParameterType.String, ""));

            Model_type = new Model_type("Model_type");
            _pfsHandle.AddKeyword(Model_type._keyword);
            TRAP_Setup = new TRAP_Setup("TRAP_Setup");
            _pfsHandle.AddKeyword(TRAP_Setup._keyword);
            SaveStep_HrMiSec = new SaveStep_HrMiSec("SaveStep_HrMiSec");
            _pfsHandle.AddKeyword(SaveStep_HrMiSec._keyword);
            HD_summary = new HD_summary("HD_summary");
            _pfsHandle.AddKeyword(HD_summary._keyword);
        }
    public MOUSE_HD_parameters(string pfsname)
    {
      _pfsHandle = new PFSSection(pfsname);

      _pfsHandle.AddKeyword(new PFSKeyword("RTC_Computation", PFSParameterType.Boolean, true));

      _pfsHandle.AddKeyword(new PFSKeyword("UWC_Computation", PFSParameterType.Boolean, true));

      _pfsHandle.AddKeyword(new PFSKeyword("TRAP_Computation", PFSParameterType.Boolean, true));

      _pfsHandle.AddKeyword(new PFSKeyword("Simulation_start", PFSParameterType.String, ""));

      _pfsHandle.AddKeyword(new PFSKeyword("Simulation_end", PFSParameterType.String, ""));

      _pfsHandle.AddKeyword(new PFSKeyword("Dt_MaxSec", PFSParameterType.Integer, 0));

      _pfsHandle.AddKeyword(new PFSKeyword("Dt_MinSec", PFSParameterType.Integer, 0));

      _pfsHandle.AddKeyword(new PFSKeyword("Dt_IncreaseFactor", PFSParameterType.Double, 0));

      _pfsHandle.AddKeyword(new PFSKeyword("HotStart_DateTime", PFSParameterType.String, ""));

      _pfsHandle.AddKeyword(new PFSKeyword("Allow_OverWrite", PFSParameterType.Boolean, true));

      _pfsHandle.AddKeyword(new PFSKeyword("TRAP_AD_Hot", PFSParameterType.Boolean, true));

      _pfsHandle.AddKeyword(new PFSKeyword("HD_summary_NSE", PFSParameterType.String, ""));

      _pfsHandle.AddKeyword(new PFSKeyword("HD_summary_LSE", PFSParameterType.String, ""));

      Model_type = new Model_type("Model_type");
      _pfsHandle.AddKeyword(Model_type._keyword);
      TRAP_Setup = new TRAP_Setup("TRAP_Setup");
      _pfsHandle.AddKeyword(TRAP_Setup._keyword);
      SaveStep_HrMiSec = new SaveStep_HrMiSec("SaveStep_HrMiSec");
      _pfsHandle.AddKeyword(SaveStep_HrMiSec._keyword);
      HD_summary = new HD_summary("HD_summary");
      _pfsHandle.AddKeyword(HD_summary._keyword);
    }