public FtSection(SectionGrid grid, ICore core) : base(grid, core) { NeighbourCanReceive = new int[6]; OwnChanges = new int[6]; OwnIncreases = new int[6]; NewOwnChanges = new int[6]; }
public MatrixSortParticleSection(ICore core, SectionGrid grid, int cellSizeSingleDim) : base(grid, core) { XSize = cellSizeSingleDim; YSize = cellSizeSingleDim; ZSize = cellSizeSingleDim; ParticlesMatrix = new Particle[XSize, YSize, ZSize]; fillCounter = new Point3(); }
public NeighbourTransferSection(SectionGrid grid, ICore core) : base(grid, core) { CurrentParticles = new List <Particle>(); for (var i = 0; i < 6; i++) { ToTransmit[i] = new List <Particle>(); } }
public StrictBoundaryParticleSection(SectionGrid grid, ICore core) : base(grid, core) { OuterParticleGroups = new List <Particle> [6]; for (var i = 0; i < 6; i++) { OuterParticleGroups[i] = new List <Particle>(); } CentralParticles = new List <Particle>(); }
private void UpdateButton_Click(object sender, EventArgs e) { SectionGrid.EndEdit(); DataTable dataTable = new DataTable(); SectionGrid.Update(); RegistrationClass.RegistrationEntities.SaveChanges(); ClearTextBoxes(); }
private void TransferParticles(NeighbourTransferSection section, int i, SectionGrid grid, Point3 point3, SimulationStructure structure, int step) { if (!section.ToTransmit[i].Any()) { return; } IParticleSection outParticleSection; Point3 ownPosition; grid.SectionCoreMapping.TryGetValue(section, out ownPosition); if (!grid.SectionCoreMapping.TryGetKey(ownPosition + point3, out outParticleSection)) { return; } particleTransmissionCostCalculator.AddTransmissionCost(section, (NeighbourTransferSection)outParticleSection, section.ToTransmit[i].Count, structure, step); ((NeighbourTransferSection)outParticleSection).CurrentParticles.AddRange(section.ToTransmit[i]); section.ToTransmit[i] = new List <Particle>(); }
public IParticleSection GetSection(Vector3 lowerBound, Vector3 upperBound, ICore core, SectionGrid grid) { return(new KMeansSection(grid, core) { LowerBound = lowerBound, UpperBound = upperBound, LocationStifness = sectionLocationStifness, LocationInertia = locationInertia, MaximumDifferenceRadiusSquared = maximumDifferenceRadiusSquared }); }
public KMeansSection(SectionGrid grid, ICore core) : base(grid, core) { }
public ParticleSection(SectionGrid grid, ICore core, int elementsPerSide) : base(grid, core) { BulkParticles = new List <Particle>(); this.elementsPerSide = new[] { elementsPerSide, elementsPerSide, elementsPerSide, elementsPerSide, elementsPerSide, elementsPerSide }; }
public IParticleSection GetSection(Vector3 lowerBound, Vector3 upperBound, ICore core, SectionGrid grid) { return(new FtSection(grid, core) { LowerBound = lowerBound, UpperBound = upperBound, MaximumDifferenceRadiusSquared = maxDifRadSquared, MaximumParticles = maxParticles }); }
public IParticleSection GetSection(Vector3 lowerBound, Vector3 upperBound, ICore core, SectionGrid sectionGrid) { return(new StrictBoundaryParticleSection(sectionGrid, core) { LowerBound = lowerBound, UpperBound = upperBound }); }
public IParticleSection GetSection(Vector3 lowerBound, Vector3 upperBound, ICore core, SectionGrid grid) { return(new ParticleSection(grid, core, initialElementsPerSide) { LowerBound = lowerBound, UpperBound = upperBound }); }
public IParticleSection GetSection(Vector3 lowerBound, Vector3 upperBound, ICore core, SectionGrid grid) { var particleSection = (KMeansSection)decoFactory.GetSection(lowerBound, upperBound, core, grid); particleSection.CurrentPosition = (lowerBound + upperBound) / 2; return(particleSection); }
public IParticleSection GetSection(Vector3 lowerBound, Vector3 upperBound, ICore core, SectionGrid grid) { return(new HelsimSection(grid, core) { LowerBound = lowerBound, UpperBound = upperBound }); }
public HelsimSection(SectionGrid grid, ICore core) : base(grid, core) { }
public IParticleSection GetSection(Vector3 lowerBound, Vector3 upperBound, ICore core, SectionGrid grid) { return(new MatrixSortParticleSection(core, grid, cellSize) { LowerBound = lowerBound, UpperBound = upperBound }); }