Questions tagged [python]

For questions about materials modeling scripts written in the Python programming language. Questions should focus on interfacing with existing packages and aspects related to modeling, not general debugging.

Filter by
Sorted by
Tagged with
16
votes
2answers
864 views

Open Source PyMol Conda Package: UnsatisfiableError

I'm having an issue installing the open-source version of Pymol using Anaconda on Windows. I have Python 3.8.3 installed and when I try to add the package with Conda using ...
9
votes
3answers
803 views

Molecular visualization software in Jupyter (IPython) Notebooks

Jupyter notebooks have always been a great way for me to create high-quality graphs, and write code. The features also continue to improve with packages such as Jupyter Lab, and now Jupyter Books, ...
9
votes
2answers
68 views

Evaluating the MSD of my simulation

I am running a molecular dynamics simulation of water in TIP3P, and I am storing the positions of my particles in a 2D array called relevant_positions. The number ...
10
votes
2answers
704 views

RDkit: While converting a *.sdf file to fingerprint, I'm facing several errors

suppl = Chem.SDMolSupplier('1.sdf') for mol in suppl: if mol is None: continue # print(mol.GetNumAtoms()) fps = [Chem.RDKFingerprint(x) for x in supply] I am ...
19
votes
0answers
263 views

What are the tools available for point defects calculations?

As far as I know, there are mainly PyCDT, PyDEF, pylada and some part of pymatgen. As a new user to those tools, which one would be a good choice? It would be appreciated if you could explain one of ...
13
votes
4answers
316 views

Is python sufficient for serious tensor network or DMRG calculations?

There are enough tensor-network/DMRG packages that support python (ALPS, OpenMPS, pyUni10) that it would seem (to an outsider) that it's possible to do some substantial work with DMRG without messing ...
9
votes
0answers
287 views

I wrote a Python code to do MD for a Lennard-Jones fluid but the VACF is wrong: What might be the problem? [closed]

I am trying to write a molecular dynamics simulation for a Lennard-Jones fluid in a box with periodic boundary conditions. The box has no net momentum. I am writing this in python. I have written a ...
19
votes
3answers
1k views

How to find Young's Modulus using stress strain curve using Python?

I am trying to find the The Young's Modulus of an aluminum alloy The yield stress Below is the data for the stress-strain curve. I tried finding the region where the slope is constant and to my ...
27
votes
4answers
4k views

How to write my own density functional theory (DFT) code in Python?

I am a DFT user and at some point in the future, I would like to write my own DFT code in Python to help gain a deeper understanding of DFT. As mentioned in a previous answer people have written their ...
26
votes
3answers
2k views

How to "get my feet wet" in Density Functional Theory by simulating a water molecule using Python

I just saw I am a beginner in Density Functional Theory. What are some resources that could help me to learn the basics? and it reminded me that few years ago I'd asked How can I calculate the charge ...
29
votes
2answers
678 views

How is Julia used in matter modeling?

What are the main uses and applications of Julia in matter modeling? Python for example is used in many codes, not to mention workflow automation and data processing. Are there any available codes or ...
16
votes
1answer
223 views

How to calculate t-zero temperature using Thermo-Calc- Python (TCPython) for multiple alloys?

T-zero temperature is the temperature at which the Gibbs energies of two phases are equal. Here, I wish to find the temperature at which FCC and BCC have same Gibbs energy. Thermo-Calc console mode ...
34
votes
13answers
2k views

What is a good programming language for matter modeling?

What is a good programming language for matter (e.g. molecular or materials) modeling? Since this is a broad field, I don't expect there to be only one answer.

1
2