flw2i8sΒΆ
- Purpose:
Compute heat flux and temperature gradients in an 8 node isoparametric heat flow element.
- Syntax:
[es, et, eci] = flw2i8s(ex, ey, ep, D, ed)- Description:
flw2i8scomputes the heat flux vectoresand the temperature gradientet(or corresponding quantities) in an 8 node isoparametric heat flow element.The input variables
ex,ey,epand the matrixDare defined inflw2i8e. The vectoredcontains the nodal temperatures \(\mathbf{a}^e\) of the element and is obtained by the functionextractas\[\mathbf{ed} = (\mathbf{a}^e)^T = [\;T_1\;\; T_2\;\; T_3\;\;\dots\;\, T_8\;]\]The output variables
\[\begin{split}\mathbf{es} = \bar{\mathbf{q}}^T = \left[ \begin{array}{cc} q^1_x & q^1_y \\ q^2_x & q^2_y \\ \vdots & \vdots \\ q^{n^2}_x & q^{n^2}_y \end{array} \right]\end{split}\]\[\begin{split}\mathbf{et} = (\bar {\nabla} T)^T = \left[ \begin{array}{cc} \frac{\partial T}{\partial x}^1 & \frac{\partial T}{\partial y}^1 \\ \frac{\partial T}{\partial x}^2 & \frac{\partial T}{\partial y}^2 \\ \vdots & \vdots \\ \frac{\partial T}{\partial x}^{n^2} & \frac{\partial T}{\partial y}^{n^2} \end{array} \right]\end{split}\]\[\begin{split}\mathbf{eci} = \left[ \begin{array}{cc} x_1 & y_1 \\ x_2 & y_2 \\ \vdots & \vdots \\ x_{n^2} & y_{n^2} \end{array} \right]\end{split}\]contain the heat flux, the temperature gradient, and the coordinates of the integration points. The index \(n\) denotes the number of integration points used within the element, see
flw2i8e.- Theory:
The temperature gradient and the heat flux are computed according to
\[\nabla T = \mathbf{B}^e\,\mathbf{a}^e\]\[\mathbf{q} = - \mathbf{D} \nabla T\]where the matrices \(\mathbf{D}\), \(\mathbf{B}^e\), and \(\mathbf{a}^e\) are described in
flw2i8e, and where the integration points are chosen as evaluation points.