Changes between Version 28 and Version 29 of AstroBearProjects/resistiveMHD
 Timestamp:
 01/28/13 01:06:10 (12 years ago)
Legend:
 Unmodified
 Added
 Removed
 Modified

AstroBearProjects/resistiveMHD
v28 v29 96 96 The resistive time scale is explicitly calculated by: [[BR]] 97 97 [[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]] 98 where c is the cfl number (set to be 0.5 in the code).[[BR]][[BR]] 103 99 104 100 '''Resistivity Test Problems'''[[BR]][[BR]] … … 193 189 }}} 194 190 The 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]] 191 To 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 }}} 195 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]]