public AbmachSimModel2D(AbmachSurface modelSurf, ModelPath path, AbMachParameters parms) { this.surf = modelSurf; this.path = path; this.abmachParams = parms; this.runInfo = parms.RunInfo; }
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); } } }
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); } } }