modelDiffusion

Second order 1D finite difference approximation of heat diffusion

Extends from TransiEnt.Basics.Icons.Block.

Information

1. Purpose of model

Simple thermal diffusion modeled as energy source using heat port interfaces.

2. Level of detail, physical effects considered, and physical insight

Finite difference approximation of second order (error decreases with square of dx)

3. Limits of validity

You shouldnt use this if the model is not fit for a 1 dimensional discretization!

4. Interfaces

heatPort[N_cv]: Gets the temperatures from the temperature layers and returns the heat flow due to thermal diffusion

5. Nomenclature

The input parameters

6. Governing Equations

(no equations)

7. Remarks for Usage

8. Validation

9. References

This model is largely based on the model "Bouyancy" in the Modelica Buildings-library (https://github.com/lbl-srg/modelica-buildings.git)

10. Version History

Model created by Pascal Dubucq (dubucq@tuhh.de) on Wed August 24 2016.

Parameters

TypeNameDefaultDescription
SI.AreaA1cross section area of control volume
IntegerN_cv100Number of control volumes
SI.Lengthdx0.01Heigth of control volume
SI.ThermalConductivityk0.6Thermal conductivity of fluid in storage
RealG_diffA*k/dx

Connectors

TypeNameDefaultDescription
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_aheatPortHeat input into the volumes