internal PhreaticPotential(IXYZTDataSet Potential, MikeSheGridInfo Grid, double DeleteValue)
 {
     _deleteValue     = DeleteValue;
     _potential       = Potential;
     _bottomOfCell    = Grid.LowerLevelOfComputationalLayers;
     _thicknessOfCell = Grid.ThicknessOfComputationalLayers;
 }
Beispiel #2
0
 /// <summary>
 /// Use this when the filenames object and the GridInfo object have already been constructed
 /// </summary>
 /// <param name="fileNames"></param>
 /// <param name="Grid"></param>
 internal Results(Model Mshe)
 {
     mshe  = Mshe;
     _grid = mshe.GridInfo;
     if (System.IO.File.Exists(Mshe.Files.SZ3DFileName))
     {
         Initialize3DSZ(mshe.Files.SZ3DFileName);
         Initialize3DSZFlow(mshe.Files.SZ3DFlowFileName);
     }
 }
Beispiel #3
0
        public MikeSheWell(string ID, double UTMX, double UTMY, MikeSheGridInfo MSGI)
            : this(ID, UTMX, UTMY)
        {
            int i;
            int j;

            MSGI.TryGetIndex(UTMX, UTMY, out i, out j);
            Column = i;
            Row    = j;
        }
Beispiel #4
0
 /// <summary>
 /// Constructs results from .dfs3 file with head data and a GridInfo object.
 /// This constructor is only to be used by LayerStatistics.
 /// </summary>
 /// <param name="SZ3DFileName"></param>
 /// <param name="Grid"></param>
 public Results(string SZ3DFileName, MikeSheGridInfo Grid, string HeadElevationString)
 {
     this.HeadElevationString = HeadElevationString;
     _grid = Grid;
     Initialize3DSZ(SZ3DFileName);
 }
Beispiel #5
0
 /// <summary>
 /// Constructs results from .dfs3 file with head data and a GridInfo object.
 /// This constructor is only to be used by LayerStatistics.
 /// </summary>
 /// <param name="SZ3DFileName"></param>
 /// <param name="Grid"></param>
 public Results(string SZ3DFileName, MikeSheGridInfo Grid)
 {
     _grid = Grid;
     Initialize3DSZ(SZ3DFileName);
 }
Beispiel #6
0
        private void Initialize(string PreProcessed3dSzFile, string PreProcessed2dSzFile)
        {
            //Open File with 3D data
            if (System.IO.File.Exists(PreProcessed3dSzFile))
            {
                _PreProcessed_3DSZ = new DFS3(PreProcessed3dSzFile);

                //Generate 3D properties
                for (int i = 0; i < _PreProcessed_3DSZ.Items.Length; i++)
                {
                    switch (_PreProcessed_3DSZ.Items[i].Name)
                    {
                    case "Horizontal conductivity in the saturated zone":
                        _horizontalConductivity = new DataSetsFromDFS3(_PreProcessed_3DSZ, i + 1);
                        break;

                    case "Vertical conductivity in the saturated zone":
                        _verticalConductivity = new DataSetsFromDFS3(_PreProcessed_3DSZ, i + 1);
                        break;

                    case "Transmissivity in the saturated zone":
                        _transmissivity = new DataSetsFromDFS3(_PreProcessed_3DSZ, i + 1);
                        break;

                    case "Specific yield in the saturated zone":
                        _specificYield = new DataSetsFromDFS3(_PreProcessed_3DSZ, i + 1);
                        break;

                    case "Specific storage in the saturated zone":
                        _specificStorage = new DataSetsFromDFS3(_PreProcessed_3DSZ, i + 1);
                        break;

                    case "Initial potential heads in the saturated zone":
                        _initialHeads = new DataSetsFromDFS3(_PreProcessed_3DSZ, i + 1);
                        break;

                    default: //Unknown item
                        break;
                    }
                }
            }

            //Open File with 2D data
            _prePro2D = new DFS2(PreProcessed2dSzFile);

            //Generate 2D properties by looping the items
            for (int i = 0; i < _prePro2D.Items.Length; i++)
            {
                switch (_prePro2D.Items[i].Name)
                {
                case "Net Rainfall Fraction":
                    _netRainFallFraction = new DataSetsFromDFS2(_prePro2D, i + 1);
                    break;

                case "Infiltration Fraction":
                    _infiltrationFraction = new DataSetsFromDFS2(_prePro2D, i + 1);
                    break;

                default: //Unknown item
                    break;
                }
            }

            //Now construct the grid from the open files
            _grid = new MikeSheGridInfo(_PreProcessed_3DSZ, _prePro2D);
        }