5.1.2 Three-Dimensional Case 三维情形[cfd-5-1-2]
与前面的二维情形不同ï¼在三维情形ï¼对具有四边形面的元素或控制体计算面向量和体积会遇到一些问题。主要原因在于ï¼控制体四边形面的四个顶点一般不一定位于同一平面内。此时ï¼法向量在这样的面上不再是常数(见图4.2)。为克服这一困难ï¼可以把每个四边形面分解成两个甚至更多的三角形。然而ï¼对光滑网格上的二阶格式而言ï¼精度上的收益几乎察觉不到。这种额外的代价只有对三阶及更高阶空间离散化才是值得的——实际上也是必需的。因此ï¼在下面的讨论中ï¼我们将对四边形面采用一种基于平均法向量的简化处理方法。en
As opposed to the previous 2-D case, the computation of face vectors and volumes poses in 3D some problems for elements or control volumes with quadrilateral faces. The main reason for this is that, in general, the four vertices of a quadrilateral face of a control volume may not lie in a plane. Then, the normal vector is no longer constant on such face (see Fig. 4.2). In order to overcome this difficulty, we could decompose each quadrilateral face into two or even more triangles. However, the gain in accuracy is hardly noticeable for a second-order scheme on a smooth grid. The additional effort can only be justified - and in fact it becomes necessary - for a third- and higher order spatial discretisations. Therefore, we shall apply a simplified treatment of the quadrilateral faces in the following considerations, which is based on an averaged normal vector.
Triangular face 三角形面
对于三角形面ï¼面向量\(\vec{S}\)可以用高斯公式精确计算。按图5.4a定义节点ï¼对三角形1-2-3的边差分得到en
The face vector \(\vec{S}\) can be exactly computed for a triangular face using Gauss' formula. Defining the nodes according to Fig. 5.4a, we obtain for the edge differences of the triangle 1-2-3
于是ï¼外指面向量\(\vec{S} = \vec{n}\Delta S\)由下式得到en
The outward pointing face vector \(\vec{S} = \vec{n}\Delta S\) results then from

图5.4:节点编号与面向量:(a)四面体元素;(b)六面体元素。图例:(a)中节点1—4为四面体的顶点,\(\vec{S}\)为面向量;(b)中节点1—8为六面体的顶点,\(\vec{S}\)为面5-6-7-8上的外指面向量。
Quadrilateral face 四边形面
四边形面(诸如图5.4b所示的面)的平均面向量\(\vec{S}\)ï¼最方便是采用与二维情形计算四边形面积相同的高斯公式来计算。于是ï¼对于图5.4b中由节点5、6、7和8给出的面ï¼首先定义如下差分en
The averaged face vector \(\vec{S}\) of a quadrilateral face, like that rendered in Fig. 5.4b, is most conveniently computed using the same Gauss' formula as employed in 2-D for the area of a quadrilateral. Thus, for the face given by the nodes 5, 6, 7 and 8 in Fig. 5.4b, we first define the differences
然后ï¼由下述关系式得到外指面向量\(\vec{S} = \vec{n}\Delta S\)en
Then, we obtain the outward pointing face vector \(\vec{S} = \vec{n}\Delta S\) from the relation
当面接近平行四边形ï¼即面的四个顶点全部位于同一平面内时ï¼这一近似变为精确的。en
The approximation becomes exact when the face approaches a parallelogram, i.e., when the vertices of the face lie all in one plane.
两种情形下的单位法向量都由\(\vec{n} = \vec{S}/\Delta S\)得到ï¼其中en
The unit normal vector is obtained in both cases from \(\vec{n} = \vec{S}/\Delta S\) with
Volume 体积
正如在三维结构网格有限体积格式的情形中已经指出的ï¼体积的一种非常方便的计算方法基于散度定理(divergence theorem)[35]。4.1.2小节的讨论最终给出表达式en
As we already stated in the case of 3-D structured finite volume schemes, a very convenient approach for the computation of volumes is based on the divergence theorem [35]. The discussion in Subsection 4.1.2 led finally to the expression
此即体积的表达式ï¼其中\(N_F\)表示控制体的面数,\((\vec{r}_c)_m\)为控制体第\(m\)个面的中心,\(\vec{S}_m\)为第\(m\)个面(外指)的面向量。公式(5.15)可直接应用于非结构网格。对于所有面均为三角形、或四边形面均为平面的体积ï¼该公式是精确的。en
for the volume, where \(N_F\) denotes the number of the faces of the control volume, \((\vec{r}_c)_m\) the centre of the face \(m\) of the control volume, and \(\vec{S}_m\) the face vector (outward directed) of the face \(m\), respectively. The formula (5.15) is directly applicable on unstructured grids. It is exact for a volume with triangular faces, or a volume with planar quadrilateral faces.
Cell Centroid 单元形心
前面提到的中位对偶型控制体需要知道网格单元的形心。一般体积的形心定义为en
The previously mentioned median-dual type of control volume requires the knowledge of the centroid of the grid cell. The centroid of a general volume is defined as