pele.systems._opengl_tools#

pele.systems._opengl_tools.draw_atomic_single_atomtype()

Source

def draw_atomic_single_atomtype(coords, index, subtract_com=False, radius=0.5):

tell the gui how to represent your system using openGL objects

Parameters:
coordsarray
indexint

we can have more than one molecule on the screen at one time. index tells which one to draw. They are viewed at the same time, so they should be visually distinct, e.g. different colors. accepted values are 1 or 2

pele.systems._opengl_tools.draw_atomic_binary()

Source

def draw_atomic_binary(
    coordslinear, index, Aatoms, Batoms, subtract_com=False, rA=0.5, rB=0.44
):

tell the gui how to represent your system using openGL objects

Parameters:
coordsarray
indexint

we can have more than one molecule on the screen at one time. index tells which one to draw. They are viewed at the same time, so they should be visually distinct, e.g. different colors. accepted values are 1 or 2

pele.systems._opengl_tools.draw_atomic_binary_polydisperse()

Source

def draw_atomic_binary_polydisperse(
    coordslinear, index, bdim=3, subtract_com=False, radii=None, Batoms=None
):

tell the gui how to represent your system using openGL objects

Parameters:
coordsarray
bdimbox dimension
indexint

we can have more than one molecule on the screen at one time. index tells which one to draw. They are viewed at the same time, so they should be visually distinct, e.g. different colors. accepted values are 1 or 2

Batoms: list of atoms of type B
pele.systems._opengl_tools.draw_cone()

Source

def draw_cone(X1, X2, rbase=0.1, rtop=0.0, color=None):

draw a cylinder from X1 to X2

pele.systems._opengl_tools.draw_box()

Source

def draw_box(boxvec, radius=0.05):

draw the edges of a box with center at the origin