Simple thermal diffusion modeled as energy source using heat port interfaces.
Finite difference approximation of second order (error decreases with square of dx)
You shouldnt use this if the model is not fit for a 1 dimensional discretization!
heatPort[N_cv]: Gets the temperatures from the temperature layers and returns the heat flow due to thermal diffusion
The input parameters
(no equations)
This model is largely based on the model "Bouyancy" in the Modelica Buildings-library (https://github.com/lbl-srg/modelica-buildings.git)
Model created by Pascal Dubucq (dubucq@tuhh.de) on Wed August 24 2016.