10-Boundary Conditions - Gradient Computations On Unstructred Meshes
10-Boundary Conditions - Gradient Computations On Unstructred Meshes
Boundary Conditions
Gradient Computation on Unstructured
Meshes
Last Time…
We looked at
z 2D steady diffusion on non-orthogonal unstructured
meshes
z Wrote diffusion flux in terms of primary and secondary
gradients
z Figured out how to write secondary gradients
This Time
We will
z Examine implementation of boundary conditions
z Look at computation of gradients on unstructured
meshes
Boundary Conditions
z Boundary flux:
z Boundary flux :
z Thus:
Dirichlet Boundary Conditions
z Scarborough
criterion satisfied
for fixed secondary
gradient
z Boundedness?
z Iterative
procedure?
Other BCs
z As a first approximation:
z Estimate values at
neighboring cell-centroids
assuming local linearity and
using cell gradient at C0
z Figure out an “error” in the
estimate
z Find gradient components at
C0 to minimize error
Least Squares Method (Cont’d)
z Total error:
Least Squares Method (Cont’d)
z Defining
z Error:
•2x2 matrix
•Function of geometry only; can
calculate once and store
Discussion
In this lecture, we
z Saw that we needed to compute cell-based gradients
of φ
z Computed these gradients using two different methods
z Least squares technique is the preferable one
» Guarantees linear gradients exactly recovered
» Can be extended to higher order if necessary