diamondoid
Science Score: 44.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
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (10.0%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: taaatang
- Language: C++
- Default Branch: master
- Size: 26 MB
Statistics
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
Diamond from Diamondoid
Monte Carlo simulation for comparing diamond crystal formation efficiency using different diamondoid molecules, including: adamantane, diamantane, triamantane, tetramantane, pentamantane-1(2,3)4, and pentamantane-1212.
Install, Build and Run
Clone this repository. "make all" will compile a program called "diamondMC" in the build directory. The Makefile assumes you are using g++ compiler with c++20 supports. There is no other dependency for this code. You can modify the Makefile if you want to use a different compiler.
To run the program, you can type "./diamondMC input.txt" in the build directory. An example input file is provided: "inputExample.txt". You can modify this input file to control how you want to run the Monte Carlo simulation. It allows you to modify the diamondoid molecule species, number of molecules, temperature, pressure and number of Monte Carlo steps, etc.
Method
We use a Monte Carlo simulation to search the optimal structures formed by different diamondoid molecules, with the constraints that the internal carbon-carbon bonds of diamondoid molecules will remain intact, and the carbon-carbon bonds formed between two molecules have the same bond angle and bond length as that within the diamond lattice. Here we take another assumption that the carbon-hydrogen bonds are easier to be destroyed than the carbon-carbon bonds, so that dehydrogenation occurs first during the formation of diamond from diamondoid molecules. Such an assumption has shown to be reasonable for the formation of diamond using adamantane molecules. Therefore, in this study we only consider the carbon atoms and the carbon-carbon bond formation in our Monte Carlo simulations. We consider a simple Gibbs free energy $G = NbEb + PV - TS$, where $Nb$ is the number of carbon-carbon bonds formed between diamondoid molecules and $Eb$ is the carbon-carbon bond formation energy. We define the volume as that of the minimal box that contains all the diamondoid molecules. We then use Monte Carlo simulations to search for the optimal structures to minimize the Gibbs free energy.
The simulation is performed in a $L \times L \times L$ closed box. We start the simulation by randomly putting $M$ molecules in the box. To accelerate the simulation, the $i$-th molecule is initialized to form at least one bond with previous molecules randomly, so that after initialization the $M$ molecules form a connected structure. In each Monte Carlo step, we randomly pick one diamondoid molecule, and let it randomly form bonds with the remaining carbon atoms. We calculate the enthalpy difference $\Delta H = Eb \Delta Nb + P \Delta V$ before and after each step. The probability that we accept the movement is $\mathrm{exp}(-\beta\Delta H)$, with $\beta = 1/{kBT}$. We warm up the simulation at high initial temperature $Ti$ to further perturb the initial structure. Then gradually decrease the temperature to a final low temperature $T_f$, where we perform enough Monte Carlo updates until the structure is well converged.
Owner
- Name: tatang
- Login: taaatang
- Kind: user
- Repositories: 0
- Profile: https://github.com/taaatang
Citation (CITATION.cff)
# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!
cff-version: 1.2.0
title: Diamondoid
message: >-
If you use this software, please cite it using the
metadata from this file.
type: software
authors:
- given-names: Ta
family-names: Tang
email: tatang@stanford.edu
affiliation: Stanford University
orcid: 'https://orcid.org/0000-0002-4195-8659'
- given-names: Chunjing
family-names: Jia
email: chunjing@phys.ufl.edu
affiliation: University of Florida
repository-code: 'https://github.com/taaatang/Diamondoid.git'
date-released: 2021-10-26