This code consists of matrix generators for PowerMEIS code. The user can specify several NanoParticle (NP) shapes and piling structures.
$ git clone https://github.com/vzeizer/GenMtx.git
The goal of the present .py file is to share a robust, parallelized code to generate matrices (.mtx) to run in the PowerMEIS code PowerMEIS link.
Three NP shapes can be chosen:
- Core-shell Structures (one element in the core and another in the shell);
- Interpenetrated Spheres;
- Separated Spheres.
Considering that the NPs are spread over a substrate, the following agglomeration structures can be chosen:
- Pyramids with hexagonal (several variations can be chosen) or square bases constituted by NPs;
- Piling structure forming a cubic or rectangular structure;
- Column-like piling of NPs;
- Fcc piling of NPs.
The code can be run with Python 3.0 or above.
- NumPy
- joblib
- thirdparallel_powermeismatrix_general.py: the parallelized python program that generate the matrices
GenMtx is written and maintained by Vagner Zeizer Carvalho Paes.
Copyright (c) 2019 Vagner Zeizer C. Paes
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.