[FLASH-USERS] problem MHD Simulation_init and Simulation_initBlock

Petros Tzeferacos petros.tzeferacos at flash.uchicago.edu
Tue Feb 3 20:49:25 EST 2015


Dear Ivanildo,

yes, in general new problems require setting up the initial conditions in
files such as Simulation_initBlock and Simulation_init. A good place to
start is here:

http://flash.uchicago.edu/site/flashcode/user_support/flash4_ug_4p22/node6.html

Best of luck with your simulations!
-- Petros


On Tue, Feb 3, 2015 at 1:39 PM, ivanildo amorim lima <
ivanildouaustm at hotmail.com> wrote:

> Hello Flash users
> I implemented a problem in flash about mhd (Annex Torrilhon) from BrioWu
> files.. I thought I had to just change the *flash.par* and *config.par*
> files, however the graphics only converged to the exact solution when I
> made the following changes (in bold) :
>
>
> *Simulation_init Line 93-98*
> elseif (NDIM .eq. 2) then
>      !sim_ycos = sqrt(1. - sim_xcos*sim_xcos) ! *CONFIG ORIGINAL*
>      !sim_zcos = 0.! *CONFIG ORIGINAL*
>      *sim_ycos =0.  *
> *     sim_zcos = 1.*
>
>
> *Simulation_initBlock Line 141-146*
> !Initialize cells to the left of the initial shock.
>            if (xxR .le. lposn) then
>               solnData(DENS_VAR,i,j,k)  = sim_rhoLeft
>               solnData(PRES_VAR,i,j,k)  = sim_pLeft
>               solnData(VELX_VAR,i,j,k)  = sim_uLeft * sim_xcos
>             solnData(VELY_VAR,i,j,k)  = sim_vLeft  * sim_ycos ! *CONFIG
> ORIGINAL*
>               *solnData(VELY_VAR,i,j,k)  = sim_vLeft*
>               solnData(VELZ_VAR,i,j,k)  = sim_wLeft * sim_zcos
>
>
>
> Someone had any problems like that? It is normal to have to change the
> configuration in simulation_init and simulation_initblock files to
> implement new problems?
>
> This may be a bug in Flash?
>
>
>
>
>
>
>
>
>
>
>


-- 
/* ************************************************* *
     Petros Tzeferacos, PhD

     Research Scientist,
     Associate Director & Code Group Leader,
     Flash Center for Computational Science,
     Department of Astronomy & Astrophysics,
     University of Chicago.
     5747 S. Ellis Ave, Jones Lab. room 317
     Chicago, IL 60637
     Tel. 773-834-3236
     petros.tzeferacos at flash.uchicago.edu
 * ************************************************* */
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20150203/07defd50/attachment.htm>


More information about the flash-users mailing list