Changes between Version 1 and Version 2 of CodeExplanation/SourceTerms


Ignore:
Timestamp:
12/21/11 13:07:51 (13 years ago)
Author:
Jonathan
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • CodeExplanation/SourceTerms

    v1 v2  
     1Source terms in AstroBEAR.  All source terms are currently handled in a strang split way.  That is - each hydro advance step is bracketed by two source steps of a half time step.  Out of curiosity I browsed the athena source code to see how their CTU implementation handles source terms (since I couldn't find it in their CTU paper)
     2
     31D CTU
     4Reconstruct left and right states (wr,wl)
     5Add gradphi to normal velocity components at interface states
     6wr(i)+=phi(i)-phi(i-1)
     7wl(i)+=phi(i)-phi(i-1)
     8Add other source terms using the reconstructed left and right states wl+=s(wl)
     9wr+=s(wr)
     10get fluxes
     11calculate cell centered time centered values of density and pressure using fluxes
     12update cell centered time centered values with source terms just as for interface states (using original cell centered values for density etc)
     13
     14
     15
     16
     17
     18
    119{{{ #!latex
    220{\bfseries{\Large Source Terms }}