Models single compartment with inflowing and outflowing concentration of a single substance.
Model number: 0241
|Run Model: ||    Help running a JSim model.|
MacOS: Adjust "System Preferences" -> "Security & Privacy" to allow Java JSim jnlp app to execute.
More info here.
(See Comp1FlowPlus for more detailed treatment.)
In a single compartment with flow, there is a source term, (Flow/Volume)*Cin, which adds material to the compartment, and a sink term, -(Flow/Volume)*C, the washout term, which removes material from the compartment. These two terms are usually combined as a single term in the mass balance ordinary differential equation after dividing left and right hand sides by the volume:
dC/dt = (Flow/Volume)*(Cin-C).
The compartment is instantaneously well mixed.
Various methods for checking the calculations in a model are illustrated: (1) two methods of calculating the amount of material in a compartment with flow, (2) comparison of the running integrals of inflow and outflow concentrations, and (3) calculation of the system transit time of a compartment model with flow by two different methods.