tutorial_7-adding_diffusion_to_the_compartment_model

Tutorial 7 - Adding diffusion to the compartment model

Page 4 of 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”.

Assigning values

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

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

Assign the same expression to all the diffusion Transfer blocks.

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

Save the project.


Solution to this part

Next

Previous

References

tutorial_7-adding_diffusion_to_the_compartment_model.txt · Last modified: by Boris Alfonso

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki