An open API service indexing awesome lists of open source software.

https://github.com/xrsrke/pymaterial

Material science package
https://github.com/xrsrke/pymaterial

Last synced: 3 months ago
JSON representation

Material science package

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)
```