-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
split initial and boundary conditions
- Loading branch information
1 parent
768628e
commit 848a733
Showing
3 changed files
with
24 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
================== | ||
Initial conditions | ||
================== | ||
|
||
The initial conditions are essential to transient FESTIM simulations. They describe the mathematical problem at the beginning of the simulation. | ||
By default, the initial conditions are set to zero. | ||
However, it is possible to set the initial conditions with the :class:`festim.InitialCondition` class. | ||
|
||
.. code-block:: python | ||
import festim as F | ||
my_ic = F.InitialCondition(value=10, field=0) | ||
The value can also be a function of space: | ||
|
||
.. code-block:: python | ||
import festim as F | ||
from festim import x, y, z | ||
my_ic = F.InitialCondition(value=x**2 + y**2 + z**2, field=0) |