The transport block is notoriously hard to “debug”. Therefore it is advised that a classic compartment model is built prior to using the transport block so that the results from the transport block can be verified. We will start with only advection, and later add the diffusion transfers.
Creating the model structure
Assigning values
Edit the Input Transfer block. Enter the value “1.0” in the expression field.
Edit the Advection_1_2 Transfer block. Enter the expression “v/(R * dx)” where:
Name | Type | Unit | Value/Expression | Full Name |
---|---|---|---|---|
v | parameter | m year^{-1} | 2 | Advection velocity |
R | parameter | - | 0.5 | Retardation coefficient |
dx | expression | m | length/N | Layer thickness |
length | parameter | m | 10 | Total depth |
N | parameter | - | 3 | Number of discretizations |
(Hint: To enter values for Value/Expression and Full Name simply right-click the parameter in the Blocks window and choose Edit.)
Enter the same equation “v/(R * dx)” for the Transfer blocks Advection_2_3 and Advection_3_Out.
Edit the Expression block Flux_Out. Enter the equation “Layer_3 * Advection_3_Out”.
Edit the simulation settings by clicking the button. Set the end time to 10 years.
Run a simulation and make a plot of the simulation output Flux_Out.
Save the project with a name that will make you happy, as it is possible you will open this project many times again.
In the next step you will try to replicate the results from this model using a transport block.
Solution to this part
Next
Previous
References