Esempio n. 1
0
 public AbmachSimModel2D(AbmachSurface modelSurf, ModelPath path, AbMachParameters parms)
 {
     this.surf         = modelSurf;
     this.path         = path;
     this.abmachParams = parms;
     this.runInfo      = parms.RunInfo;
 }
Esempio n. 2
0
 public void InsertAll(AbmachSurface surface)
 {
     for (int i = 0; i < xSize; i++)
     {
         int xIndex = surface.Xindex(Xposition(i));
         for (int j = 0; j < ySize; j++)
         {
             int yIndex = surface.Yindex(Yposition(j));
             values[i, j] = surface.GetValue(xIndex, yIndex);
         }
     }
 }
Esempio n. 3
0
        public void Insert(AbmachValType type, AbmachSurface surface)
        {
            for (int i = 0; i < xSize; i++)
            {
                int xIndex = surface.Xindex(Xposition(i));
                for (int j = 0; j < ySize; j++)
                {
                    int       yIndex = surface.Yindex(Yposition(j));
                    AbmachVal v      = surface.GetValue(xIndex, yIndex);

                    SetValue(type, v, xIndex, yIndex);
                }
            }
        }