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
15c021f8
Commit
15c021f8
authored
3 months ago
by
Rahil Doshi
Browse files
Options
Downloads
Patches
Plain Diff
Update SS316L.py
parent
ae29c7cc
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#74969
passed
3 months ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/pymatlib/data/alloys/SS316L/SS316L.py
+2
-3
2 additions, 3 deletions
src/pymatlib/data/alloys/SS316L/SS316L.py
with
2 additions
and
3 deletions
src/pymatlib/data/alloys/SS316L/SS316L.py
+
2
−
3
View file @
15c021f8
...
@@ -8,8 +8,7 @@ from pymatlib.core.alloy import Alloy
...
@@ -8,8 +8,7 @@ from pymatlib.core.alloy import Alloy
from
pymatlib.data.element_data
import
Fe
,
Cr
,
Ni
,
Mo
,
Mn
from
pymatlib.data.element_data
import
Fe
,
Cr
,
Ni
,
Mo
,
Mn
from
pymatlib.core.models
import
thermal_diffusivity_by_heat_conductivity
,
density_by_thermal_expansion
,
energy_density
,
energy_density_total_enthalpy
from
pymatlib.core.models
import
thermal_diffusivity_by_heat_conductivity
,
density_by_thermal_expansion
,
energy_density
,
energy_density_total_enthalpy
from
pymatlib.core.data_handler
import
read_data_from_txt
,
celsius_to_kelvin
,
thousand_times
,
read_data_from_excel
,
read_data_from_file
,
plot_arrays
from
pymatlib.core.data_handler
import
read_data_from_txt
,
celsius_to_kelvin
,
thousand_times
,
read_data_from_excel
,
read_data_from_file
,
plot_arrays
from
pymatlib.core.interpolators
import
interpolate_property
,
prepare_interpolation_arrays
#, interpolate_binary_search
from
pymatlib.core.interpolators
import
interpolate_property
,
prepare_interpolation_arrays
,
interpolate_binary_search
,
interpolate_double_lookup
from
pymatlib.core.cpp.fast_interpolation
import
interpolate_binary_search
,
interpolate_double_lookup
def
create_SS316L
(
T
:
Union
[
float
,
sp
.
Symbol
])
->
Alloy
:
def
create_SS316L
(
T
:
Union
[
float
,
sp
.
Symbol
])
->
Alloy
:
...
@@ -270,7 +269,7 @@ def create_SS316L(T: Union[float, sp.Symbol]) -> Alloy:
...
@@ -270,7 +269,7 @@ def create_SS316L(T: Union[float, sp.Symbol]) -> Alloy:
print
(
f
"
Average execution time per iteration (array loop):
{
np
.
mean
(
all_execution_times
)
/
len
(
SS316L
.
energy_density_array
)
:
.
8
f
}
seconds
"
)
print
(
f
"
Average execution time per iteration (array loop):
{
np
.
mean
(
all_execution_times
)
/
len
(
SS316L
.
energy_density_array
)
:
.
8
f
}
seconds
"
)
# Run the performance test
# Run the performance test
measure_performance
(
iterations
=
10
0000
)
measure_performance
(
iterations
=
10
)
quit
()
quit
()
...
...
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