Title:
Euler_RKDG_Tri_3node_20111107 Download
Description: Send a written discontinuous finite element program--- for solving two-dimensional Euler equations
The attachment is a C language program I wrote it myself. Discontinuous finite element method for solving two-dimensional Euler equations.
Example is the flow around a cylinder. Zip file which also contains the mesh generation process to write a MATLAB
Sequence, just do small changes can generate sparse different grid.
The program also some problems as follows:
Because there is no boundary, so the residuals of the calculation will not converge to a given decimal, such as
0.001 and so on. When the maximum residual is about 0.1, press the ESC key on the keyboard, the program calculates the end, will output
A file Result.dat, the use tecplot software to open this file, you can get some results, such as flow lines
And so on. Because the result does not converge, there will be two in the back of the cylinder vortices appear, if the calculation of longer, there will be
Th
To Search:
File list (Check if you may need any files):
Euler_RKDG_Tri_3node_20111107\Euler_RKDG_Tri_3node_MainFile.cpp
.............................\Outside_Node.txt
.............................\Element_Node.txt
.............................\Node_Coordinate.txt
.............................\DphiDx.cpp
.............................\Inside_Node.txt
.............................\f_RungeKutta.cpp
.............................\Function.cpp
.............................\DwDxy.cpp
.............................\ElementInitialization.cpp
.............................\LengthNormalS.cpp
.............................\pre_RungeKutta.cpp
.............................\Result.cpp
.............................\SpectralRadius.cpp
.............................\ProgramInitialization.cpp
.............................\RungeKutta.cpp
.............................\MainFile_Euler_RKDG_Tri_3node.cpp
.............................\Euler_RKDG_Tri_3node.h
.............................\GridData.cpp
.............................\SpectralRadiusMax.cpp
.............................\TriGrid.m
.............................\TimeStep.cpp
Euler_RKDG_Tri_3node_20111107