Skip to content

Commit

Permalink
Update diffusion.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-bournes authored Feb 22, 2024
1 parent bb50b65 commit 03267d5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion doc/user_guide/diffusion.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ Then click the Play button at the top of the screen to run the simulation visual
### Boundary conditions

For a numerical solution, we need to specify the equation, the boundary
conditions, and the domain. BioDynaMo supports Neumann and Dirichlet boundaries
conditions, and the domain. BioDynaMo supports Neumann, Dirichlet and Periodic boundaries
with constant coefficients on a cube domain. For instance, you may specify
no-flux boundaries (homogeneous Neumann) via
``` cpp
Expand All @@ -157,6 +157,11 @@ ModelInitializer::AddBoundaryConditions(
kKalium, BoundaryConditionType::kDirichlet,
std::make_unique<ConstantBoundaryCondition>(1.0));
```
or Periodic boundaries via
``` cpp
ModelInitializer::AddBoundaryConditions(
kKalium, BoundaryConditionType::kPeriodic);
```
The `ModelInitializer` conveniently wraps the access to the `ResourceManager`
and sets the boundaries. You can also set the boundaries directly by calling
Expand Down

0 comments on commit 03267d5

Please sign in to comment.