TVD: Total Variation Diminishing code

Discussion topics for individual codes
Post Reply
User avatar
Guardian of the Codes
Posts: 1122
Joined: Wed Aug 04, 2004 4:18 pm
Location: Washington, DC

TVD: Total Variation Diminishing code

Post by owlice » Thu Apr 25, 2013 11:49 am

[c]TVD: Total Variation Diminishing code[/c][/b]
Abstract: TVD solves the magnetohydrodynamic (MHD) equations by updating the fluid variables along each direction using the flux-conservative, second-order, total variation diminishing (TVD), upwind scheme of Jin & Xin. The magnetic field is updated separately in two-dimensional advection-constraint steps. The electromotive force (EMF) is computed in the advection step using the TVD scheme, and this same EMF is used immediately in the constraint step in order to preserve ∇˙B=0 without the need to store intermediate fluxes. The code is extended to three dimensions using operator splitting, and Runge-Kutta is used to get second-order accuracy in time. TVD offers high-resolution per grid cell, second-order accuracy in space and time, and enforcement of the ∇˙B=0 constraint to machine precision. Written in Fortran, It has no memory overhead and is fast. It is also available in a fully scalable message-passing parallel MPI implementation.

Credit: Pen, Ue-Li; Arras, Phil; Wong, ShingKwong


Bibcode: 2013ascl.soft04015P

ID: ascl:1304.015
Last edited by Ada Coda on Sun Jan 13, 2019 8:36 pm, edited 1 time in total.
Reason: Updated code entry.
Code-seeking owl at your service

Post Reply