2d-structure-designer
Science Score: 31.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (7.2%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: VignoliniLab
- Language: Python
- Default Branch: master
- Size: 17.6 KB
Statistics
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
2D Structure Designer
This Python code allows to generate 2D disordered ensembles of particles with tailored structure properties.
This algorithm consists of two main parts: • First, hard (non-overlapping) particles were added using a random sequential approach until the desired filling fraction was reached; • Second, the difference between the targeted S(q) and the one of the structure was minimised. In detail, the positions of the particles were gradually changed following a gradient descending minimisation protocol.
This code has been used to understand the role of structural correlations in scattering optimisation and in the creation of isotropic structural colourations (see CITATION.txt).
cylinderEnsemble.py and powertools.py are supporting files containing ausiliary functions. Disordered structures are generated by running MWE.py.
The input parameters are: r: mean size (in µm) rsigma: size polidispersity ff : filling fraction bbox: size of the system (in µm) k0: average distance between the particles (in k-space) sigmaK: uncertainty in the k (k-error in the structure factor) sigmaPhi: uncertainty in the phi (angular error in the structure factor)
Different target structure factors are already builtin, namely: Hexagonal, Rectangular, Elliptical, Layered
IMPORTANT: You need to optimise the cSep parameter every time you change the input parameters to ensure that the particles are packing accordingly to the desired structure factor whilst avoiding overlapping.
Owner
- Name: VignoliniLab - Bioinspired Photonics
- Login: VignoliniLab
- Kind: user
- Location: Cambridge, UK
- Website: https://www.ch.cam.ac.uk/group/vignolini/index
- Twitter: vignoliniLab
- Repositories: 1
- Profile: https://github.com/VignoliniLab
Bio-Inspired Photonics group in Cambridge: we like colours and we try to understand how nature controls materials to make it!
Citation (CITATION.txt)
If you use this code for any published work, please cite it using the references
below:
@article{,
author = {Gianni Jacucci, Jacopo Bertolotti, Silvia Vignolini},
title = {Role of Anisotropy and Refractive Index in Scattering and Whiteness Optimization},
year = {2019},
journal = {Advanced Optical Materials}
}
@article{,
author = {Gianni Jacucci, Silvia Vignolini, Lukas Schertel},
title = {Colors from correlated disordered photonic systems - can we outperform nature?},
year = {2020},
journal = {Proceedings of the National Academy of Sciences of the United States of America}
}
GitHub Events
Total
- Watch event: 1
Last Year
- Watch event: 1