public AbmachSimModel2D(Abmach2DSurface surface, ModelPath path, AbMachParameters parms)
 {
     debugData    = new List <string>();
     _surface     = surface;
     _initialSurf = surface.Clone();
     _tempSurf    = new Abmach2DSurface(surface.BoundingBox, surface.MeshSize, surface.Border);
     _path        = path;
     abmachParams = parms;
     runInfo      = parms.RunInfo;
     jetRadius    = abmachParams.AbMachJet.Diameter / 2.0;
     jetR         = (int)Math.Round(.5 * abmachParams.AbMachJet.Diameter / surface.MeshSize);
     meshSize     = surface.MeshSize;
 }
Exemple #2
0
 public Abmach2DSurface Clone()
 {
     try
     {
         var surf = new Abmach2DSurface(_boundingBox, _meshSize, _borderWidth);
         for (int i = 0; i < _xSize; i++)
         {
             for (int j = 0; j < _ySize; j++)
             {
                 surf.SetValue(i, j, _values[i, j]);
             }
         }
         return(surf);
     }
     catch (Exception)
     {
         throw;
     }
 }
 private void resetSurface()
 {
     _surface = _initialSurf.Clone();
 }