Skip to content

Commit

Permalink
Chaning example for expression source
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-flex committed Apr 29, 2024
1 parent 2b55a8e commit 36c485c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tidy3d/components/device/source.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,8 @@ class HeatSource(DeviceSource):
Example
-------
>>> heat_source = HeatSource(rate=1, structures=["box"])
An analytical expression can also be defined
--------------------------------------------
expression = f"{r}*(sqrt(x) + sin(y)*pow(z,3))"
>>> # analytical expression as heat source
>>> expression = f"{r}*(sqrt(x) + sin(y)*pow(z,3))"
>>> heat_source_expr = HeatSource(rate=expression, structures=["box"])
"""

Expand Down

0 comments on commit 36c485c

Please sign in to comment.