Skip to content

Swordshinehjy/DFT_persistence_length_Monte_Carlo_sampling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Persistence Length of Semiflexible Conjugated Polymers using the Improved Hindered Rotation Model

Introduction

The reference paper Predicting Chain Dimensions of Semiflexible Polymers from Dihedral Potentials provides a detailed explanation of the method. The orginal codes were written in Mathematica. This repository aims to replicate the results using Python with code optimization.

  • Code Optimization

    • Load external dihedral potential files.
    • Replace cos polyfit with cubic spline.
    • Replace recursion with cumsum.
    • Replace for loop with vectorization.
    • Calculation with 20 repeat units and 50000 samples can be done within 30 seconds.
  • New Features

    • Experimental codes for (A-D1)x-(A-D2)1-x terpolymers (now only work with similar terminal units, e.g., in the demo, D1 = dithenylethene, D2 = ethanediyldithiophene, both are thiophene terminal units)
    • Copolymers containing asymetric units in random or alternating connecting modes

Requirements

  • NumPy
  • SciPy
  • Matplotlib

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published