Skip to content

Commit

Permalink
#23 update immersed boundary tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
kwabenantim committed May 16, 2024
1 parent d5fc9e7 commit 579aea9
Showing 1 changed file with 6 additions and 19 deletions.
25 changes: 6 additions & 19 deletions test/python/cell_based/tutorials/TestImmersedBoundaryTutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,7 @@ def test_simple_immersed_boundary_simulation(self):

## Setup the simulation environment in the notebook

SetupNotebookTest()

## Set the start time for the simulation

SimulationTime.Instance().SetStartTime(0.0)
# JUPYTER_SETUP

## Next, we define the necessary geometry by generating a mesh to
## contain a single cell.
Expand Down Expand Up @@ -212,7 +208,7 @@ def test_simple_immersed_boundary_simulation(self):

## Reset the simulation environment in the notebook

TearDownNotebookTest()
# JUPYTER_TEARDOWN

## ### 2. Adding More Cells

Expand All @@ -222,11 +218,7 @@ def test_multicell_immersed_boundary_simulation(self):

## Setup the simulation environment in the notebook

SetupNotebookTest()

## Set the start time for the simulation

SimulationTime.Instance().SetStartTime(0.0)
# JUPYTER_SETUP

## We can use the mesh generator to generate multiple cells. The first
## parameter of the mesh generator constructor controls the number of
Expand Down Expand Up @@ -335,7 +327,7 @@ def test_multicell_immersed_boundary_simulation(self):

## Reset the simulation environment in the notebook

TearDownNotebookTest()
# JUPYTER_TEARDOWN

## ### 3. Adding Fluid Sources
## Now that we are familiar with how to generate the cells, we will
Expand All @@ -347,11 +339,7 @@ def test_fluid_source_immersed_boundary_simulation(self):

## Setup the simulation environment in the notebook

SetupNotebookTest()

## Set the start time for the simulation

SimulationTime.Instance().SetStartTime(0.0)
# JUPYTER_SETUP

## We begin by constructing a fluid source object:

Expand Down Expand Up @@ -457,8 +445,7 @@ def test_fluid_source_immersed_boundary_simulation(self):
nb_manager.vtk_show(scene, height=300)

## Reset the simulation environment in the notebook

TearDownNotebookTest()
# JUPYTER_TEARDOWN

## #### Further Exercises
## * Try integrating a different cell cycle model to introduce cell
Expand Down

0 comments on commit 579aea9

Please sign in to comment.