All Projects → raghavg123 → chanim

raghavg123 / chanim

Licence: MIT license
Animation engine for explanatory chemistry videos

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to chanim

xdrawchem
XDrawChem is a two-dimensional molecule drawing program.
Stars: ✭ 26 (-70.79%)
Mutual labels:  chemistry
panel-chemistry
🧪📈 🐍. The purpose of the panel-chemistry project is to make it really easy for you to do DATA ANALYSIS and build powerful DATA AND VIZ APPLICATIONS within the domain of Chemistry using using Python and HoloViz Panel.
Stars: ✭ 94 (+5.62%)
Mutual labels:  chemistry
mdgrad
Pytorch differentiable molecular dynamics
Stars: ✭ 127 (+42.7%)
Mutual labels:  chemistry
Fermi.jl
Fermi quantum chemistry program
Stars: ✭ 107 (+20.22%)
Mutual labels:  chemistry
mlearn
Benchmark Suite for Machine Learning Interatomic Potentials for Materials
Stars: ✭ 89 (+0%)
Mutual labels:  chemistry
Version3
Version 3 of Chem4Word - A Chemistry Add-In for Microsoft Word
Stars: ✭ 53 (-40.45%)
Mutual labels:  chemistry
organic-chemistry-reaction-prediction-using-NMT
organic chemistry reaction prediction using NMT with Attention
Stars: ✭ 30 (-66.29%)
Mutual labels:  chemistry
PyBox
A box-model that automatically creates and solves equations used to describe the evolution in atmospheric composition using Python with Numba and, optionally, Fortran.
Stars: ✭ 30 (-66.29%)
Mutual labels:  chemistry
manim editor
Web Presenter for Mathematical Animations using Manim.
Stars: ✭ 144 (+61.8%)
Mutual labels:  manim
unhexennium
A mobile chemistry calculator with Flutter.
Stars: ✭ 20 (-77.53%)
Mutual labels:  chemistry
manim-physics
Physics simulation plugin of Manim that can generate scenes in various branches of Physics.
Stars: ✭ 189 (+112.36%)
Mutual labels:  manim
chem
Chemical Equation Balancing
Stars: ✭ 17 (-80.9%)
Mutual labels:  chem
QCElemental
Periodic table, physical constants, and molecule parsing for quantum chemistry.
Stars: ✭ 116 (+30.34%)
Mutual labels:  chemistry
molpal
active learning for accelerated high-throughput virtual screening
Stars: ✭ 110 (+23.6%)
Mutual labels:  chemistry
pem-dataset1
Proton Exchange Membrane (PEM) Fuel Cell Dataset
Stars: ✭ 48 (-46.07%)
Mutual labels:  chemistry
chemprop
Fast and scalable uncertainty quantification for neural molecular property prediction, accelerated optimization, and guided virtual screening.
Stars: ✭ 75 (-15.73%)
Mutual labels:  chemistry
PyAbel
A python package for Abel and inverse Abel transforms
Stars: ✭ 74 (-16.85%)
Mutual labels:  chemistry
py4chemoinformatics
Python for chemoinformatics
Stars: ✭ 78 (-12.36%)
Mutual labels:  chemistry
cellpy
extract and tweak data from electrochemical tests of cells
Stars: ✭ 46 (-48.31%)
Mutual labels:  chemistry
electrostatics.github.io
APBS & PDB2PQR - software for biomolecular electrostatics and solvation
Stars: ✭ 24 (-73.03%)
Mutual labels:  chemistry

Chanim

This is an extension to Manim library (initially created by 3Blue1Brown), for making videos regarding chemistry.

A Hindi version of this README is available here.

A Chinese version of this README is available here.

Installation (pip)

pip install chanim

Installation (Source)

  1. Install the external dependencies for manim as described here according to your OS.
  2. Clone the contents of this repository.
  3. Open a terminal in the cloned directory and run pip install -e ., or if you prefer to use poetry instead, poetry install. This'll install manim for you as well if you don't already have it installed. (you'll still need to setup the external dependencies though)

That's about it. You can now do from chanim import <*|object_name> like any regular Python package.

Usage

Here's a little example of it working.

from chanim import *

class ChanimScene(Scene):
    def construct(self):
        ## ChemWithName creates a chemical diagram with a name label
        chem = ChemWithName("*6((=O)-N(-CH_3)-*5(-N=-N(-CH_3)-=)--(=O)-N(-H_3C)-)", "Caffeine")

        self.play(chem.creation_anim())
        self.wait()

Type this into a python (.py) file. I'll assume you named it chem.py

In your command prompt/terminal write this (assuming you're in your project directory):

manim -p -qm chem.py ChanimScene

This'll render your Scene and preview it in your default player (in medium quality).

ChanimScene.mp4

Congrats! You've written and played your first animation with chanim (or "chanimation" should I say)

Explore the code and docs (coming soon!) for more on how to use chanim.

Abilities

Currently chanim only supports drawing compounds and reactions along with a few chemfig commands (Chemfig is a latex package that can draw chemical molecules and is used by chanim internally. The documentation is available here) but more is to come! If you have a suggestion, file an issue with a proper tag.

A Quick Note

There may be some faulty code and a lot of this may not be well made/documented. Feel free to file an issue if something doesn't work properly.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].