Changes between Version 41 and Version 42 of ModulesOnAstroBear


Ignore:
Timestamp:
01/24/13 10:16:26 (12 years ago)
Author:
Baowei Liu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • ModulesOnAstroBear

    v41 v42  
    287287            Info%q(i,j,k,irho) = 1d0
    288288            Info%q(i,j,k,ivx)=10d0
     289            IF (iE /= 0) Info%q(i,j,k, iE)=gamma7+50d0
    289290            IF (ivy /= 0) Info%q(1:Info%mX(1),1:Info%mX(2),1:Info%mX(3), ivy)=0d0
    290291            IF (ivz /= 0) Info%q(1:Info%mX(1),1:Info%mX(2),1:Info%mX(3), ivz)=0d0
    291             IF (iE /= 0) Info%q(1:Info%mX(1),1:Info%mX(2),1:Info%mX(3), iE)=gamma7+50d0
    292292          END IF                 
    293293        END DO
     
    367367            Info%q(i,j,k,irho) = 1d0
    368368            Info%q(i,j,k,ivx)=velocity
     369            IF (iE /= 0) Info%q(i,j,k, iE)=gamma7+half*velocity**2
    369370            IF (ivy /= 0) Info%q(1:Info%mX(1),1:Info%mX(2),1:Info%mX(3), ivy)=0d0
    370371            IF (ivz /= 0) Info%q(1:Info%mX(1),1:Info%mX(2),1:Info%mX(3), ivz)=0d0
    371             IF (iE /= 0) Info%q(1:Info%mX(1),1:Info%mX(2),1:Info%mX(3), iE)=gamma7+half*velocity**2
    372372          END IF                 
    373373        END DO
     
    466466If we want to get more complicated - we can modify other clump/wind/ambient attributes.  All of the available (and default) options for the various objects should be documented on the AstroBearObjects page.
    467467
     468To try the problem module we just built, we can copy the data files from {{{$(ASTROBEAR)/modules/Template}}} directory to the current problem directory {{{$(ASTROBEAR)/modules/Problem}}} and add these three lines to problem.data
     469{{{
     470&ProblemData
     471rho = 10.0
     472radius = 1.0
     473velocity = 10.0
     474/
     475}}}
     476
     477If we follow the procedure [BuildingAstroBear#SettingupandCompilingaProblem "Setting up and Compiling A Problem"] to try to compile and run our new problem module. If you set the dimensions and final time in global.data as
     478{{{
     479nDim     = 2                ! number of dimensions for this problem (1-3)
     480GmX      = 30,30,1          ! Base grid resolution [x,y,z]
     481MaxLevel = 0                        ! Maximum level for this simulation (0 is fixed grid)
     482}}}
     483
     484and
     485{{{
     486final_time        = 15d-1               ! The final time in computational units.
     487final_frame       = 20              ! The final frame [10]
     488}}}
     489
     490and follow [BuildingAstroBear#RunningAstroBear "First Run"] to run it.  Following Chapter 2 to use VisIT to analyze the results, we can get a movie like this [http://www.pas.rochester.edu/~bliu/ProblemModule/ClumpOBJ.mpeg ClumpMovie][[BR]]
    468491
    469492