Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pymatlib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Rahil Doshi
pymatlib
Commits
aa1d4d0a
Commit
aa1d4d0a
authored
2 months ago
by
Rahil Doshi
Browse files
Options
Downloads
Patches
Plain Diff
Add new element data and update elepemt_map to update composition of SS304L
parent
69e78576
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/pymatlib/data/element_data.py
+76
-21
76 additions, 21 deletions
src/pymatlib/data/element_data.py
with
76 additions
and
21 deletions
src/pymatlib/data/element_data.py
+
76
−
21
View file @
aa1d4d0a
...
@@ -5,14 +5,24 @@ from pymatlib.core.elements import ChemicalElement
...
@@ -5,14 +5,24 @@ from pymatlib.core.elements import ChemicalElement
# RSC: Royal Society of Chemistry
# RSC: Royal Society of Chemistry
# CRC: CRC Handbook of Chemistry and Physics
# CRC: CRC Handbook of Chemistry and Physics
Ti
=
ChemicalElement
(
C
=
ChemicalElement
(
name
=
"
Titanium
"
,
name
=
"
Carbon
"
,
atomic_number
=
22
,
# Atomic number = 22 / Source: Periodic Table
atomic_number
=
6
,
atomic_mass
=
47.867
*
Constants
.
u
,
# Atomic mass = 47.867 u / Source: NIST
atomic_mass
=
12.0107
*
Constants
.
u
,
temperature_melt
=
1941
,
# Melting temperature = 1941 K / Source: RSC
temperature_melt
=
3915
,
# Melting temperature = 3915 K
temperature_boil
=
3560
,
# Boiling temperature = 3560 K / Source: RSC
temperature_boil
=
4300
,
# Boiling temperature = 4300 K
latent_heat_of_fusion
=
18700
,
# Latent heat of fusion = 18700 J/kg / Source: CRC
latent_heat_of_fusion
=
117000
,
# Latent heat of fusion = 117 kJ/mol
latent_heat_of_vaporization
=
427000
# Latent heat of vaporization = 427000 J/kg / Source: CRC
latent_heat_of_vaporization
=
355000
# Latent heat of vaporization = 355 kJ/mol
)
N
=
ChemicalElement
(
name
=
"
Nitrogen
"
,
atomic_number
=
7
,
atomic_mass
=
14.0067
*
Constants
.
u
,
temperature_melt
=
63.15
,
# Melting temperature = 63.15 K
temperature_boil
=
77.36
,
# Boiling temperature = 77.36 K
latent_heat_of_fusion
=
720
,
# Latent heat of fusion = 0.72 kJ/mol
latent_heat_of_vaporization
=
5570
# Latent heat of vaporization = 5.57 kJ/mol
)
)
Al
=
ChemicalElement
(
Al
=
ChemicalElement
(
...
@@ -25,6 +35,46 @@ Al = ChemicalElement(
...
@@ -25,6 +35,46 @@ Al = ChemicalElement(
latent_heat_of_vaporization
=
284000
# Latent heat of vaporization = 284000 J/kg / Source: CRC
latent_heat_of_vaporization
=
284000
# Latent heat of vaporization = 284000 J/kg / Source: CRC
)
)
Si
=
ChemicalElement
(
name
=
"
Silicon
"
,
atomic_number
=
14
,
atomic_mass
=
28.0855
*
Constants
.
u
,
temperature_melt
=
1687
,
# Melting temperature = 1687 K
temperature_boil
=
3538
,
# Boiling temperature = 3538 K
latent_heat_of_fusion
=
50200
,
# Latent heat of fusion = 50.2 kJ/mol
latent_heat_of_vaporization
=
359000
# Latent heat of vaporization = 359 kJ/mol
)
P
=
ChemicalElement
(
name
=
"
Phosphorus
"
,
atomic_number
=
15
,
atomic_mass
=
30.973762
*
Constants
.
u
,
temperature_melt
=
317.3
,
# Melting temperature = 317.3 K
temperature_boil
=
553.7
,
# Boiling temperature = 553.7 K
latent_heat_of_fusion
=
2510
,
# Latent heat of fusion = 2.51 kJ/mol
latent_heat_of_vaporization
=
12400
# Latent heat of vaporization = 12.4 kJ/mol
)
S
=
ChemicalElement
(
name
=
"
Sulfur
"
,
atomic_number
=
16
,
atomic_mass
=
32.065
*
Constants
.
u
,
temperature_melt
=
388.36
,
# Melting temperature = 388.36 K
temperature_boil
=
717.8
,
# Boiling temperature = 717.8 K
latent_heat_of_fusion
=
1730
,
# Latent heat of fusion = 1.73 kJ/mol
latent_heat_of_vaporization
=
9800
# Latent heat of vaporization = 9.8 kJ/mol
)
Ti
=
ChemicalElement
(
name
=
"
Titanium
"
,
atomic_number
=
22
,
# Atomic number = 22 / Source: Periodic Table
atomic_mass
=
47.867
*
Constants
.
u
,
# Atomic mass = 47.867 u / Source: NIST
temperature_melt
=
1941
,
# Melting temperature = 1941 K / Source: RSC
temperature_boil
=
3560
,
# Boiling temperature = 3560 K / Source: RSC
latent_heat_of_fusion
=
18700
,
# Latent heat of fusion = 18700 J/kg / Source: CRC
latent_heat_of_vaporization
=
427000
# Latent heat of vaporization = 427000 J/kg / Source: CRC
)
V
=
ChemicalElement
(
V
=
ChemicalElement
(
name
=
"
Vanadium
"
,
name
=
"
Vanadium
"
,
atomic_number
=
23
,
# Atomic number = 23 / Source: Periodic Table
atomic_number
=
23
,
# Atomic number = 23 / Source: Periodic Table
...
@@ -35,16 +85,6 @@ V = ChemicalElement(
...
@@ -35,16 +85,6 @@ V = ChemicalElement(
latent_heat_of_vaporization
=
444000
# Latent heat of vaporization = 444000 J/kg / Source: CRC
latent_heat_of_vaporization
=
444000
# Latent heat of vaporization = 444000 J/kg / Source: CRC
)
)
Fe
=
ChemicalElement
(
name
=
"
Iron
"
,
atomic_number
=
26
,
# Atomic number = 26 / Source: Periodic Table
atomic_mass
=
55.845
*
Constants
.
u
,
# Atomic mass = 55.845 u / Source: NIST
temperature_melt
=
1809
,
# Melting temperature = 1809 K / Source: RSC
temperature_boil
=
3134
,
# Boiling temperature = 3134 K / Source: RSC
latent_heat_of_fusion
=
13800
,
# Latent heat of fusion = 13800 J/kg / Source: CRC
latent_heat_of_vaporization
=
340000
# Latent heat of vaporization = 340000 J/kg / Source: CRC
)
Cr
=
ChemicalElement
(
Cr
=
ChemicalElement
(
name
=
"
Chromium
"
,
name
=
"
Chromium
"
,
atomic_number
=
24
,
# Atomic number = 24 / Source: Periodic Table
atomic_number
=
24
,
# Atomic number = 24 / Source: Periodic Table
...
@@ -65,6 +105,16 @@ Mn = ChemicalElement(
...
@@ -65,6 +105,16 @@ Mn = ChemicalElement(
latent_heat_of_vaporization
=
220000
# Latent heat of vaporization = 220000 J/kg / Source: CRC
latent_heat_of_vaporization
=
220000
# Latent heat of vaporization = 220000 J/kg / Source: CRC
)
)
Fe
=
ChemicalElement
(
name
=
"
Iron
"
,
atomic_number
=
26
,
# Atomic number = 26 / Source: Periodic Table
atomic_mass
=
55.845
*
Constants
.
u
,
# Atomic mass = 55.845 u / Source: NIST
temperature_melt
=
1809
,
# Melting temperature = 1809 K / Source: RSC
temperature_boil
=
3134
,
# Boiling temperature = 3134 K / Source: RSC
latent_heat_of_fusion
=
13800
,
# Latent heat of fusion = 13800 J/kg / Source: CRC
latent_heat_of_vaporization
=
340000
# Latent heat of vaporization = 340000 J/kg / Source: CRC
)
Ni
=
ChemicalElement
(
Ni
=
ChemicalElement
(
name
=
"
Nickel
"
,
name
=
"
Nickel
"
,
atomic_number
=
28
,
# Atomic number = 28 / Source: Periodic Table
atomic_number
=
28
,
# Atomic number = 28 / Source: Periodic Table
...
@@ -89,12 +139,17 @@ Mo = ChemicalElement(
...
@@ -89,12 +139,17 @@ Mo = ChemicalElement(
# allowing the parser to convert composition keys from the YAML file (like 'Fe': 0.675) to actual ChemicalElement objects needed by the Alloy class.
# allowing the parser to convert composition keys from the YAML file (like 'Fe': 0.675) to actual ChemicalElement objects needed by the Alloy class.
# TODO: Update dictionary as more elements are added!
# TODO: Update dictionary as more elements are added!
element_map
=
{
element_map
=
{
'
Ti
'
:
Ti
,
'
C
'
:
C
,
'
N
'
:
N
,
'
Al
'
:
Al
,
'
Al
'
:
Al
,
'
Si
'
:
Si
,
'
P
'
:
P
,
'
S
'
:
S
,
'
Ti
'
:
Ti
,
'
V
'
:
V
,
'
V
'
:
V
,
'
Fe
'
:
Fe
,
'
Cr
'
:
Cr
,
'
Cr
'
:
Cr
,
'
Mn
'
:
Mn
,
'
Mn
'
:
Mn
,
'
Fe
'
:
Fe
,
'
Ni
'
:
Ni
,
'
Ni
'
:
Ni
,
'
Mo
'
:
Mo
'
Mo
'
:
Mo
,
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment