Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a carbon fiber initialization scheme #88

Open
chrisjonesBSU opened this issue Jul 15, 2022 · 1 comment
Open

Add a carbon fiber initialization scheme #88

chrisjonesBSU opened this issue Jul 15, 2022 · 1 comment

Comments

@chrisjonesBSU
Copy link
Member

We need a way to initialize systems and run simulations that will help us model carbon fiber wetting. I have an mbuild function that will generate orthogonal sheets of graphene layers that we can use in the simulation volume. We'd have to make sure to adjust box sizes in a way that account for the desired density of the polymer melt (i.e. expand the box by the thickness of the fiber sheets).

@chrisjonesBSU
Copy link
Member Author

Here is a snippet that can be used to create layers of graphene sheets:

class GrapheneSheet(mb.Compound):
    def __init__(self, xlen, ylen, num_layers):
        super(GrapheneSheet, self).__init__()
        self.xlen = xlen
        self.ylen = ylen
        self.num_layers = num_layers

        spacings = [0.425, 0.246, 0.35]
        angles = [90, 90, 90]
        points = [[1/6,0,0],[1/2,0,0],[0, 0.5, 0],[2/3, 1/2, 0]]
        lattice = mb.Lattice(
            lattice_spacing=spacings, angles=angles, lattice_points={'A' : points}
        )
        c = mb.Compound(name='C')
        self.layer = lattice.populate(compound_dict={'A' : c}, x=xlen, y=ylen, z=num_layers)
        self.layer.freud_generate_bonds("C", "C", dmin=0.10, dmax=0.145)
    
    def visualize(self):
        self.layer.visualize().show()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant