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
253e8181
Commit
253e8181
authored
4 months ago
by
Rahil Doshi
Browse files
Options
Downloads
Patches
Plain Diff
Update README.md
parent
a28735cd
No related branches found
No related tags found
No related merge requests found
Pipeline
#75652
passed
4 months ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+3
-2
3 additions, 2 deletions
README.md
with
3 additions
and
2 deletions
README.md
+
3
−
2
View file @
253e8181
...
@@ -31,6 +31,7 @@ pip install "git+https://i10git.cs.fau.de/rahil.doshi/pymatlib.git"
...
@@ -31,6 +31,7 @@ pip install "git+https://i10git.cs.fau.de/rahil.doshi/pymatlib.git"
```
python
```
python
import
pystencils
as
ps
import
pystencils
as
ps
from
pystencilssfg
import
SourceFileGenerator
from
pystencilssfg
import
SourceFileGenerator
from
pymatlib.core.typedefs
import
MaterialProperty
from
pymatlib.core.yaml_parser
import
create_alloy_from_yaml
from
pymatlib.core.yaml_parser
import
create_alloy_from_yaml
# Define a temperature field
# Define a temperature field
...
@@ -43,8 +44,8 @@ with SourceFileGenerator() as sfg:
...
@@ -43,8 +44,8 @@ with SourceFileGenerator() as sfg:
# Now you can use the alloy in your simulation
# Now you can use the alloy in your simulation
# Get material properties at specific temperature
# Get material properties at specific temperature
temperature
=
1500.0
# Kelvin
temperature
=
1500.0
# Kelvin
thermal_diffusivity
=
alloy
.
thermal_diffusivity
.
evalf
(
T
,
temperature
)
thermal_diffusivity
_value
=
alloy
.
thermal_diffusivity
.
evalf
(
u
.
center
()
,
temperature
)
print
(
f
"
Thermal diffusivity at
{
temperature
}
K:
{
thermal_diffusivity
}
W/(m·K)
"
)
print
(
f
"
Thermal diffusivity at
{
temperature
}
K:
{
thermal_diffusivity
_value
}
W/(m·K)
"
)
```
```
See the
[
tutorials
](
#documentation
)
for more detailed examples.
See the
[
tutorials
](
#documentation
)
for more detailed examples.
...
...
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