# 5.2.1 二维导热算例-热导的概念

1. packageSoong.Solver
2. {
3.  public class Material
4.    {
5.  public static var HeatInsulation:uint= Math.pow(2,0);
6.
7.  public var ID:uint = Material.HeatInsulation;
8.
9.  public var Tini:Number = 1550;//InitialTemperature
10.
11.  public var lmd:Number = 0;//HeatConductivity @ Right Side of Control Volume
12.  public var Cp:Number = 0;//Heat Capacity
13.  public var Rho:Number = 0;//Density
14.
15.  public varLatentHeat:Number = 0;//LeatentHeat
16.  public var Tsol:Number = 1504;//Temperatureof Solidus
17.  public var Tliq:Number = 1531;//Temperatureof Liquidus
18.
19.  public functionMaterial(ID:uint=0,Tini:Number=1550)
20.       {
21.  this.ID = ID;
22.
23.  this.Tini = Tini;
24.       }
25.    }
26. }

1. packageSoong.Solver
2. {
3.  public class Node
4.    {
5.  public varmaterialIndex:uint = Material.HeatInsulation;
6.
7.  public var T:Number=0;//CurrentTemperature
8.  public var T0:Number=0;//InitialTemperature
9.
10.  public var lmd:Number=0;//HeatConductivity on Control Volume
11.
12.  public var Cp:Number = 0;//Heat Capacity
13.  public var Rho:Number = 0;//Density
14.
15.  public vareHeatExchangeFactor:Number = 0;// Heat of Exchange Factor in East Interface
16.  public varwHeatExchangeFactor:Number = 0;// Heat of Exchange Factor in West Interface
17.  public varnHeatExchangeFactor:Number = 0;// Heat of Exchange Factor in North Interface
18.  public varsHeatExchangeFactor:Number = 0;// Heat of Exchange Factor in Sorth Interface
19.
20.  public function Node()
21.       {
22.
23.       }
24.
25.  public functionApplyMaterial(mtrl:Material):void
26.       {
27.  this.materialIndex = mtrl.ID;
28.
29.  this.T0 = mtrl.Tini;
30.
31.  this.lmd = mtrl.lmd;
32.
33.  this.Cp = mtrl.Cp;
34.  this.Rho = mtrl.Rho;
35.       }
36.    }
37. }

74 篇文章12 人订阅

0 条评论

## 相关文章

3426

1512

964

2814

1.4K8

2743

4404

3285

6243

### 当七夕遇上算法竞赛

七夕节因牛郎织女的传说而被扣上了「情人节」的帽子。于是TYVJ今年举办了一次线下七夕祭。Vani同学今年成功邀请到了cl同学陪他来共度七夕，于是他们决定去T...

1432