登录
首页 » Visual C++ » Euler_DG_Quadrilateral_2D

Euler_DG_Quadrilateral_2D

于 2021-01-29 发布 文件大小:46KB
0 373
下载积分: 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 个回复

  • MM1
    用C++实现排队论中M/M/1模型。简单方便。(Using C++ implementation in the M/M/1 queuing theory model. Easy and convenient.)
    2020-11-16 13:39:41下载
    积分:1
  • shiyan4
    若矩阵A中的某一元素A[i,j]是第i行中的最小值,而又是第j列中的最大值,则称A[i,j]为矩阵A中的一个鞍点。请写出一个可确定此鞍点位置的算法(如果这个鞍点存在)。(If the matrix A, an element A [i, j] is the minimum value in the i-th row, but is the maximum value of the j-th column, then A [i, j] for the matrix A is a saddle point. Please write a algorithm to determine the position of saddle point (saddle point exists).)
    2013-01-07 13:16:11下载
    积分:1
  • GEAR
    吉尔算法积分一阶微分方程组初值问题的C语言描述,包括主函数、计算微分方程组中各方程右端函数值的函数程序、计算雅克比矩阵的函数程序、矩阵求逆程序等。(GEAR algorithm integral first order differential equations initial value problem of the C language description, including the main function to calculate the differential equations in the equation right function value function procedures, functions Jacobian matrix calculation procedures, matrix inversion procedures.)
    2021-03-08 11:29:28下载
    积分:1
  • gcmjjs
    这是考虑了高程的面积计算公式,VB编的程序,运行即可(This is the old area of the elevation calculation formula, the program can be run VB series)
    2012-05-06 14:53:06下载
    积分:1
  • Adams-RK
    经典R-K法,通过它可以计算一些简单的常微分方程的数值解(Classical RK method, which can be calculated by simple numerical solution of ordinary differential equations)
    2010-12-30 14:09:37下载
    积分:1
  • kalmanfileter_c-code
    外国人写的卡尔曼滤波器算法的库,可以供大家参考,已经封装好了(kalman library)
    2012-04-24 10:46:44下载
    积分:1
  • EedffazipD
    EDFA的掺铒光纤长度模拟计算,附3篇相关论文,330mw的980nm泵泵浦,3db的泵浦吸收,12m最佳长度已经的到验证,可作为EDFA设计参考 (EDFA erbium-doped fiber length simulation of three related papers, 330mw of 980nm pump pump pump 3db absorption 12m optimum length has been to verify, can be used as the EDFA design reference)
    2012-08-05 18:09:17下载
    积分:1
  • catch
    用于求解线性方程组的追赶法!!!程序经过优化处理,运行速度快,且注释完全易于阅读,欢迎大家下载!!(Solving linear equations for the law to catch up! ! ! Optimized procedures to deal with, fast, and completely easy-to-read notes, welcome you to download! !)
    2009-05-16 11:56:39下载
    积分:1
  • Gauss
    这是用C++编写的 用高斯方法求解方程的方法 我想对与计算机数学的同学来说 可能会有用(It is written with C++ method for solving equations using Gaussian approach I want to mathematics and computer may be useful for the students)
    2013-07-02 11:10:51下载
    积分:1
  • Aximn
    说明:  fortran弹塑性分析程序,很有用的啊!(fortran plastic analysis program, very useful)
    2021-04-15 19:48:54下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载