Changes between Version 19 and Version 20 of AccretionDiskTutorial


Ignore:
Timestamp:
08/29/12 11:40:57 (12 years ago)
Author:
idilernia
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • AccretionDiskTutorial

    v19 v20  
    3131- Height: the height of the disk
    3232- Ambient: the blue portion of the plot, it represents the area around the disk
    33 - !PointGravity: a point mass located at the center of the disk
     33- !PointGravity: a point mass located at the center of the disk, not visible in this picture
    3434
    3535'''Note''': Numerical values reported by Visit are in computational units, ''scales.data'' contains the scales values needed to translate computational units to physical units.
     
    4040The default problem.data file contains a list of initial conditions that can be changed depending on the user's needs, let's analyze some of them
    4141
    42 || ddensity=1d0       || disk density ||
    43 || adensity=0.001d0   ||ambient density||
    44 || dtemp=1d4          ||disk temperature||
    45 || atemp=6d6          ||ambient temperature||
    46 || radius=2e10        ||disk radius||
    47 || height=5e9         ||disk height||
    48 || mass=.6d-1         ||central particle mass||
     42|| ddensity=1d0       || disk density (g/cc or particles/cc)||
     43|| adensity=0.001d0   ||ambient density (g/cc or particles/cc)||
     44|| dtemp=1d4          ||disk temperature (K)||
     45|| atemp=6d6          ||ambient temperature (K)||
     46|| radius=2e10        ||disk radius (cm)||
     47|| height=5e9         ||disk height (cm)||
     48|| mass=.6d-1         ||central particle mass (g)||
    4949
    5050'''Note:''' for this specific module, problem.data no scaling operation is required from the user
     
    6161
    6262[[CollapsibleStart(Setting pressure)]]
    63 hello
     63By default, the accretion disk module lets you set the temperature for a problem, however, in the case you want to set pressure there are two options:
     64- Use of the equation of state to calculate temperature depending on pressure and density
     65- Manual modification of problem.f90 to initialize the problem using pressure parameters
     66
     67For the second option, it may be sufficient to examine a few lines of ''!ProblemModuleInit'' contained in problem.f90:
     68
     69{{{
     70Ambient%pressure= adensity*atemp/rScale/TempScale !cu
     71}}}
     72
     73the line above sets up the ambient pressure depending of density and temperature set in ''problem.data'', if we change it to
     74
     75{{{
     76Ambient%pressure= atemp/pScale
     77}}}
     78
     79the value contained in ''atemp'' will be interpreted as the pressure in physical units.[[BR]]
     80'''Note:''' If are considering to make this change in the code, you are strongly advised to change variable names to avoid misleading nomenclature.
    6481
    6582[[CollapsibleEnd]]
     
    7996}}}
    8097
    81 In the values listed above the disk radius is set to 2e10cm, with that, we set our length scale parameter (lScale) to be .5e10cm[[BR]]
    82 the resulting ratio R,,disk,,/lScale is 4.[[BR]]
     98'''Density scale'''[[BR]]
     99There are two options to set a density scale, you can choose either one:[[BR]]
     100- ''nScale'' in particles/cc
     101- ''rScale'' in g/cc
     102
     103'''Length scale'''[[BR]][[BR]]
     104In the values listed above the disk radius is set to 2e10cm, with that, we set our length scale parameter (lScale) to be .5e10cm:[[BR]]
     105the resulting ratio R,,disk,,/lScale is '''4'''.[[BR]][[BR]]
    83106For convenience purposes, a rule of thumb is to keep the R,,disk,,/lScale within about one order of magnitude from the value above:[[BR]]
    84 for example, if we had 2e15 as R,,disk,, a good lScale would be .5e15 or 1e15.
     107for example, if we had 2e15 as R,,disk,, an ideal lScale would be .5e15 or 1e15.
    85108
    86109'''Warning:''' Always make sure to check ''physics.data'' for