선정목록으로
Automatic Differentiation of a Finite-Volume-Based Transient Heat Conduction Code for Sensitivity Analysis
필름·전자재료 · (16) CPI(투명 폴리이미드)
기본 정보
- 저자
- DOI
- 10.48550/arxiv.1807.04410
- 저널
- arXiv (Cornell University)
- 발행년도
- 2022
- 발행기관
- Cornell University
- 피인용수
- 0
- 라이선스
- 0
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.48550/arxiv.1807.04410
- 토픽
- Composite Material Mechanics
- OpenAlex ID
- W6910737400
평가 내용
- 관련도
- 사업분야
- 필름·전자재료 · (16) CPI(투명 폴리이미드)
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '필름·전자재료 > CPI(투명 폴리이미드)' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
A general method for computing derivatives of solution fields and other simulation outputs, with respect to arbitrary input quantities, is proposed. The method of automatic differentiation is used to carry out differentiation and propagate derivatives through the simulation code by chain rule, in forward order. An object-oriented approach using the operator overloading and templating features of the C++ programming language is presented. Verification results are given for a plane wall with surface convection, where the derivative of the dimensionless temperature field with respect to the Biot number is computed and compared to an analytical solution. Further results are given for conduction in a composite material with regions of different thermal conductivity. The derivative of the temperature field is computed with respect to the conductivity of one of the phases using the proposed method.
본문 46,649자
본문 펼치기
### Automatic Differentiation of a Finite-Volume-Based Transient Heat Conduction Code for Sensitivity Analysis
Christopher T. DeGroot <sup>1</sup> <sup>_∗_</sup>
cdegroo5@uwo.ca
1Department of Mechanical and Materials Engineering
Western University
London, ON, N6A 5B9, Canada
Running head: Automatic Differentiation of Heat Conduction Code
Abstract
A general method for computing derivatives of solution fields and other simulation outputs,
with respect to arbitrary input quantities, is proposed. The method of automatic differentia
tion is used to carry out differentiation and propagate derivatives through the simulation code
by chain rule, in forward order. An object-oriented approach using the operator overloading
and templating features of the C++ programming language is presented. Verification results
are given for a plane wall with surface convection, where the derivative of the dimensionless
temperature field with respect to the Biot number is computed and compared to an analytical
solution. Further results are given for conduction in a composite material with regions of dif
ferent thermal conductivity. The derivative of the temperature field is computed with respect
to the conductivity of one of the phases using the proposed method.
2
### Nomenclature
_A_ area, [ _m_ <sup>2</sup> ]
_An_ coefficient in series expansion
_Bi_ Biot number
_Cn_ coefficient in series expansion
DP _,_ ip displacement vector from _P_ to _ip_, [ _m_ ]
Dnb _,_ ip displacement vector from _nb_ to _ip_, [ _m_ ]
_Fo_ Fourier number
_h_ convection coefficient, [ _W/m_ <sup>2</sup> _K_ ]
_H_ dimension of domain, [ _m_ ]
J Jacobian matrix
_k_ thermal conductivity, [ _W/mK_ ]
_L_ length of domain, [ _m_ ], or differential operator
n unit-normal vector
_N_ number of control volumes in domain
_Nip_ number integration points surrounding a control volume
_r_ residual at a control volume
_R_ radius, [ _m_ ]
r residual vector
_t_ time, [ _s_ ]
∆ _t_ timestep, [ _s_ ]
_T_ temperature, [ _K_ ]
_V_ volume, [ _m_ <sup>3</sup> ]
3
Greek Symbols
_α_ thermal diffusivity, [ _m_ <sup>2</sup> _/s_ ]
∆ _φ_ solution correction
_ζn_ eigenvalue
_θ_ dimensionless temperature
_φ_ discrete solution field
_φ_ <sup>_∗_</sup> continuous solution field
_ψ_ input parameter
_∂_ Ω denotes a surface bounding a space Ω
Ω denotes a three-dimensional space
Subscripts and Superscripts
_′_ denotes differentiation with respect to parameter _ψ_
_f_ fiber
_i_ iteration number
_ip_ quantity evaluated at or associated with an integration point
_m_ matrix
_n_ timestep number
_nb_ quantity evaluated at or associated with a control volume neighboring _P_
_P_ quantity evaluated at or associated with a control volume centroid
_∞_ quantity associated with ambient condition
4
### 1 Introduction
Computational fluid dynamics (CFD) analysis is now generally regarded as a mainstream design
tool, finding applications in many areas of heat transfer, including nanofluid flows, thermal energy
storage, and many others. While conventional CFD has become a reasonably mature field, an
emerging area of interest involves prediction of solution sensitivities in addition to the solution of
the primary system [1–5]. For the purposes of this work, the term ‘sensitivity’ broadly encompasses
any derivative of a calculation output with respect to a calculation input. This definition includes,
as in the case of geometric shape optimization, the derivative of an integrated output quantity of
interest with respect to the boundary location. Sensitivity analysis is, however, much more broad
than geometric shape optimization, and can be used for uncertainty analysis and other types of
optimization problems.
Solution sensitivities can be computed using a large variety of methods, perhaps the most obvi
ous being by finite differences. Using finite differences, each input is perturbed by a small amount,
the solution is recalculated, and the derivative is estimated using a divided difference. This method,
however, suffers from truncation error if the difference in inputs is too large or cancellation error
if the difference between inputs is too small [6, 7]. Although finite differences are known to be
useful and practical in many situations, it is of interest to find more accurate and efficient methods.
Derivatives could also be calculated by manually coding the derivative of each function within the
code and propagating the derivatives through the code by chain rule. Although this method could
provide machine-accurate derivatives and can be written to be very efficient, it requires significant
programming effort to produce and maintain. Further, manually coding derivatives does not gener
alize to computing sensitivities with respect to arbitrary input variables and is prone to coding error.
The continuous sensitivity equation (CSE) approach involves formally deriving solution sensitivities
by implicit differentiation of the respective governing equations and the solution of the additional
equations [3, 4]. Although this approach is quite elegant and generalizes to arbitrary sensitivity
parameters, the solution of the sensitivity equations does need to be implemented manually in the
code and would require additional maintenance effort as the primary code is updated. Symbolic
differentiation is another option that is available, but is not practical for large-scale computations
where the complexity of the symbolic expressions would be too great [7]. The response surface
methodology is another way to explore the sensitivity of a solution to its inputs by conducting a
series of numerical simulations [8, 9].
Automatic differentiation, which will be explained further in the following paragraphs, has many
of the advantages that hand-coded derivatives have; namely, machine-accuracy and efficiency that
is comparable to the main code. It also generalizes to arbitrary input variables, as in the CSE
approach, with the added advantage of minimal additional programming effort to implement and
maintain. Automatic differentiation shares some similarities with symbolic differentiation, namely,
that both are based on systematic application of chain rule to all operations within the given code.
The main difference is that automatic differentiation applies chain rule to numerical values, while
symbolic differentiation applies it to expressions [7]. For CFD applications, symbolic derivatives
5
are not required, therefore automatic differentiation becomes a natural choice.
Automatic differentiation can be implemented in a number of different ways, including source
code transformation [5, 6, 10, 11] and operator overloading [1, 2]. Source code transformation
methods involve parsing of the base code to produce a secondary code that computes the required
derivatives. While this approach can work well with procedural languages such as Fortran and C,
it does not lend itself well to object oriented languages, such as C++ and Java. This is mainly due
to the more complex class structures that are difficult to parse for generation of the derivative code.
Automatic differentiation can be implemented in object-oriented programming languages through
the use of specialized classes that are designed to compute derivatives using overloaded operators.
Using this approach, all functions and classes must be templated to work with arbitrary data types
so that they can be used with the type that implements automatic differentiation. Although this
could be a significant development task for a mature CFD code, it is straightforward to implement if
done from the start of development. Since object-oriented languages, such as OpenFOAM [12, 13]
and SU2 [14–16], are gaining popularity within the CFD community, this work focuses on the
object-oriented approach for implementation of automatic differentiation, which could potentially
be implemented in those codes.
In addition to the different implementation strategies discussed, automatic differentiation also
has two main varieties, namely the forward mode and the reverse (adjoint) mode. The primary
difference between the two modes is the direction in which the chain rule is applied. In forward
mode, the relevant input quantities are flagged at the beginning of the simulation and the chain rule
is propagated in forward order through the code. This results in the derivatives of all quantities
with respect to the selected input(s). In reverse mode, a specific output quantity is identified and all
operations and intermediate values within the code are recorded. Once the simulation is complete,
the chain rule is propagated in backwards order, starting with the selected output quantity and
results in the derivative of that quantity with respect to all input variables. The advantage of the
reverse mode is that its cost is independent of the number of input parameters, making it ideal for
shape optimization, since the boundary locations are all considered as inputs. The advantage of
forward mode is that it provides the derivatives of all calculated quantities within the code, including
the solution fields at all locations. This makes forward mode ideal for uncertainty quantification
and optimizations involving a small number of unknowns. While there are a number of studies
of adjoint methods in CFD, there are relatively few involving forward mode, particularly for heat
transfer applications.
The goal of this work is to implement the automatic differentiation technique in forward mode to
a finite-volume-based code for analysis of transient heat conduction problems. The object-oriented
approach will be used to enable sensitivity derivatives of any arbitrary parameter to be computed.
The remainder of this article will be outlined as follows. First, the numerical methods will be
outlined. This begins with the general formulation for the solution to a general partial differential
equation, its linearization, and the formulation of the solution for the sensitivity derivatives using
automatic differentiation. Then, the specific discretization of the transient heat conduction equation
6
will be outlined. Next, results will be presented for code verification. The verification problem
involves transient conduction in a plane wall with convection at the surface, and will be compared
to an analytical solution for the dimensionless temperature field and the sensitivity of the solution
with respect to the Biot number. Results will also be presented for transient conduction in a two
dimensional fiber-reinforced composite material, with sensitivities evaluated with respect to the
thermal conductivity of the fibers. Finally, a discussion about the applicability of this technique to
more general CFD codes will be provided.
### 2 Numerical Methods
In this study, a finite-volume-based code is differentiated using the method of automatic differ
entiation, resulting in two separate solution fields that are solved by the code. The first, called
the “primary” solution, is the solution to the governing partial differential equation(s) (PDE), and
is the conventional solution that is normally obtained by the code without applying differentia
tion. The second solution field is the first derivative of the primary solution field with respect to a
designated (arbitrary) input quantity.
In this section, the general primary solution strategy will be described first, followed by the
first derivative solution. Subsequently, the implementation of automatic differentiation to find the
required derivatives will be discussed. Finally, the governing equations and their discretization will
be given.
2.1 Primary Solution Method
First, let us consider a PDE represented by the general differential operator
_L_ ( _φ_ <sup>_∗_</sup> ) = 0 (1)
where _φ_ <sup>_∗_</sup> represents the continuous solution to the PDE. To solve Eq. 1 using the finite-volume
method, the continuous solution, _φ_ <sup>_∗_</sup>, is first approximated by a discrete solution vector _φ_ _∈_ R <sup>_N_</sup>,
where _N_ is the number of control volumes in the discretized domain. The PDE is then integrated
over each control volume and each term is approximated using the discrete solution _φ_ . In general,
the solution will not exactly satisfy the discretized equation; rather it will have a residual, r _∈_ R <sup>_N_</sup> .
To solve the system of equations, Newton’s method is used to linearize the problem. To do so, the
residual vector is expanded in a Taylor series about the solution at a particular iteration, _i_, denoted
_φ_ _i_ . The goal is to find the solution where r = 0. This procedure results in
r ( _φ_ _i_ ) + <sup>_<u>∂</u>_</sup> <sup><u>r</u></sup>
_∂_ _φ_
���� _φ_ _i_
7
( _φ_ _−_ _φ_ _i_ ) = 0 (2)
The Jacobian of the residual vector is denoted as
J ( _φ_ ) = <sup>_<u>∂</u>_</sup> <sup><u>r</u></sup> (3)
_∂_ _φ_
which defines a linear system that is to be solved for the solution correction ∆ _φ_ = ( _φ_ _−_ _φ_ _i_ ),
according to
J ( _φ_ _i_ ) ∆ _φ_ = _−_ r ( _φ_ _i_ ) (4)
The solution is then updated according to the fixed point iteration
_φ_ = _φ_ _i_ + ∆ _φ_ _i_ (5)
2.2 First Derivative Solution Method
The first derivative of the solution vector _φ_, with respect to an arbitrary quantity _ψ_, is obtained
by differentiating Eqs. 4 and 5 with respect to _ψ_ . This results in the linear system
J ( _φ_ _i_ )∆ _φ_ <sup>_′_</sup> = _−_ r <sup>_′_</sup> ( _φ_ _i_ ) _−_ J <sup>_′_</sup> ( _φ_ _i_ )∆ _φ_ _i_ (6)
and the fixed point iteration
_φ_ <sup>_′_</sup> = _φ_ <sup>_′_</sup> _i_
_i_ <sup>_′_</sup> (7)
<sup>_′_</sup> _i_ <sup>+ ∆</sup> <sup>_φ_</sup> _i_ <sup>_′_</sup>
where the prime symbol represents differentiation with respect to _ψ_ . The solution sensitives, _φ_ <sup>_′_</sup>, are
then obtained by iteratively solving the linear system given by Eq. 6 and updating the sensitivity
solution using the fixed point iteration defined by Eq. 7, in conjunction with the solution of the
primary linear system and the associated iteration. Note that upon convergence of the primary
system, the final term on the right side of Eq. 6 vanishes and the fixed point iteration for the
secondary system becomes independent of the primary iterations.
2.3 Automatic Differentiation
The concept underlying the forward mode of automatic differentiation is that the entire compu
tational algorithm can be considered as a series of differentiable elementary operations to which
chain rule may be applied [1, 2, 7]. Consider a function _f_ which is a composition of the functions
_f_ 0 _, f_ 1 _, ..., fn_, defined as
_f_ = _fn ◦_ _fn−_ 1 _◦_ _... ◦_ _f_ 1 _◦_ _f_ 0 (8)
The derivative, obtained by applying chain rule is
_<u>∂f</u>_
_∂f_ 0
_<u>∂fn</u>_
=
_∂fn−_ 1
_<u>∂fn−</u>_ <u>1</u>
_∂fn−_ 2
_..._ <sup>_<u>∂f</u>_</sup> <sup><u>2</u></sup>
_∂f_ 1
_<u>∂f</u>_ <u>1</u>
_∂f_ 0
(9)
Provided each of the functions _f_ 0 _, f_ 1 _, ..., fn_ are differentiable, the chain rule can be propagated from
right to left in Eq. 9. To implement in a numerical code, it is simply required that each of the
8
elementary functions _f_ 0 _, f_ 1 _, ..., fn_ is differentiable.
Since the code developed for this study is object-oriented C++, the approach for propagating
the derivatives through the code is based on operator overloading. This involves implementing a
specifically-designed data type that propagates derivatives through the code by overloading all of
the standard mathematical operators. The overloaded operators compute not only the value of
each expression, but also carry through the derivative by chain rule. Then, all classes and functions
are templated so that they may be used for arbitrary data types, including the new type that
implements automatic differentiation. Each of these concepts will be further described in the two
following subsections.
An open source software project, entitled `WEdiff` (Western Engineering Automatic Differenti
ation Library) has been created to implement the approach described in the C++ programming
language [17]. In addition, `WEdiff` provides Python bindings so that it can be used with that
programming language as well. This library is used to implement the automatic differentiation
procedure within the finite-volume CFD code for this study.
2.3.1 Operator Overloading
Operator overloading refers to the customization of the standard operators defined by a program
ming language for operands of user-defined types. This feature can be utilized to perform automatic
differentiation through an suitably defined type. Consider the class `FwdDiff`, partially shown in Fig.
1, which is similar in concept to that of Jemcov [2] and the implementation in `WEdiff` . As shown
under the “Constructors” comment block, the `FwdDiff` class can be constructed from a standard
`double`, another instance of a `FwdDiff`, and can be extended to any other constructors that are
needed. All of the standard arithmetic operators must also be overloaded (only the operators `*=`
and `+=` are shown in Fig. 1). Further, access methods must be provided, where the function `val()`
returns the value of the `FwdDiff` object, while the function `dx()` returns its derivative with respect
to the designated quantity. Each of these values is held as private member data within the class.
As an example, consider the implementation of the multiplication-assignment operator for the
`FwdDiff` class. This operator takes the value of a variable, multiplies it by another number, and
assigns the new value to the original variable. If the original variable _x_ is multiplied by _y_, we
denote the result _z_ = _xy_ . This expression is used to calculate the value and derivative, which is
then assigned back to _x_ in the code. The derivative is calculated as
_δz_ = _∂x_ <sup>_<u>∂z</u>_</sup>
(10)
_∂y_ <sup>_<u>∂z</u>_</sup> <sup>_δy_</sup> <sup>=</sup> <sup>_yδx_</sup> <sup>+</sup> <sup>_xδy_</sup>
_∂x_ <sup>_<u>∂z</u>_</sup> <sup>_δx_</sup> <sup>+</sup> _∂y_ <sup>_<u>∂z</u>_</sup>
which can be seen in the implementation shown in Fig. 2. In this expression, _δx_ and _δy_ represent
the derivatives of these intermediate variables up to the point where the expression is evaluated,
accumulated by chain rule.
9
2.3.2 Templating
A template is an entity in the C++ programming language that defines a family of classes or
functions that are specialized at compile-time for the specific type that is required. Templating
is utilized as a means to write generic code that can be used with the `FwdDiff` class, as well as
built-in types, such as `double` .
Figure 3 illustrates a simple example where templating is used to calculate the derivative of
a simple function using the `FwdDiff` class. In Fig. 3(a), a basic function is shown, which accepts
a double-precision value _x_, performs some operations, and returns another double-precision value.
Figure 3(b) shows the same function, except that it has been templated for an arbitrary type `T` .
If we let `T=double` then we have the same function that is shown in Fig. 3(a). However, the
templated function can also accept any other type that defines all of the required operators and
functions (i.e. multiplication, addition, `sin`, and `pow` ). Figure 3(c) shows a simple example using
this function where `T=FwdDiff` . First, a variable _x_ is created and its value is set to 2. To denote
that the derivative is taken with respect to this value its derivative is initialized to 1. Then the
function is simply called and the template parameter is deduced based on the type of _x_ . Finally,
the derivative is reported. Running this code will print a derivative value of _−_ 4 _._ 98595, which is
identical to the exact value, within the given number of decimal places.
In the finite-volume code developed for this study, all functions and classes were templated in
a similar manner to the example shown, such that derivatives are propagated through the code, as
in the example above.
2.4 Governing Equations and Discretization
2.4.1 Governing Equations
The PDE governing transient heat conduction for a material with constant thermophysical prop
erties is
_<u>∂T</u>_
_∂t_ <sup>=</sup> <sup>_α∇_</sup> <sup>2</sup> <sup>_T_</sup> (11)
where _T_ is temperature, _t_ is time, and _α_ is the thermal diffusivity.
2.4.2 General Discretization
Equation 11 is discretized using the finite-volume method by integrating the equation over a discrete
polyhedral control volume in space, denoted Ω _P_ . Let Ω _P_ have volume _VP_ and be bounded by the
control surface _∂_ Ω _P_ which is the union of the discrete control surfaces _∂_ Ω _ip_ . Each control surface
has area _Aip_, where _ip ∈{_ 1 _,_ 2 _, ..., Nip}_ and _Nip_ is the number of discrete control surfaces. Carrying
out this procedure on Eq. 11 results in
_<u>∂TP</u>_
_∂t_ <sup>_VP_</sup> <sup>=</sup>
_Nip_
_α ∇T_ _|ip ·_ n _ipAip_ (12)
_ip_ =1
10
where divergence theorem has been used to convert the volume integral of the term on the right into
a surface integral. The discretization given in Eq. 12 can be shown to be second-order accurate in
space and time, provided the points _P_ and _ip_ are located at the centroids of the control volume and
control surfaces, respectively, and all further interpolations are made with second-order accuracy.
2.4.3 Transient Term
The transient term is discretized using a second-order backward Euler scheme, except at the first
timestep, where a first-order backward Euler scheme must be used. The second-order scheme, for
a constant timestep ∆ _t_, is expressed as
_<u>∂TP</u>_
_∂t_ <sup>_VP_</sup> <sup>=</sup>
<u>3</u>
<u>2</u> <sup>_T n_</sup> _<u>P</u>_ <sup>_−_</sup> <sup>2</sup> <sup>_T n_</sup> _<u>P</u>_ <sup>_−_</sup> <sup>1</sup>
<sup>_n_</sup> _<u>P</u>_ <sup>_−_</sup> <sup>1</sup> + <sup><u>1</u></sup> <u>2</u> <sup>_T n_</sup> _<u>P</u>_ <sup>_−_</sup> <sup>2</sup>
_VP_ (13)
∆ _t_
<sup>_n_</sup> _<u>P</u>_ <sup>_−_</sup> <sup>1</sup> + <sup><u>1</u></sup> <u>2</u>
where _n_ denotes the timestep index, with _n_ being the current timestep.
2.4.4 Diffusion Term
Discretization of the diffusion term is based on the method presented by DeGroot and Straatman
[18]. This method was developed for fluid-porous interfaces, but is an effective general method
to enforce a continuous flux across all shared faces within a finite-volume mesh, where thermal
conductivity varies. The continuity of heat flux at a face is expressed mathematically as
_kP_ _∇T_ _|ip,P_ _·_ n _ip_ = _knb_ _∇T_ _|ip,nb ·_ n _ip_ (14)
where _nb_ refers to the neighboring control volume that shares the face containing the integration
point _ip_ . The derivatives normal to the integration point are computed by extrapolating from the
cell-centers to a point located on a line that intersects _ip_ and is normal to the control surface,
as shown in Fig. 4. A finite-difference approximation can then be used to evaluate the normal
derivative along this line as
_∇T_ _|ip,P_ _·_ n _ip_ = <sup>_<u>Tip −</u>_</sup> <sup><u>[</u></sup> <sup>_<u>TP</u>_</sup> <sup><u>+</u></sup> <sup>_<u>∇T</u>_</sup> <sup>_<u>|P</u>_</sup> <sup>_<u>·</u>_</sup> <sup><u>(</u></sup> <sup><u>D</u></sup> <sup>_<u>P,ip −</u>_</sup> <sup><u>(</u></sup> <sup><u>D</u></sup> <sup>_<u>P,ip ·</u>_</sup> <sup><u>n</u></sup> <sup>_<u>ip</u>_</sup> <sup><u>)</u></sup> <sup><u>n</u></sup> <sup>_<u>ip</u>_</sup> <sup><u>)]</u></sup>
D _P,ip ·_ n _ip_
(15)
Forming a similar expression for the control volume _nb_ and equating the two through Eq. 14, results
in the following expression for the integration point temperature that satisfies the heat flux from
both sides of the control surface
_<u>knb</u>_ <u>(</u> <u>D</u> _<u>P,ip ·</u>_ <u>n</u> _<u>ip</u>_ <u>)</u> _kP_ ( D _<u>nb,ip</u>_ _·_ n _<u>ip</u>_ )
_Tip_ = _knb_ ( D _P,ip ·_ n _ip_ ) _−_ _kP_ ( D _nb,ip ·_ n _ip_ ) <sup>_Tnb −_</sup> _knb_ ( D _P,ip ·_ n _ip_ ) _−_ _kP_ ( D _nb,ip ·_ n _ip_ ) <sup>_TP_</sup>
+ <sup>_knb_</sup> <sup>(</sup> <sup>D</sup> <sup>_<u>P,ip</u>_</sup> <sup>_·_</sup> <sup>n</sup> <sup>_<u>ip</u>_</sup> <sup>)(</sup> <sup>D</sup> <sup>_<u>nb,ip</u>_</sup> <sup>_−_</sup> <sup>(</sup> <sup>D</sup> <sup>_<u>nb,ip</u>_</sup> <sup>_·_</sup> <sup>n</sup> <sup>_<u>ip</u>_</sup> <sup>)</sup> <sup>n</sup> <sup>_<u>ip</u>_</sup> <sup>)</sup> _·_ _∇TP |nb_
_knb_ ( D _P,ip ·_ n _ip_ ) _−_ _kP_ ( D _nb,ip ·_ n _ip_ )
_−_ <sup>_kP_</sup> <sup>(</sup> <sup>D</sup> <sup>_<u>nb,ip</u>_</sup> <sup>_·_</sup> <sup>n</sup> <sup>_<u>ip</u>_</sup> <sup>)(</sup> <sup>D</sup> <sup>_<u>P,ip</u>_</sup> <sup>_−_</sup> <sup>(</sup> <sup>D</sup> <sup>_<u>P,ip</u>_</sup> <sup>_·_</sup> <sup>n</sup> <sup>_<u>ip</u>_</sup> <sup>)</sup> <sup>n</sup> <sup>_<u>ip</u>_</sup> <sup>)</sup> _·_ _∇TP |P_ (16)
_knb_ ( D _P,ip ·_ n _ip_ ) _−_ _kP_ ( D _nb,ip ·_ n _ip_ )
11
Substituting Eq. 16 back into Eq. 15 results in the following expression for the normal derivative,
in terms of the cell-centered values, which ensures a flux balance across the control surface
_<u>Tnb −</u>_ _<u>TP</u>_
_∇T_ _|ip,P_ _·_ n _ip_ =
( D _P,ip ·_ n _ip_ ) _−_ _k_ <sup>_<u>k</u>_</sup> _nb_ <sup>_<u>P</u>_</sup> <sup>(</sup> <sup>D</sup> <sup>_nb,ip ·_</sup> <sup>n</sup> <sup>_ip_</sup> <sup>)</sup>
( D _<u>nb,ip</u>_ _−_ ( D _<u>nb,ip</u>_ _·_ n _<u>ip</u>_ ) n _<u>ip</u>_ )
+
_k_ <sup>_<u>k</u>_</sup> _nb_ <sup>_<u>P</u>_</sup> <sup>(</sup> <sup>D</sup> <sup>_nb,ip ·_</sup> <sup>n</sup> <sup>_ip_</sup> <sup>)</sup>
( D _P,ip ·_ n _ip_ ) _−_ _k_ <sup>_<u>k</u>_</sup> _nb_ <sup>_<u>P</u>_</sup>
_·_ _∇T_ _|nb_
<u>(</u> <u>D</u> _<u>P,ip −</u>_ <u>(</u> <u>D</u> _<u>P,ip ·</u>_ <u>n</u> _<u>ip</u>_ <u>)</u> <u>n</u> _<u>ip</u>_ <u>)</u>
_−_
( D _P,ip ·_ n _ip_ ) _−_ _k_ <sup>_<u>k</u>_</sup> _nb_ <sup>_<u>P</u>_</sup>
_k_ <sup>_<u>k</u>_</sup> _nb_ <sup>_<u>P</u>_</sup> <sup>(</sup> <sup>D</sup> <sup>_nb,ip ·_</sup> <sup>n</sup> <sup>_ip_</sup> <sup>)</sup>
_·_ _∇T_ _|P_ (17)
The two gradient terms in Eq. 17 account for non-orthogonality in the grid. In the limit of a
completely orthogonal grid, Eq. 17 reduces to the harmonic mean formulation of Patankar [19].
2.4.5 Linearization
The residual for a control volume _P_ is defined as
_rP_ = <sup>_<u>∂TP</u>_</sup>
_∂t_ <sup>_VP_</sup> <sup>_−_</sup>
_Nip_
_ip_ =1
_α ∇T_ _|ip ·_ n _ipAip_ (18)
which vanishes at convergence. Each term in the residual equation is linearized in order to form
the Jacobian matrix and assemble the global matrix system, as defined in Eq. 4. The secondary
linear system, defined in Eq. 6 is assembled by extracting the appropriate derivatives from values
of type `FwdDiff`, which are computed automatically. All linear systems are solved using the linear
solvers provided by the PETSc library [20–22].
### 3 Results and Discussion
3.1 Plane Wall with Convection
3.1.1 Problem Description and Analytical Solution
Consider a plane wall with thickness 2 _L_, as shown in Fig. 5. The wall has an initially uniform
temperature of _Ti_ when it is exposed to a fluid that results in a convective heat flux from the outer
surfaces. The magnitude of the surface heat flux is _qc_ = _h_ [ _T_ ( _L, t_ ) _−_ _T∞_ ], where _h_ is a constant
convection coefficient and _T∞_ is the ambient temperature of the fluid.
This problem has an analytical solution for the temperature field, _T_, as a function of time,
which takes the form of the following infinite series [23]
_θ_ = <sup>_<u>T</u>_</sup> <sup>_<u>−</u>_</sup> <sup>_<u>T∞</u>_</sup>
_Ti −_ _T∞_
- cos ( _ζnx_ <sup>_∗_</sup> ) (19)
=
_∞_
_n_ =1
_Cn_ exp
- _−ζn_ <sup>2</sup>
_n_ <sup>2</sup> <sup>_Fo_</sup>
where _x_ <sup>_∗_</sup> = _x/L_ is the dimensionless distance from the centerline. Time is represented by the
Fourier number, _Fo_, which is defined as
_Fo_ = <sup>_<u>αt</u>_</sup> (20)
_L_ <sup>2</sup>
12
The values _ζn_ are the eigenvalues of the problem and are the positive roots of the following equation
_ζn_ tan _ζn_ = _Bi_ (21)
where _Bi_ is the Biot number, defined as
_Bi_ = <sup>_<u>hL</u>_</sup> (22)
_k_
where _k_ is the thermal conductivity of the wall. The coefficient _Cn_ is defined in terms of _ζn_ as
<u>4 sin</u> _<u>ζn</u>_
_Cn_ = (23)
2 _ζn_ + sin (2 _ζn_ )
The analytical solution above may also be differentiated with respect to a parameter of interest
to determine the sensitivity of the solution to that parameter. In this case, the sensitivity of the
dimensionless temperature field with respect to the Biot number, _Bi_, will be analyzed by differen
tiating the analytical solution, which can then be compared with the result from the differentiated
numerical code.
To develop the analytical solution for the sensitivity with respect to _Bi_, let us first define
- (24)
_An_ = _Cn_ exp
- _−ζn_ <sup>2</sup>
_n_ <sup>2</sup> <sup>_Fo_</sup>
Then, differentiating Eq. 19 with respect to _Bi_, we arrive at
(25)
_<u>∂θ</u>_
_∂Bi_ <sup>=</sup>
_∞_
_n_ =1
- _<u>∂A∂Bin</u>_ <sup>cos (</sup> <sup>_ζnx∗_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_An_</sup> <sup>sin (</sup> <sup>_ζnx∗_</sup> <sup>)</sup> _∂Bi_ <sup>_<u>∂ζn</u>_</sup> <sup>_x∗_</sup>
where
_<u>∂An</u>_
_∂Bi_ <sup>=</sup>
_<u>∂ζn</u>_
_∂Bi_
- _−ζn_ <sup>2</sup>
_n_ <sup>2</sup> <sup>_Fo_</sup>
- _<u>∂Cn</u>_
_∂Bi_ <sup>_−_</sup> <sup>2</sup> <sup>_FoCnζn_</sup>
exp
- (26)
_<u>∂Cn</u>_
_∂Bi_ <sup>=</sup>
- <u>4 cos</u> _<u>ζn</u>_ - _<u>∂ζn</u>_
(27)
2 _ζn_ + sin(2 _ζn_ ) <sup>_−_</sup> <sup><u>4 sin</u></sup> [2 <sup>_<u>ζ</u>_</sup> _ζ_ <sup>_<u>n</u>_</sup> _n_ <sup><u>[2 cos(2</u></sup> + sin(2 <sup>_<u>ζ</u>_</sup> _ζ_ <sup>_<u>n</u>_</sup> _n_ <sup><u>) + 2]</u></sup> )] <sup>2</sup> _∂Bi_
_<u>∂ζn</u>_ <u>1</u>
_∂Bi_ <sup>=</sup> tan _ζn_ + _ζn_ sec <sup>2</sup> _ζn_ (28)
3.1.2 Numerical Solution
The plane wall conduction problem is solved numerically using a grid of 50 uniform control volumes
in the x-direction and a timestep of 10 <sup>_−_</sup> <sup>3</sup> [s]. The computational domain extends from _x_ = 0 to
_x_ = _L_ with a symmetry boundary condition applied at _x_ = 0 and a convective boundary condition
at _x_ = _L_ .
The numerical solution for the dimensionless temperature field, _θ_, is shown in Fig. 6 in compar
ison to the analytical solution given in Eq. 19. When computing the analytical solution, the first
13
four terms in the series were used, although a single term is a good approximation for _Fo >_ 0 _._ 2 [23].
Results show that the numerical solution is nearly identical to the analytical solution, indicating
that the code is functioning properly. As expected, the wall cools from the convective surface,
which gradually cools the interior of the wall.
The numerical solution for the derivative of _θ_ with respect to _Bi_, obtained by automatic dif
ferentiation, is shown in Fig. 7 in comparison to the analytical solution given in Eqs. 25-28. As for
the dimensionless temperature field, the first four terms in the series were computed for the ana
lytical solution. These results demonstrate that the sensitivity derivatives computed numerically
are in excellent agreement with the analytical solution. Further analysis of Fig. 7 shows that the
sensitivity to _Bi_ is always negative, due to the fact that increasing _Bi_ represents greater convective
cooling, which leads to a lower temperature at a given time. As _Fo_ increases, the magnitude of the
sensitivity increases, which is consistent with the fact that a change in _Bi_ has a greater cumulative
effect as more time passes.
The results presented for the plane wall case have verified that the primary solution code as
well as the sensitivity code are functioning properly. While this case is simple, it has demonstrated
the fact that the derivative of a full solution field can be accurately calculated with respect to an
arbitrary input value. It is worth noting that the sensitivity parameter could be taken to be any
input (e.g. thermal conductivity, specific heat capacity, etc.) without any changes to the code. The
sensitivity parameter is simply flagged when it is input into the code and all of its derivatives are
propagated automatically to all other variables in the code.
3.2 Conduction in a Fiber-Reinforced Composite
3.2.1 Problem Description
Conduction in a simple fiber-reinforced composite material is considered, where the fiber has a
thermal conductivity _kf_ and the matrix has a thermal conductivity _km_ . The fiber has a radius
_R_ and is contained with a square section of the matrix with dimension _H_, as shown in Fig. 8.
Similar fibers are assumed to be arranged periodically in the horizontal direction, while the upper
and lower surfaces are held at different constant temperatures, _TU_ and _TL_, respectively. The fibers
are assumed to be very long such that the problem is effectively two-dimensional. For the problem
under consideration _H_ = 2 mm and _R_ = 0 _._ 5 mm.
3.2.2 Numerical Solution
The problem is solved to steady state using the computational mesh shown in Fig. 9, which has
just a single control volume into the page. On the left, right, front, and back surfaces, symmetry
boundary conditions are applied. On the lower and upper walls, the temperatures _TU_ and _TL_ are
specified as boundary conditions. The sensitivity of the temperature field is evaluated with respect
to the fiber thermal conductivity, _kf_ .
Results are shown in Fig. 10 for cases where _TU_ = 25 <sup>_◦_</sup> C, _TL_ = 200 <sup>_◦_</sup> C, and _km_ = 1 W/m _·_ K. Two
14
different values for the thermal conductivity of the fiber are tested, namely _kf_ _∈{_ 5 _,_ 50 _}_ W/m _·_ K.
Examination of the temperature fields indicates that changing the fiber conductivity has only a
minor effect on the overall temperature field. When the conductivity is higher, the fiber is closer to
becoming isothermal. When it is lower, it can be seen that a small temperature gradient develops
within the fiber. A major difference can be seen in the derivative fields, noting that the two contours
are plotted using different scales because of their vastly different magnitudes. In both cases, the
shape is similar, indicating that increasing fiber conductivity leads to lower temperatures on the
hot side and higher temperatures on the cold side of the fiber. The magnitudes of the derivatives
show, however, that there is minimal effect once the conductivity has reached 50 W/m _·_ K. When
the conductivity is just 5 W/m _·_ K, compared with the matrix conductivity of 1 W/m _·_ K, there is
a larger effect of increasing fiber conductivity.
This case demonstrates in greater detail the types of results that can be obtained by running
heat transfer simulations that include an automatic differentiation feature. Simulations of this type
could be used to estimate the effects of changing material properties, optimize material selection,
or be used to assess uncertainties in simulation results based on uncertainties in thermophysical
properties. Again, the choice of the sensitivity parameter is arbitrary and can be changed without
changing any of the underlying code, making this method very generally applicable.
### 4 Conclusions
This study has presented a general method for computing sensitivity derivatives of simulation out
puts with respect to arbitrary input quantities using forward mode automatic differentiation. The
automatic differentiation technique was implemented using an object oriented approach, utiliz
ing operator overloading and templating facilities within the C++ programming language. The
method has been validated using analytical solutions for transient conduction in a plane wall with
convection at the surface, demonstrating the accuracy of the method. Further results were pre
sented for conduction in a fiber-reinforced composite material to further illustrate the capabilities
of the method. While the present work focused on transient conduction, it is straightforward to
extend the method into more general CFD calculations involving fluid flow, turbulence, and other
transport processes, since there is minimal additional code required to implement the sensitivity
solution, once the primary solution is implemented.
### Acknowledgements
The author acknowledges the financial support provided by the Natural Sciences and Engineering
Research Council (NSERC) under grant number RGPIN-2017-04078.
15
### References
[1] A. Jemcov and S. Mathur, Algorithmic Differentiation of General Purpose CFD Code : Im
plementation and Verification, Eur. Congr. Comput. Methods Appl. Sci. Eng., pp. 1–19, 2004.
[2] A. Jemcov, Arithmetic parameterization of general purpose CFD code, in _Proceedings_ _of_ _the_
_17th_ _Annual_ _Conference_ _of_ _the_ _CFD_ _Society_ _of_ _Canada_, Ottawa, Canada, May 2009.
[3] E. Colin, S. Etienne, D. Pelletier, and J. Borggaard, <sup>´</sup> A general sensitivity equation formulation
for turbulent heat transfer, Numer. Heat Transf. Part B Fundam., vol. 49, no. 2, pp. 125–153,
2006.
[4] R. Duvigneau, D. Pelletier, and J. Borggaard, An improved continuous sensitivity equation
method for optimal shape design in mixed convection, Numer. Heat Transf. Part B Fundam.,
vol. 50, no. 1, pp. 1–24, 2006.
[5] C. H. Bischof, H. M. B¨ucker, A. Rasch, E. Slusanschi, and B. Lang, Automatic Differentiation
of the General-Purpose Computational Fluid Dynamics Package FLUENT, J. Fluids Eng.,
vol. 129, no. 5, pp. 652, 2007.
[6] C. Bischof, P. Khademi, A. Mauer, and A. Carle, Adifor 2.0: automatic differentiation of
Fortran 77 programs, IEEE Comput. Sci. Eng., vol. 3, no. 3, pp. 18–32, 1996.
[7] A. Griewank and A. Walther, _Evaluating_ _Derivatives:_ _Principles_ _and_ _Techniques_ _of_ _Algorith-_
_mic_ _Differentiation_, SIAM, Philadelphia, USA, 2 edition, 2008.
[8] K. M. Shirvan, S. Mirzakhanlari, A. J. Chamkha, and M. Mamourian, Numerical simulation
and sensitivity analysis of effective parameters on natural convection and entropy generation
in a wavy surface cavity filled with a nanofluid using RSM, Numer. Heat Transf. Part A Appl.,
vol. 70, no. 10, pp. 1157–1177, 2016.
[9] C.-H. Wu, H.-W. Tang, and Y.-T. Yang, Numerical simulation and optimization of turbulent
flows through perforated circular pin fin heat sinks, Numer. Heat Transf. Part A Appl., vol.
71, no. 2, pp. 172–188, 2017.
16
[10] R. Giering and T. Kaminski, Recipes for adjoint code construction, ACM Trans. Math. Softw.,
vol. 24, no. 4, pp. 437–474, 1998.
[11] L. Hascoet and V. Pascual, The Tapenade Automatic Differentiation Tool: Principles, Model,
and Specification, ACM Trans. Math. Softw., vol. 39, no. 3, pp. 20:1–20:43, 2013.
[12] H.G. Weller, G. Tabor, H. Jasak, and C. Fureby, A tensorial approach to computational
continuum mechanics using object-oriented techniques, Comput. Phys., vol. 12, no. 6, pp.
620–631, 1998.
[13] H. Jasak, A. Jemcov, and Z. Tukovic, OpenFOAM : A C ++ Library for Complex Physics Sim
ulations, in _International_ _Workshop_ _on_ _Coupled_ _Methods_ _in_ _Numerical_ _Dynamics_, Dubrovnik,
Croatia, September 2007.
[14] F. Palacios, M.R. Colonno, A.C. Aranake, A. Campos, S.R. Copeland, T.D. Economon, A.K.
Lonkar, T.W. Lukaczyk, T.W.R. Taylor, and J.J. Alonso, Stanford University Unstructured
(SU2): An open-source integrated computational environment for multi-physics simulation
and design, in _51st_ _AIAA_ _Aerosp._ _Sci._ _Meet._, Dallas, USA, January 2013.
[15] F. Palacios, T.D. Economon, A.C. Aranake, S.R. Copeland, A.K. Lonkar, T.W. Lukaczyk,
D.E. Manosalvas, K.R. Naik, S. Padron, B. Tracey, A. Variyar, and J.J. Alonso, Stanford
University Unstructured (SU2): Analysis and Design Technology for Turbulent Flows, 52nd
Aerosp. Sci. Meet.,, no. January, pp. 1–33, 2014.
[16] T. D. Economon, F. Palacios, S. R. Copeland, T. W. Lukaczyk, and J. J. Alonso, SU2: An
open-source suite for multiphysics simulation and design, AIAA Journal, vol. 54, no. 3, pp.
828–846, 2016.
[17] C. T. DeGroot, WEdiff: Western Engineering Automatic Differentiation Library, `[https:](https://bitbucket.org/cdegroot/wediff)`
`[//bitbucket.org/cdegroot/wediff](https://bitbucket.org/cdegroot/wediff)`, 2017.
[18] C. T. DeGroot and A. G. Straatman, A Finite-Volume Model for Fluid Flow and Nonequilib
rium Heat Transfer in Conjugate Fluid-Porous Domains Using General Unstructured Grids,
Numer. Heat Transf. Part B Fundam., vol. 60, no. 4, pp. 252–277, 2011.
17
[19] S.V. Patankar, _Numerical_ _Heat_ _Transfer_ _and_ _Fluid_ _Flow_, Taylor and Francis, New York, 1980.
[20] S. Balay, W.D. Gropp, L.C. McInnes, and B.F. Smith, Efficient Management of Parallelism
in Object Oriented Numerical Software Libraries, in _Modern_ _Software_ _Tools_ _in_ _Scientific_
_Computing_, E. Arge, A.M. Bruaset, and H.P. Langtangen, Eds. 1997, pp. 163–202, Birkh¨auser
Press.
[21] S. Balay, S. Abhyankar, M.F. Adams, J. Brown, P. Brune, K. Buschelman, L. Dalcin, A. Ei
jkhout, W.D. Gropp, D. Kaushik, M.G. Knepley, D.A. May, L.C. McInnes, K. Rupp, B.F.
Smith, S. Zampini, H. Zhang, and H. Zhang, PETSc web page, `[http://www.mcs.anl.gov/](http://www.mcs.anl.gov/petsc)`
`[petsc](http://www.mcs.anl.gov/petsc)`, 2017.
[22] S. Balay, S. Abhyankar, M.F. Adams, J. Brown, P. Brune, K. Buschelman, L. Dalcin, A. Ei
jkhout, W.D. Gropp, D. Kaushik, M.G. Knepley, D.A. May, L.C. McInnes, K. Rupp, B.F.
Smith, S. Zampini, H. Zhang, and H. Zhang, PETSc users manual”, Tech. Rep. ANL-95/11
Revision 3.8, Argonne National Laboratory, 2017.
[23] F. P. Incropera, D. P. DeWitt, T. L. Bergman, and A. S. Lavine, _Fundamentals_ _of_ _Heat_ _and_
_Mass_ _Transfer_, John Wiley and Sons, Hoboken, USA, 6 edition, 2007.
18
### List of Figures
1 Partial definition of the interface for a class `FwdDiff` that is used to propagate
derivatives using forward mode automatic differentiation. . . . . . . . . . . . . . . . 20
2 Implementation of the multiplication-assignment operator for the `FwdDiff` class. . . 21
3 An example of a templated function and the calculation of a derivative using the
`FwdDiff` class for automatic differentiation. . . . . . . . . . . . . . . . . . . . . . . . 22
4 A control volume, _P_, with the relevant geometric parameters for evaluating a normal
derivative noted. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
5 Schematic diagram of the plane wall with convection problem. . . . . . . . . . . . . . 24
6 Comparison of the dimensionless temperature profiles for the plane wall with con
vection problem computed numerically and analytically. . . . . . . . . . . . . . . . . 25
7 Comparison of the dimensionless profiles of the temperature derivative with respect
to the Biot number, for the plane wall with convection problem, computed numeri
cally and analytically. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
8 Schematic diagram of the fiber-reinforced composite problem. . . . . . . . . . . . . . 27
9 Plot of the computational mesh used to compute solutions for the fiber-reinforced
composite problem. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
10 Contour plots of the temperature fields [(a) and (b)] and derivatives of temperature
with respect to fiber thermal conductivity [(c) and (d)] for the cases of _kf_ = 5 W/m _·_ K
[(a) and (c)] and _kf_ = 50 W/m _·_ K [(b) and (d)]. . . . . . . . . . . . . . . . . . . . . 29
19
class FwdDiff
_{_
public :
_//_ _Constructors_
FwdDiff ( const double x ) ;
FwdDiff ( const FwdDiff& x ) ;
. . .
_//_ _Overloaded_ _operators_
FwdDiff& operator _∗_ =( const FwdDiff& x ) ;
FwdDiff& operator +=( const FwdDiff& x ) ;
. . .
_//_ _Access_
double val () const ;
double dx () const ;
. . .
private :
_//_ _Value_ _and_ _d e r i v a t i v e_
double val ;
double dx ;
_}_ ;
Figure 1: Partial definition of the interface for a class `FwdDiff` that is used to propagate derivatives
using forward mode automatic differentiation.
20
FwdDiff& operator _∗_ =( const FwdDiff& x)
_{_
dx = dx _∗_ x . val () + val _∗_ x . dx ( ) ;
val _∗_ = x . val ( ) ;
return _∗_ this ;
_}_
Figure 2: Implementation of the multiplication-assignment operator for the `FwdDiff` class.
21
double f ( const double & x)
_{_
return x _∗_ sin (pow(x, 2 . 0 ) ) + x ;
_}_
template _<_ typename T _>_
T f ( const T& x)
_{_
return x _∗_ sin (pow(x, 2 . 0 ) ) + x ;
_}_
(a)
(b)
_//_ _Create_ _a_ _v a r i a b l e_ _of_ _type_ _FwdDiff_
FwdDiff x ;
_//_ _I n i t i a l i z e_ _the_ _independent_ _v a r i a b l e_
x . setVal ( 2 . 0 ) ;
x . setDx ( 1 . 0 ) ;
_//_ _Evaluate_ _function_
FwdDiff y = f (x ) ;
_//_ _Report_ _the_ _d e r i v a t i v e_
std : : cout _<<_ ‘‘df /dx at x = 2 . 0 : ’’ _<<_ y . dx () _<<_ std : : endl ;
(c)
Figure 3: An example of a templated function and the calculation of a derivative using the `FwdDiff`
class for automatic differentiation.
22
#### nip
#### DP, ip
ip
#### DP, ip · nip
P
Figure 4: A control volume, _P_, with the relevant geometric parameters for evaluating a normal
derivative noted.
23
x = - L x = L
T∞, h T∞, h
x
Figure 5: Schematic diagram of the plane wall with convection problem.
24
1.0
0.8
0.6
0.4
0.2
0.0
0.0 0.2 0.4 0.6 0.8 1.0
### x ∗
Fo = 0.1 (Numerical)
Fo = 0.3 (Numerical)
Fo = 0.6 (Numerical)
Fo = 1.0 (Numerical)
Fo = 0.1 (Analytical)
Fo = 0.3 (Analytical)
Fo = 0.6 (Analytical)
Fo = 1.0 (Analytical)
Figure 6: Comparison of the dimensionless temperature profiles for the plane wall with convection
problem computed numerically and analytically.
25
0.1
0.0
−0.1
−0.2
−0.3
−0.4
−0.5
0.0 0.2 0.4 0.6 0.8 1.0
### x ∗
Fo = 0.1 (Numerical)
Fo = 0.3 (Numerical)
Fo = 0.6 (Numerical)
Fo = 1.0 (Numerical)
Fo = 0.1 (Analytical)
Fo = 0.3 (Analytical)
Fo = 0.6 (Analytical)
Fo = 1.0 (Analytical)
Figure 7: Comparison of the dimensionless profiles of the temperature derivative with respect to the
Biot number, for the plane wall with convection problem, computed numerically and analytically.
26
## R
## H
## km
## kf H
Figure 8: Schematic diagram of the fiber-reinforced composite problem.
27
Figure 9: Plot of the computational mesh used to compute solutions for the fiber-reinforced composite problem.
28
(a) (b)
(c) (d)
Figure 10: Contour plots of the temperature fields [(a) and (b)] and derivatives of temperature
with respect to fiber thermal conductivity [(c) and (d)] for the cases of _kf_ = 5 W/m _·_ K [(a) and
(c)] and _kf_ = 50 W/m _·_ K [(b) and (d)].
29
섹션 본문
섹션 본문이 없습니다.
참고문헌
참고문헌 정보가 없습니다.