Changes between Version 28 and Version 29 of AstroBearProjects/resistiveMHD


Ignore:
Timestamp:
01/28/13 01:06:10 (12 years ago)
Author:
Shule Li
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • AstroBearProjects/resistiveMHD

    v28 v29  
    9696The resistive time scale is explicitly calculated by: [[BR]]
    9797[[latex(dt_{resistive} = \frac{c dx}{\eta})]] [[BR]]
    98 where c is the cfl number (set to be 0.5 in the code). To change the cfl number, the following line of code can be modified: [[BR]]
    99 {{{
    100     explicit_maxspeed(level) = max(explicit_maxspeed(level),2d0*resistivity/dx)
    101 }}}
    102 where 2d0 can be replaced by any value above 1 (for example, putting this number to 5d0 will reduce the cfl to 0.2).[[BR]]
     98where c is the cfl number (set to be 0.5 in the code).[[BR]][[BR]]
    10399
    104100'''Resistivity Test Problems'''[[BR]][[BR]]
     
    193189}}}
    194190The F function gets calculated automatically via and is a global const. If ResType = 3, The microphysical resistivity automatically scales with the input scaling parameter.[[BR]]
     191To change the cfl number in order to adopt a different resistive time step, the following line of code in the resistive module can be modified: [[BR]]
     192{{{
     193    explicit_maxspeed(level) = max(explicit_maxspeed(level),2d0*resistivity/dx)
     194}}}
     195where 2d0 can be replaced by any value above 1 (for example, putting this number to 5d0 will reduce the cfl to 0.2).[[BR]]