Changes between Version 3 and Version 4 of u/erica/2D_Godunov


Ignore:
Timestamp:
07/29/13 13:20:57 (11 years ago)
Author:
Erica Kaminski
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • u/erica/2D_Godunov

    v3 v4  
    2525[[latex($\frac{\partial }{\partial t} \begin{pmatrix} \rho \\ \rho v \\ E \\ \rho u \end{pmatrix} + \frac{\partial }{\partial y} \begin{pmatrix} \rho v \\ \rho v^2 + p \\ v(E+p) \\ \rho u v \end{pmatrix} = 0$)]]
    2626
     27Note that the first 3 equations of these IVPs are just the 1D problem we have solved before. The difference is 1) the extra momentum equation, and 2) the presence of the tangential velocity components that factor into E.
    2728
     29Now, the 2 IVPs are solved on the grid independently. First the grid is sweeped in the x-direction, where it goes cell by cell on a given row and solves the IVP given by the x-split equation above + the initial condition prescribed for the ''mesh''. Once a row is is traversed, the next is traversed, until all of the grid has been solved in the x-split direction. This, by the way, is done the "normal" way-- using the Godunov conservative update formula in conjunction with the exact Riemann solver.
    2830
     31The solution data for the x-split mesh is then stored in a 2D array, and used as the initial condition for the y-direction sweep. The sweep proceeds as above, this time moving cell by cell along a given column solving the IVP given by the y-split Euler equations above (and initial condition that is the SOLUTION to the previous x-split sweep). Once a column is traversed, the next is followed up until the entire grid is sweeped. The solution to this last sweep is the solution to the full IVP (evolved to t+dt).
     32
     33This process repeats for as many dt's needed to get to the final time of the simulation. Note, the dt is the SAME for both the x- and y-sweeps.
     34
     35The method of choosing the best dt is described in Toro, chapter 16.
    2936
    3037= Upsides / Downsides =
     
    3340
    3441The downside is: 1) not higher order (if wanted to add this - code could become quite complex to take into account the addition of shears into the TVD algorithms)
     42
     43= Download the code here =
     44
     45= Results for cylindrical explosion =