Skip to content

Commit

Permalink
docs example for Material
Browse files Browse the repository at this point in the history
  • Loading branch information
KulaginVladimir committed Jan 26, 2024
1 parent 7af3e35 commit ada717a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions festim/materials/material.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@ class Material:
solubility_law (str, optional): the material's solubility law.
Can be "henry" or "sievert". Defaults to "sievert".
name (str, optional): name of the material. Defaults to None.
Example::
my_mat = Material(
id=1,
D_0=2e-7,
E_d=0.2,
thermal_cond=lambda T: 3 * T + 2,
heat_capacity=lambda T: 4 * T + 8,
rho=lambda T: 7 * T + 5,
Q=lambda T: -0.5 * T**2,
)
"""

def __init__(
Expand Down

0 comments on commit ada717a

Please sign in to comment.