Ejemplo n.º 1
0
        internal Layer_11(PFSSection Section)
        {
            _pfsHandle = Section;

            for (int i = 1; i <= Section.GetSectionsNo(); i++)
            {
                PFSSection sub = Section.GetSection(i);
                switch (sub.Name)
                {
                case "LowerLevel":
                    _lowerLevel = new Bathymetry(sub);
                    break;

                case "InitPotHead":
                    _initPotHead = new Bathymetry(sub);
                    break;

                case "InitialSoilTemperature":
                    _initialSoilTemperature = new Bathymetry(sub);
                    break;

                case "OuterBoundary":
                    _outerBoundary = new OuterBoundary(sub);
                    break;

                case "HydrHeadUsedForAirFlow":
                    _hydrHeadUsedForAirFlow = new Topography(sub);
                    break;

                case "WettingThreshold":
                    _wettingThreshold = new Topography(sub);
                    break;

                case "InternalBoundary":
                    _internalBoundary = new InternalBoundary(sub);
                    break;

                case "Initial_Concentration":
                    _initial_Concentration = new InitialMass(sub);
                    break;

                case "Initial_Immobile_Concentration":
                    _initial_Immobile_Concentration = new InitialMass(sub);
                    break;

                default:
                    _unMappedSections.Add(sub.Name);
                    break;
                }
            }
        }
Ejemplo n.º 2
0
    internal Layer_2(PFSSection Section)
    {
      _pfsHandle = Section;

      for (int i = 1; i <= Section.GetSectionsNo(); i++)
      {
        PFSSection sub = Section.GetSection(i);
        switch (sub.Name)
        {
        case "LowerLevel":
          _lowerLevel = new Bathymetry(sub);
          break;
        case "InitPotHead":
          _initPotHead = new Bathymetry(sub);
          break;
        case "InitialSoilTemperature":
          _initialSoilTemperature = new Bathymetry(sub);
          break;
        case "OuterBoundary":
          _outerBoundary = new OuterBoundary(sub);
          break;
        case "HydrHeadUsedForAirFlow":
          _hydrHeadUsedForAirFlow = new Topography(sub);
          break;
        case "WettingThreshold":
          _wettingThreshold = new Topography(sub);
          break;
        case "InternalBoundary":
          _internalBoundary = new InternalBoundary1(sub);
          break;
        case "Initial_Concentration":
          _initial_Concentration = new InitialMass(sub);
          break;
        case "Initial_Immobile_Concentration":
          _initial_Immobile_Concentration = new InitialMass(sub);
          break;
          default:
            _unMappedSections.Add(sub.Name);
          break;
        }
      }
    }