Skip to content

DMREF-networks/config_generation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

config_generation

A repository for generating point cloud point locations in 2D to be created into disordered network metamaterials.

Lloyd_create_pointclouds_parfor.m

Main script to generate initial point clouds and iteratively move them via Lloyds algorithm in a bounded box. Important variables:

n_sims: number of independent point clouds to generate

n_node: number of points within each point cloud

crs: the four corners of the bounding box to contain the point within

numIterations: how many times Lloyd's algorithm should be applied to the data

Iter: not used here other than to determine numIterations, a vector used to specify at what iterations future analysis should be run on

x_loc and y_loc: cells to contain the x and y coordinates of the point cloud for each simulation and each iteration of Lloyds algorithm

Calls this function:

lloydsAlgorithm - pulled from the MathWorks file exchange Aaron T. Becker's Robot Swarm Lab (2024). lloydsAlgorithm(Px,Py, crs, numIterations, showPlot) (https://www.mathworks.com/matlabcentral/fileexchange/41507-lloydsalgorithm-px-py-crs-numiterations-showplot), MATLAB Central File Exchange, Accessed on June 2022.

License

Shield: CC BY-NC-SA 4.0

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

CC BY-NC-SA 4.0

About

Creates point clouds and associated networks

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages