Skip to content
Snippets Groups Projects
Commit 253e8181 authored by Rahil Doshi's avatar Rahil Doshi
Browse files

Update README.md

parent a28735cd
No related branches found
No related tags found
No related merge requests found
Pipeline #75652 passed
...@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment