| 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)|| |
| 63 | | hello |
| | 63 | By 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 | |
| | 67 | For the second option, it may be sufficient to examine a few lines of ''!ProblemModuleInit'' contained in problem.f90: |
| | 68 | |
| | 69 | {{{ |
| | 70 | Ambient%pressure= adensity*atemp/rScale/TempScale !cu |
| | 71 | }}} |
| | 72 | |
| | 73 | the line above sets up the ambient pressure depending of density and temperature set in ''problem.data'', if we change it to |
| | 74 | |
| | 75 | {{{ |
| | 76 | Ambient%pressure= atemp/pScale |
| | 77 | }}} |
| | 78 | |
| | 79 | the 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. |
| 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]] |
| | 99 | There 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]] |
| | 104 | 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]] |
| | 105 | the resulting ratio R,,disk,,/lScale is '''4'''.[[BR]][[BR]] |