登录
首页 » Visual C++ » Euler_DG_Quadrilateral_2D

Euler_DG_Quadrilateral_2D

于 2021-01-29 发布 文件大小:46KB
0 236
下载积分: 1 下载次数: 60

代码说明:

  自己写了一个二维Euler方程的间断有限元程序 上次发了一个三角形单元的程序 因为不是曲边单元 所以在圆柱后面容易形成涡 现在把程序改为曲边四边形单元了 没有涡出现 单元是8节点四边形单元 节点编号顺序是 1 5 2 6 3 7 4 8 也就是四个角点依次 是1 2 3 4 然后是边的中点编号 5 6 7 8. 时间推进采用 Runge-Kutta 方法 数值通量采用全局Lax-Friedrichs通量 仍然不能捕捉激波 因为没有做重构或者加人工粘性 等这个做出来了 再发一次。 程序没有进行优化 比如说内存的消耗没有优化 比如直边单元的边界积分仍然采 用了曲边的积分方法 增加了计算量 比如面积分、线积分都是采用的是Gauss- Legendre-Lobatto积分 积分精度会比一般的Gauss-Legendre积分精度低一阶 等 等问题。 二维的 纯属交流性质 就没有考虑这些问题 ^_^ 如果物面全部是直边 那么只要改变一个参数N 就可以获得不同的计算精度 且具 有谱精度 因为单元的节点是Gauss-Legendre-Lobatto积分点。 其实就是谱元法 (物面是曲边的情况我不清楚是不是也可以通过提高基函数的阶数 也就是增加N 来提高计算精度)(Wrote a two-dimensional Euler equations with discontinuous finite element program Last made ​ ​ a triangular element of the program, not curved edge unit is so easy to form a vortex in the cylinder behind the Program to curved edge quadrilateral element vortices appear Unit is the order of 8-node quadrilateral element node number is 15,263,748 which is the four corners of the points in turn Is 1234 and then the side of the midpoint of the number 5678. Time promote the use of Runge-Kutta method Numerical flux of the overall situation of Lax-Friedrichs, flux Still can not capture the shock wave did not do the reconstruction or artificial viscosity do it Zaifayici. The program is not optimized for example, memory consumption is not optimized such as straight-edge boundary integral of the unit is still mining Integral method to increase the amount of computation such as surface integral with a curved edge, the line integral using the Gauss- The Legendr)

文件列表:

Euler_DG_Quadrilateral_2D
.........................\2DWeights_GaussLegendreLobatto2.cpp,192,2012-04-07
.........................\DGFEM_quadrilateral.h,11078,2012-04-11
.........................\DifferentialMatrix2.cpp,594,2012-04-11
.........................\DifferentialMatrix4eta.cpp,456,2011-11-02
.........................\DifferentialMatrix4xi.cpp,451,2011-11-02
.........................\DwDxy.cpp,2511,2012-04-07
.........................\dxydxieta.cpp,1956,2012-04-07
.........................\ElementInitialization.cpp,3804,2012-04-07
.........................\Element_Node.txt,29520,2012-04-04
.........................\fRight.cpp,12174,2012-04-11
.........................\Function.cpp,2065,2012-04-11
.........................\FunPoly.cpp,24907,2011-10-27
.........................\f_RungeKutta.cpp,19182,2012-04-07
.........................\GridCorrect.cpp,1153,2012-04-11
.........................\GridData.cpp,2246,2012-04-10
.........................\Inside_Node.txt,720,2012-04-04
.........................\InterpolationMatrix2.cpp,690,2012-04-10
.........................\InterpolationMatrix4.cpp,413,2012-04-07
.........................\InterpolationMatrixN_NEG.cpp,648,2012-04-08
.........................\InverseMatrixN.cpp,1294,2012-04-07
.........................\LengthNormal.cpp,10181,2012-04-11
.........................\MainFile_DGFEM_quadrilateral.cpp,579,2012-04-11
.........................\MassMatrix.cpp,5314,2012-04-07
.........................\Node_Coordinate.txt,32214,2012-04-04
.........................\Outside_Node.txt,720,2012-04-04
.........................\pre_RungeKutta.cpp,13564,2012-04-11
.........................\ProgramInitialization.cpp,2112,2012-04-09
.........................\Result.cpp,9325,2012-04-12
.........................\RungeKutta.cpp,3743,2012-04-11
.........................\SpectralRadius.cpp,0,2012-04-08
.........................\TimeStepDeltaT.cpp,602,2012-04-08
.........................\ZerosWeights_GaussLegendreLobattoCurve.cpp,1452,2012-04-07
.........................\ZerosWeights_GaussLegendreLobattoN.cpp,1401,2012-04-07
.........................\ZerosWeights_GaussLegendreLobattoNGLL.cpp,1519,2012-04-07

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论


0 个回复

  • jisuanfangfa
    合工大大二计算方法实验的源代码,里面有实验指导书.有牛顿下山,迭代啊什么的(Sophomore calculation experiment source code, which has experimental guide books)
    2010-06-19 14:42:44下载
    积分:1
  • FractalDim
    盒维数计算和豪斯多夫维数的计算与应用研究程序(box counting)
    2013-07-27 17:50:31下载
    积分:1
  • zuijinercheng
    基于C环境下的最小二乘法的计算编程算法相当相当实用。(C based on the circumstances of the least squares algorithm for calculating the programming very well.)
    2009-05-12 23:42:37下载
    积分:1
  • static_jiecheng
    几种计算阶乘、阶乘之和的算法,由于计算机存储问题,一般阶乘不可能算得太大,只是一种方法。(Several computing factorial, factorial, and the algorithm, due to computer storage problems, the general factorial can not be considered too great, is only a way.)
    2008-04-23 12:18:40下载
    积分:1
  • polynomial_multiplication
    实现多项式相乘求模运算,并且模多项式是可以改变的,方便,简单(To achieve polynomial multiplication modulo operation, and polynomial model can be changed, convenient and simple)
    2010-06-25 21:11:57下载
    积分:1
  • Dchaos-predica
    基于混沌理论进行数据预测的程序,欢欢迎需要的朋友参考下载,并提出修改意见 (, Please feel welcome the reference to a friend download data to predict the process based on chaos theory, and suggest modifications)
    2012-07-27 12:40:49下载
    积分:1
  • lyapunov--exponent
    用流体计算李指数的。是用excel中的vba做的小程序。(calculated the lyapunov exponent)
    2012-09-03 13:59:10下载
    积分:1
  • Program
    矩阵转换问题 行与列的个数均为n 的矩阵称为n 阶方阵。假定矩阵中的每个元素的值在0到9之间,则可以将矩阵中的所有元素按行依次排列得到一个“单行矩阵字符串”。(Matrix conversion, the number of rows and columns of the matrix n are called n-order square. Assume that each element of matrix value in the 0 to 9, you can press all the elements of the matrix rows in order of priority for a " single matrix string." )
    2010-12-28 11:42:08下载
    积分:1
  • duoxiangshi
    计算方法程序:多项式拟合(Calculation procedure: Polynomial Fitting)
    2008-05-01 14:42:31下载
    积分:1
  • FFT
    提供函数能进行1维2维的FFT,输入输出的序列长度应为2的整数次方倍(Provides functions can be one-dimensional two-dimensional FFT, sequence length input and output should be an integer power of 2 times)
    2014-01-07 22:10:34下载
    积分:1
  • 696518资源总数
  • 105243会员总数
  • 13今日下载