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
a9ea534d
Commit
a9ea534d
authored
2 months ago
by
Rahil Doshi
Browse files
Options
Downloads
Plain Diff
Merge branch 'release/v0.1.0'
parents
a1887439
9a50c039
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#75272
passed
2 months ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/pymatlib/data/alloys/SS304L/SS304L.yaml
+9
-6
9 additions, 6 deletions
src/pymatlib/data/alloys/SS304L/SS304L.yaml
src/pymatlib/data/element_data.py
+76
-21
76 additions, 21 deletions
src/pymatlib/data/element_data.py
with
85 additions
and
27 deletions
src/pymatlib/data/alloys/SS304L/SS304L.yaml
+
9
−
6
View file @
a9ea534d
...
@@ -115,12 +115,15 @@
...
@@ -115,12 +115,15 @@
name
:
SS304L
name
:
SS304L
composition
:
composition
:
Fe
:
0.675
C
:
0.0002
Cr
:
0.170
Si
:
0.0041
Ni
:
0.120
Mn
:
0.016
Mo
:
0.025
P
:
0.00028
Mn
:
0.010
S
:
0.00002
Cr
:
0.1909
N
:
0.00095
Ni
:
0.0806
Fe
:
0.70695
solidus_temperature
:
1605
solidus_temperature
:
1605
liquidus_temperature
:
1735
liquidus_temperature
:
1735
...
...
This diff is collapsed.
Click to expand it.
src/pymatlib/data/element_data.py
+
76
−
21
View file @
a9ea534d
...
@@ -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
...
@@ -88,12 +138,17 @@ Mo = ChemicalElement(
...
@@ -88,12 +138,17 @@ Mo = ChemicalElement(
# This dictionary maps chemical symbols (strings) to their corresponding ChemicalElement instances,
# This dictionary maps chemical symbols (strings) to their corresponding ChemicalElement instances,
# 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.
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