https://github.com/xrsrke/pymaterial
Material science package
https://github.com/xrsrke/pymaterial
Last synced: 3 months ago
JSON representation
Material science package
- Host: GitHub
- URL: https://github.com/xrsrke/pymaterial
- Owner: xrsrke
- License: mit
- Created: 2022-09-17T02:45:49.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-20T07:12:43.000Z (over 2 years ago)
- Last Synced: 2025-01-21T15:26:25.404Z (5 months ago)
- Language: Jupyter Notebook
- Homepage: https://xrsrke.github.io/pymaterial
- Size: 521 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
pymaterial
================## Install
``` sh
pip install pymaterial
```### Why Material Science?
How do we know what material to use?
### Experiments
- What the world will looks like if electron don’t follow Pauli
Exclusion Principle
- For hunting life on a new planet, does carbon actually essential?
- Why water liquid?### Example 1: Why… $\mathrm{H}_2\mathrm{O}$?
``` python
charge_1 = Q(25, 'ncoulomb')
`````` python
charge_2 = Q(-75, 'ncoulomb')
`````` python
interatomic_separation = Q(3, 'centimeter')
`````` python
charge_1, charge_2, interatomic_separation
```(25 , -75 , 3 )
##### The attractive force between charge 1 and charge 2
``` python
attractive_force = AttractiveForce().magnitude(charge_1, charge_2, interatomic_separation)
`````` python
attractive_force
```0.018724066233877443 newton
``` python
AttractiveForce().constant_a(charge_1, charge_2)
```1.68516596104897×10-5 meter2 newton
The attractive energy $E_A$ between charge 1 and charge 2
``` python
attractive_energy = AttractiveEnergy().magnitude(charge_1, charge_2, interatomic_separation)
```