User Tools

Site Tools


tutorial_7-adding_diffusion_to_the_compartment_model

Tutorial 7 - Adding diffusion to the compartment model

4/5

So far, so good. It is now time to add diffusion. As before, we begin with creating a compartment model.


Editing the model structure

  1. Open the first model. Smile.
  2. Connect Layer_1 and Layer_2 with a Transfer block. Name the block “Diffusion_1_2”.
  3. Connect Layer_2 and Layer_1 with a Transfer block. Name the block “Diffusion_2_1”.
  4. Connect Layer_2 and Layer_3 with a Transfer block. Name the block “Diffusion_2_3”.
  5. Connect Layer_3 and Layer_2 with a Transfer block. Name the block “Diffusion_3_2”.
  6. Connect Layer_3 and Out with a Transfer block. Name the block “Diffusion_3_Out”.


Screenshot

Assigning values

  1. Edit Diffusion_1_2. Assign the expression “D/(R * dx2)” where:


    NameType Unit Full Name Value/Expression
    D Parameterm2 year-1Diffusion coefficient1


  2. Assign the same expression to all the diffusion Transfer blocks.

  3. Run a simulation and make a plot of Flux_Out. What has happened to the curve?

  4. Save the project.


Solution to this part

Next

Previous

References

tutorial_7-adding_diffusion_to_the_compartment_model.txt · Last modified: 2020/02/19 17:42 by ecoloco