コード例 #1
0
 public Structure(UnitCellDetails unitCellDetails, DiscretisationInfo discretisationInfo)
 {
     this.unitCellDetails    = unitCellDetails;
     this.discretisationInfo = discretisationInfo;
     XCells = SpaceTimeDiscretiser.CalculateDiscreteQuantity(unitCellDetails.XPeriod, discretisationInfo.Dx);
     YCells = SpaceTimeDiscretiser.CalculateDiscreteQuantity(unitCellDetails.YPeriod, discretisationInfo.Dy);
     InitialiseStructure();
 }
コード例 #2
0
 public Detector(double xPosition, double yPosition, double deltaX, double deltaY)
     : this(SpaceTimeDiscretiser.CalculateDiscreteQuantity(xPosition, deltaX), SpaceTimeDiscretiser.CalculateDiscreteQuantity(yPosition, deltaY))
 {
     X = xPosition;
     Y = yPosition;
 }