ascl_id
stringclasses
752 values
repo_url
stringclasses
737 values
file_path
stringlengths
4
194
content
large_stringlengths
1
1M
language
stringclasses
29 values
license_type
stringclasses
24 values
size
int64
1
1M
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
rt/rt_spectra.f90
! These are modules for reading, integrating and interpolating RT-relevant ! values from spectral tables, specifically SED (spectral energy ! distrbution) tables for stellar particle sources, as functions of age ! and metallicity, and UV-spectrum tables, as functions of redshift. ! The modules are: ! spectrum_integrato...
Fortran
null
71,967
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
rt/rt_init_xion.f90
!XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX SUBROUTINE rt_init_xion(ilevel) ! Initialize hydrogen ionization state in all cells at given level from ! density and temperature in the cells, assuming chemical equilibrium. !--------------------------------------------------------------------...
Fortran
null
9,763
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
rt/rt_init.f90
!************************************************************************* SUBROUTINE rt_init ! Initialize everything for radiative transfer ! Some initialisation is also needed in case of non-equilibrium ! chemistry, even if rt=.false. !------------------------------------------------------------------------- us...
Fortran
null
24,623
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
rt/rt_flux_module.f90
MODULE rt_flux_module use rt_parameters implicit none private ! default public read_hll_eigenvalues, cmp_rt_faces CONTAINS !************************************************************************ SUBROUTINE read_hll_eigenvalues() ! Read M1 eigenvalues for hll method from file 'hll_evals.list' ! into ...
Fortran
null
15,191
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
rt/rt_interpol_hydro.f90
!************************************************************************ SUBROUTINE rt_upload_fine(ilevel) ! This routine performs a restriction operation (averaging down) ! for the RT variables. !------------------------------------------------------------------------ use amr_commons use rt_hydro_commons implic...
Fortran
null
5,025
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
rt/rt_hydro_commons.f90
module rt_hydro_commons use amr_parameters use rt_parameters real(dp),allocatable,dimension(:,:)::rtuold,rtunew ! State vector and its update end module rt_hydro_commons
Fortran
null
177
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
rt/rt_init_hydro.f90
!************************************************************************* subroutine rt_init_hydro ! Allocate rt variables, initialise for RT or non-equilibrium chemistry, ! initialise ionisation states if needed, and read rt vars if restarting. !---------------------------------------------------------------------...
Fortran
null
5,005
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
rt/rt_parameters.f90
module rt_parameters use hydro_parameters use constants #ifdef NGROUPS integer,parameter::nGroups=NGROUPS ! # of photon groups (set in Makefile) #else integer,parameter::nGroups=1 #endif integer,parameter::nRTvar=nGroups*(1+ndim) ! # of RT variables (photon density and flux) real(dp)::rt_c=0., rt...
Fortran
null
10,014
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
rt/rt_init_flow_fine.f90
!################################################################ !################################################################ !################################################################ !################################################################ subroutine rt_init_flow use amr_commons use rt_hydro...
Fortran
null
14,530
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
rt/rt_cooling_module.f90
! Non-equlibrium (in H2, HI, HII, HeI, HeII, HeIII) ! cooling module for radiation-hydrodynamics. ! For details, see Rosdahl et al. (2013), Rosdahl & Teyssier (2015), ! and Nickerson, Teyssier, & Rosdahl (2018). ! Joki Rosdahl, Sarah Nickerson, Andreas Bleuler, and Romain Teyssier. module rt_cooling_module use cooli...
Fortran
null
67,073
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
rt/rt_condinit.f90
!================================================================ !================================================================ !================================================================ !================================================================ subroutine rt_condinit(x,u,dx,nn) use amr_parameters ...
Fortran
null
1,268
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
rt/rt_hydro_flag.f90
! RT patch: Only change here is to possibly do refinement if rt_err_grad_n ! or rt_err_grad_xH namelist parameters are set ! ________________________________________________________________________ subroutine rt_hydro_flag(ilevel) use amr_commons use rt_hydro_commons implicit none integer::ilevel !...
Fortran
null
3,889
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
rt/rt_godunov_fine.f90
!************************************************************************ SUBROUTINE rt_godunov_fine(ilevel, dt) ! This routine is a wrapper to the grid solver for radiative transfer. ! Small grids (2x2x2) are gathered from level ilevel and sent to the ! RT solver. On entry, RT variables are gathered from array rtuold...
Fortran
null
18,347
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
rt/rt_boundana.f90
!############################################################ !############################################################ !############################################################ !############################################################ subroutine rt_boundana(x,u,dx,ibound,ncell) use amr_parameters, ONLY: ...
Fortran
null
1,433
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
rt/rt_hydro_boundary.f90
!################################################################ !################################################################ !################################################################ !################################################################ subroutine rt_make_boundary_hydro(ilevel) use amr_comm...
Fortran
null
6,554
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
rt/rt_output_hydro.f90
! Outputting of radiation variables and groups info ! !************************************************************************ subroutine rt_backup_hydro(filename, filename_desc) !------------------------------------------------------------------------ use amr_commons use rt_hydro_commons use rt_parameters u...
Fortran
null
10,827
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
rt/utils/generate_coolrates.f90
!************************************************************************ PROGRAM generate_coolrates ! Generate files containing tables of cooling and heating rates in ! the implicit cooling-module of RAMSES, to verify they are correct. !------------------------------------------------------------------------ use rt...
Fortran
null
2,989
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
rhd/update_time.f90
subroutine update_time(ilevel) use amr_commons use pm_commons use hydro_commons use cooling_module use mpi_mod implicit none integer::ilevel real(dp)::dt,econs,mcons,ttend,momcons real(dp),save::ttstart=0 integer::i,itest,info ! Local constants dt=dtnew(ilevel) itest=0 #ifndef WITHOUTMPI ...
Fortran
null
4,488
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
rhd/condinit.f90
!================================================================ !================================================================ !================================================================ !================================================================ subroutine condinit(x,u,dx,nn) use amr_parameters u...
Fortran
null
2,284
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
rhd/adaptive_loop.f90
subroutine adaptive_loop use amr_commons use hydro_commons use pm_commons use poisson_commons use cooling_module use mpi_mod implicit none integer::ilevel,idim,ivar,info,i real(dp)::tt1,tt2 #ifndef WITHOUTMPI tt1=MPI_WTIME() #endif call init_amr ! Initialize AMR variables ...
Fortran
null
3,256
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
rhd/hydro_flag.f90
subroutine hydro_flag(ilevel) use amr_commons use hydro_commons implicit none integer::ilevel ! ------------------------------------------------------------------- ! This routine flag for refinement cells that satisfies ! some user-defined physical criteria at the level ilevel. ! -----------------------...
Fortran
null
5,986
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
rhd/umuscl.f90
! --------------------------------------------------------------- ! UNSPLIT Unsplit second order Godunov integrator for ! polytropic relativistic gas dynamics using MUSCL-HANCOCK with ! hll and hllc riemann solver ! with various slope limiters (moncen crashes for the moment)...
Fortran
null
59,372
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
rhd/write_screen.f90
subroutine write_screen use amr_commons use hydro_commons use pm_commons use mpi_mod implicit none ! integer::igrid,jgrid,ind,icpu,info integer::i,icell,ncell,ilevel,ncache integer::icellmin,nx_loc real(dp)::dx,scale,smallp,ddd,ppp integer ,dimension(:),allocatable::ind_grid,ind_cell,ind_sort...
Fortran
null
9,363
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
rhd/uplmde.f90
!########################################################### !########################################################### !########################################################### !########################################################### subroutine tracex(q,dq,c, qm,qp,dx,dt,ngrid) use amr_parameters use hydr...
Fortran
null
23,325
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
rhd/init_hydro.f90
subroutine init_hydro use amr_commons use hydro_commons use mpi_mod implicit none integer::ncell,ncache,iskip,igrid,i,ilevel,ind,ivar integer::nvar2,ilevel2,numbl2,ilun,ibound,istart,info integer::ncpu2,ndim2,nlevelmax2,nboundary2 integer ,dimension(:),allocatable::ind_grid real(dp),dimension(:),alloc...
Fortran
null
4,820
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
rhd/godunov_utils.f90
!########################################################### !########################################################### !########################################################### !########################################################### subroutine cmpdt(uu,gg,dx,dt,ncell) use amr_parameters use hydro_parame...
Fortran
null
18,534
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
rhd/output_hydro.f90
subroutine backup_hydro(filename) use amr_commons use hydro_commons implicit none character(LEN=80)::filename integer::i,ivar,ncache,ind,ilevel,igrid,iskip,ilun,istart,ibound integer,allocatable,dimension(:)::ind_grid real(dp),allocatable,dimension(:)::xdp real(dp),allocatable,dimension(:,:)::qq ! prim...
Fortran
null
4,961
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
rhd/courant_fine.f90
subroutine courant_fine(ilevel) use amr_commons use hydro_commons use poisson_commons use mpi_mod implicit none integer::ilevel !---------------------------------------------------------------------- ! Using the Courant-Friedrich-Levy stability condition, ! ! this routine computes the ma...
Fortran
null
4,130
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
rhd/init_flow_fine.f90
!################################################################ !################################################################ !################################################################ !################################################################ subroutine init_flow use amr_commons use hydro_commo...
Fortran
null
16,849
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
rhd/interpol_hydro.f90
!########################################################### !########################################################### !########################################################### !########################################################### subroutine upload_fine(ilevel) use amr_commons use hydro_commons impli...
Fortran
null
18,828
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
rhd/hydro_parameters.f90
module hydro_parameters use amr_parameters ! Number of independant variables #ifndef NENER integer,parameter::nener=0 #else integer,parameter::nener=NENER #endif #ifndef NVAR integer,parameter::nvar=5 #else integer,parameter::nvar=NVAR #endif ! Size of hydro kernel integer,parameter::iu1=-1 integer,p...
Fortran
null
2,411
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
rhd/hydro_commons.f90
module hydro_commons use amr_parameters use hydro_parameters real(dp),allocatable,dimension(:,:)::uold,unew ! State vector and its update real(dp),allocatable,dimension(:)::pstarold,pstarnew ! Stellar momentum and its update real(dp),allocatable,dimension(:)::divu,enew ! Non conservative variables real(dp),...
Fortran
null
921
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
rhd/read_hydro_params.f90
subroutine read_hydro_params(nml_ok) use amr_commons use hydro_commons use mpi_mod implicit none logical::nml_ok !-------------------------------------------------- ! Local variables !-------------------------------------------------- integer::i,idim,nboundary_true=0 integer ,dimension(1:MAXBOUND)::...
Fortran
null
8,565
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
rhd/test_suite/2D_blast_wave/condinit.f90
!================================================================ !================================================================ !================================================================ !================================================================ subroutine condinit(x,u,dx,nn) use amr_parameters us...
Fortran
null
2,507
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
rhd/test_suite/jet/condinit.f90
!================================================================ !================================================================ !================================================================ !================================================================ subroutine condinit(x,u,dx,nn) use amr_parameters us...
Fortran
null
2,410
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
rhd/test_suite/jet/boundana.f90
!############################################################ !############################################################ !############################################################ !############################################################ subroutine boundana(x,u,dx,ibound,ncell) use amr_parameters, ONLY: dp,...
Fortran
null
2,129
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
rhd/test_suite/jet/read_hydro_params.f90
subroutine read_hydro_params(nml_ok) use amr_commons use hydro_commons use mpi_mod implicit none logical::nml_ok !-------------------------------------------------- ! Local variables !-------------------------------------------------- integer::i,idim,nboundary_true=0 integer ,dimension(1:MAXBOUND)::...
Fortran
null
8,586
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
rhd/test_suite/jet/hydro_boundary.f90
!################################################################ !################################################################ !################################################################ !################################################################ subroutine make_boundary_hydro(ilevel) use amr_commons...
Fortran
null
7,694
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
rhd/test_suite/3D_blast_wave/condinit.f90
!================================================================ !================================================================ !================================================================ !================================================================ subroutine condinit(x,u,dx,nn) use amr_parameters us...
Fortran
null
2,545
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
turb/read_turb_fields.f90
#if USE_TURB==1 subroutine read_turb_fields use turb_commons implicit none integer :: ilun, nturbtemp_tmp character(LEN=256) :: filedir logical :: ok character(LEN=5) :: nchar character(len=16) :: precision_str_tmp real(dp) :: aux character(len=17) :: turb...
Fortran
null
1,806
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
turb/turb_commons.f90
#if USE_TURB==1 module turb_commons use amr_commons use turb_parameters real(dp), allocatable :: fturb(:,:) ! Turbulent force complex(cdp), allocatable :: turb_last(:,:,:,:) ! Turbulent spectrum at time = t complex(cdp), allocatable :: turb_next(:,:,:,:) ! Turbulent spectrum at time = t + d...
Fortran
null
1,564
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
turb/turb_check_time.f90
#if USE_TURB==1 subroutine turb_check_time use amr_commons use turb_commons implicit none real(kind=dp) :: turb_last_tfrac ! Time fraction since last real(kind=dp) :: turb_next_tfrac ! Time fraction until next if (turb_type == 3) then ! decaying turbulence afield_now = 0.0_...
Fortran
null
1,117
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
turb/read_turb_params.f90
#if USE_TURB==1 subroutine read_turb_params(nml_ok) use amr_commons use turb_commons implicit none logical, intent(inout) ::nml_ok !-------------------------------------------------- ! Namelist definitions !-------------------------------------------------- namelist/turb_params/turb, turb_seed, turb_ty...
Fortran
null
1,613
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
turb/turb_force_utils.f90
#if USE_TURB==1 ! TURB_FORCE_UTILS.F90 ! A.McLeod - 24/11/2012 ! Utility routines for turbulent forcing ! ============================================================================ #if NDIM==3 #define HERMITIAN_FIELD 1 #endif #ifdef NPRE #if !(NPRE==4) #define DOUBLE_PRECISION 1 #endif #endif #define PI 3.14159265...
Fortran
null
24,900
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
turb/mpi_share_turb_fields.f90
#if USE_TURB==1 ! MPI_SHARE_TURB_FIELDS.F90 ! A.McLeod - 24/11/2012 ! Share turbulent acceleration fields to non-root tasks ! ============================================================================ #ifndef WITHOUTMPI subroutine mpi_share_turb_fields(include_last) use turb_commons use mpi_mod implicit none ...
Fortran
null
1,366
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
turb/turb_parameters.f90
#if USE_TURB==1 module turb_parameters use amr_parameters integer, parameter :: ILP = selected_int_kind(r=15) ! integer long precision ! Precision string #ifndef NPRE integer,parameter::cdp=kind((1.0E0, 1.0E0)) ! default character(len=16), parameter :: precision_str='SINGLE_PRECISION' #else #if NPRE==4 i...
Fortran
null
2,191
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
turb/turb_next_field.f90
#if USE_TURB==1 ! TURB_NEXT_FIELD.F90 ! A.McLeod - 24/11/2012 ! Generate next turbulent field ! ============================================================================ subroutine turb_next_field use turb_commons implicit none ! Set turbulent field times turb_last_time = turb_next_time turb_next_tim...
Fortran
null
884
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
turb/write_turb_fields.f90
#if USE_TURB==1 subroutine write_turb_fields(output_dir) use turb_commons implicit none integer :: ilun ! File I/O unit character(len=*), intent(in) :: output_dir ! Output directory character(len=8) :: file_ext ! String version of nturbtemp character(len=50...
Fortran
null
2,358
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
turb/init_turb.f90
#if USE_TURB==1 subroutine init_turb use turb_commons implicit none !-------------------------------------------------- ! Local variables !-------------------------------------------------- integer :: i, j, k ! Loop variables integer :: k_vec(1:3) ! Wavevector ...
Fortran
null
7,086
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
turb/add_turb_forcing.f90
#if USE_TURB==1 subroutine calc_turb_forcing(ilevel) use amr_commons use hydro_commons use turb_commons implicit none integer::ilevel !------------------------------------------------------------------- ! Calculate forcing from turbulent accelerations ! Similar to analytical gravity in force_fine !---...
Fortran
null
2,825
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
tests/build.default.sh
#!/bin/bash cd bin make NDIM=3 MPI=1 DEBUG=1
Shell
null
46
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
tests/run_test_suite.sh
#!/bin/bash ####################################################################### # # Script to run the RAMSES test suite # # Neil Vaytet (ENS Lyon) - 07/2014 - neil.vaytet@ens-lyon.fr # Neil Vaytet (NBI Copenhagen) - 11/2017 - neil.vaytet@nbi.ku.dk # # Usage: # ./run_test_suite.sh # # Options: # - Run the suite...
Shell
null
16,571
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
tests/daily_test.sh
#!/bin/bash ############################################################################ # Ramses Daily Build Script # # Neil Vaytet (ENS Lyon) - 07/2014 - neil.vaytet@ens-lyon.fr # # This script runs the RAMSES test suite at regular time intervals. # It is currently configured to perform the test suite every day at 3...
Shell
null
5,750
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
tests/build.rt.sh
#!/bin/bash cd bin make NDIM=3 RT=1 NIONS=3 NGROUPS=3 MPI=0 DEBUG=1
Shell
null
69
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
tests/update_testpage.py
import sys import glob from datetime import date, timedelta, datetime MonthsDict = {'Jan': 1, 'Feb': 2, 'Mar': 3, 'Apr': 4, 'May': 5, 'Jun': 6, 'Jul': 7, 'Aug': 8, 'Sep': 9, 'Oct': 10, 'Nov': 11, 'Dec': 12} MonthsDictReverse = dict((v, k) for k, v in MonthsDict.items()) de...
Python
null
5,934
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
tests/mhd/imhd-tube/plot-imhd-tube.py
import matplotlib as mpl mpl.use('Agg') import numpy as np import matplotlib.pyplot as plt import visu_ramses fig = plt.figure() ratio = 0.8 sizex = 12.0 fig.set_size_inches(sizex,ratio*sizex) ax1 = plt.subplot(221) ax2 = plt.subplot(222) ax3 = plt.subplot(223) ax4 = plt.subplot(224) ax5 = ax1.twinx() # Load RAMSES ...
Python
null
1,799
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
tests/mhd/imhd-tube/config.txt
FLAGS: NDIM=1 PATCH= SOLVER=mhd
Text
null
32
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
tests/mhd/orszag-tang/plot-orszag-tang.py
import matplotlib as mpl mpl.use('Agg') import numpy as np import matplotlib.pyplot as plt import visu_ramses from scipy.interpolate import griddata fig = plt.figure() ratio = 0.75 sizex = 12.0 fig.set_size_inches(sizex,ratio*sizex) ax1 = fig.add_subplot(221) ax2 = fig.add_subplot(222) ax3 = fig.add_subplot(223) ax4 ...
Python
null
2,608
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
tests/mhd/orszag-tang/config.txt
FLAGS: NDIM=2 PATCH=../tests/mhd/orszag-tang SOLVER=mhd
Text
null
56
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
tests/mhd/orszag-tang/condinit.f90
!================================================================ !================================================================ !================================================================ !================================================================ subroutine condinit(x,u,dx,nn) use amr_parameters us...
Fortran
null
4,896
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
tests/visu/visu_ramses.py
import numpy as np import struct import math def read_descriptor(fname): try: with open(fname) as f: content = f.readlines() except IOError: # Clean exit if the file was not found print("file descriptor not found: %s" % fname) return [], [] list_vars = [] dty...
Python
null
26,416
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
tests/tracer/sedov/config.txt
FLAGS: NDIM=2 PATCH= SOLVER=hydro
Text
null
34
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
tests/tracer/sedov/plot-sedov.py
import matplotlib as mpl mpl.use("Agg") import numpy as np import matplotlib.pyplot as plt import visu_ramses from scipy.interpolate import griddata fig = plt.figure(constrained_layout=True, figsize=(12, 6)) axes = fig.subplots(nrows=2, ncols=3) # Load RAMSES output data = visu_ramses.load_snapshot(2) x = data["data...
Python
null
3,996
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
tests/poisson/ana-disk-potential/config.txt
FLAGS: NDIM=2 PATCH=../tests/poisson/ana-disk-potential SOLVER=hydro
Text
null
69
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
tests/poisson/ana-disk-potential/plot-ana-disk-potential.py
import matplotlib as mpl mpl.use('Agg') import numpy as np import matplotlib.pyplot as plt import visu_ramses # Fundamental constants MH = 1.6605390e-24 #g # hydrogen mass KB = 1.3806490e-16 #cm^2 g s^-2 K^-1 # Boltzman constant PC = 3.0856776e+18 MYR = 3.15576000e+13 unit_d=2.3247434e-24 u...
Python
null
1,498
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
tests/poisson/ana-disk-potential/condinit.f90
!================================================================ !================================================================ !================================================================ !================================================================ subroutine condinit(x,u,dx,nn) use amr_parameters us...
Fortran
null
3,145
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
tests/sink/smbh-bondi/plot-smbh-bondi.py
"""Plot results of sink accretion test""" import matplotlib matplotlib.use('Agg') from matplotlib import pyplot as plt from matplotlib import ticker import visu_ramses import numpy as np def get_accretion_rate(nout=0): data = visu_ramses.load_snapshot(nout) yr = 86400.0 * 365.25 time = data["info"]["ti...
Python
null
1,058
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
tests/sink/smbh-bondi/config.txt
FLAGS: NDIM=3 SOLVER=hydro PATCH=
Text
null
34
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
tests/sink/smbh-bondi/README.md
* Test name: `smbh_bondi` * Dimension: `3` * Solver: `hydro` * Comparison: md5sum of the sink output (`output_00002/sink_00002.csv`) at the end of the run * Purpose: Testing the implementation of sink-SMBH Bondi-accretion * Keywords: sink dynamics, sink accretion (Bondi), PIC WARNING: This test uses the `experimental_...
Markdown
null
374
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
tests/sink/stellar-spawn/config.txt
FLAGS: NDIM=3 SOLVER=hydro PATCH=
Text
null
34
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
tests/sink/stellar-spawn/plot-stellar-spawn.py
"""Plot results of sink accretion test""" import matplotlib matplotlib.use('Agg') from matplotlib import pyplot as plt from matplotlib import ticker import visu_ramses import numpy as np out_end = 17 # Fundamental constants G = 6.67259e-8 #cm^3 g^-1 s^-2 # gravitational constant YR = 3.1556926e7 #s ...
Python
null
2,135
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
tests/sink/spawning/plot-spawning.py
# REMARK: it is normal the reference value for density is negative. This is the sum of the log of the cell densities. import matplotlib as mpl mpl.use('Agg') import numpy as np import matplotlib.pyplot as plt import visu_ramses from scipy.interpolate import griddata fig, ax = plt.subplots(nrows=1, ncols=3, figsize=(1...
Python
null
2,381
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
tests/sink/spawning/config.txt
FLAGS: NDIM=3 PATCH= SOLVER=hydro USE_TURB=1
Text
null
45
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
tests/sink/stellar-HII/plot-stellar-HII.py
"""Plot results of sink accretion test""" import matplotlib matplotlib.use('Agg') from matplotlib import pyplot as plt from matplotlib import ticker import visu_ramses import numpy as np from scipy.interpolate import griddata out_end = 2 # Fundamental constants G = 6.67259e-8 #cm^3 g^-1 s^-2 # gravitatio...
Python
null
3,478
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
tests/sink/stellar-HII/config.txt
FLAGS: NDIM=3 SOLVER=hydro RT=1 NGROUPS=3 NIONS=3 PATCH=
Text
null
57
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
tests/sink/levelhack/plot-levelhack.py
"""Plot results of sink accretion test""" import matplotlib matplotlib.use('Agg') from matplotlib import pyplot as plt from matplotlib import ticker import visu_ramses import numpy as np def get_accretion_rate(nout=0): data = visu_ramses.load_snapshot(nout) yr = 86400.0 * 365.25 time = data["info"]["ti...
Python
null
1,056
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
tests/sink/levelhack/config.txt
FLAGS: NDIM=3 SOLVER=hydro PATCH=
Text
null
34
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
tests/sink/center-SN/config.txt
FLAGS: NDIM=3 SOLVER=hydro PATCH=
Text
null
34
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
tests/sink/center-SN/plot-center-SN.py
"""Plot results of sink accretion test""" import matplotlib matplotlib.use('Agg') from matplotlib import pyplot as plt from matplotlib import ticker import visu_ramses import numpy as np from scipy.interpolate import griddata out_end = 2 # Fundamental constants G = 6.67259e-8 #cm^3 g^-1 s^-2 # gravitatio...
Python
null
2,400
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
tests/hydro/barotrop/config.txt
FLAGS: NDIM=1 PATCH= SOLVER=hydro
Text
null
34
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
tests/hydro/barotrop/plot-barotrop.py
import matplotlib as mpl mpl.use('Agg') import numpy as np import matplotlib.pyplot as plt import visu_ramses # Fundamental constants G = 6.67259e-8 #cm^3 g^-1 s^-2 # gravitational constant YR = 3.1556926e7 #s # 1 year MSUN = 1.989e33 #g # solar mass MH = 1.67...
Python
null
1,995
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
tests/hydro/isothermal/config.txt
FLAGS: NDIM=1 PATCH= SOLVER=hydro
Text
null
34
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
tests/hydro/isothermal/plot-isothermal.py
import matplotlib as mpl mpl.use('Agg') import numpy as np import matplotlib.pyplot as plt import visu_ramses # Fundamental constants G = 6.67259e-8 #cm^3 g^-1 s^-2 # gravitational constant YR = 3.1556926e7 #s # 1 year MSUN = 1.989e33 #g # solar mass MH = 1.67...
Python
null
1,950
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
tests/hydro/implosion/plot-implosion.py
import matplotlib as mpl mpl.use('Agg') import numpy as np import matplotlib.pyplot as plt import visu_ramses from scipy.interpolate import griddata fig, ax = plt.subplots(nrows=2, ncols=3, figsize=(12, 6)) # Load RAMSES output data = visu_ramses.load_snapshot(2) x = data["data"]["x"] y = data["data"]["y"] ...
Python
null
2,394
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
tests/hydro/implosion/config.txt
FLAGS: NDIM=2 PATCH= SOLVER=hydro
Text
null
34
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
tests/hydro/cooling-frig/plot-cooling-frig.py
import matplotlib as mpl mpl.use('Agg') import numpy as np import matplotlib.pyplot as plt import visu_ramses from scipy.interpolate import griddata fig, ax = plt.subplots(nrows=1, ncols=1, figsize=(8, 8)) # Load RAMSES output data = visu_ramses.load_snapshot(2) units_density=2.3247434e-24 units_time = 2.5395079e15 u...
Python
null
1,036
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
tests/hydro/cooling-frig/config.txt
FLAGS: NDIM=3 PATCH= SOLVER=hydro USE_TURB=1
Text
null
45
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
tests/hydro/sod-tube/config.txt
FLAGS: NDIM=1 PATCH= SOLVER=hydro
Text
null
34
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
tests/hydro/sod-tube/plot-sod-tube.py
import matplotlib as mpl mpl.use('Agg') import numpy as np import matplotlib.pyplot as plt import visu_ramses fig = plt.figure(figsize=(8, 12)) ax1 = plt.subplot(311) ax2 = plt.subplot(312) ax3 = plt.subplot(313) ax5 = ax1.twinx() # Load RAMSES output data = visu_ramses.load_snapshot(2) order = data["data"]["x"].ar...
Python
null
1,451
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
tests/turb/driving/config.txt
FLAGS: NDIM=3 PATCH= SOLVER=hydro USE_TURB=1
Text
null
45
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
tests/turb/driving/plot-driving.py
# REMARK: it is normal the reference value for density is negative. This is the sum of the log of the cell densities. import matplotlib as mpl mpl.use('Agg') import numpy as np import matplotlib.pyplot as plt import visu_ramses from scipy.interpolate import griddata fig, ax = plt.subplots(nrows=3, ncols=3, figsize=(1...
Python
null
3,705
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
tests/rt/stromgren2d/README.md
* Test name: `stromgren2d` * Dimension: `2` * Solver: `hydro` * Comparison: md5sum of the amr2map denisty map of output_00046 * Purpose: Testing the RT implementation * Keywords: RT, Stromgren
Markdown
null
195
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
tests/rt/stromgren2d/config.txt
FLAGS: NDIM=2 SOLVER=hydro RT=1 NGROUPS=3 NIONS=3 NMETALS=1 PATCH=
Text
null
67
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
tests/rt/stromgren2d/plot-stromgren2d.py
import matplotlib as mpl mpl.use('Agg') import numpy as np import matplotlib.pyplot as plt from scipy.interpolate import griddata import visu_ramses # Make figure fig = plt.figure() ratio = 0.75 sizex = 12.0 fig.set_size_inches(sizex,ratio*sizex) ax1 = fig.add_subplot(221) ax2 = fig.add_subplot(222) ax3 = fig.add_sub...
Python
null
3,900
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
patch/6eq/phases_exp.py
# String searching library import re # Standard libraries import os import numpy as np import pandas as pd from functools import partial from scipy import constants from scipy.io import FortranFile from scipy.optimize import newton # Declaring functions # Newton iteration functions to find the saturation pressure/c...
Python
null
7,007
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
patch/6eq/read_hydro_params.f90
subroutine read_hydro_params(nml_ok) use amr_commons use hydro_commons use mpi_mod implicit none logical::nml_ok,inv !-------------------------------------------------- ! Local variables !-------------------------------------------------- integer::i,idim,imat integer ,dimension(1:MAXBOUND)::bound_...
Fortran
null
9,289
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
patch/6eq/umuscl.f90
! --------------------------------------------------------------- ! UNSPLIT Unsplit second order Godunov integrator for ! real gases (arbitrary EOS) dynamics using ! MUSCL-HANCOCK scheme ! with various slope limiters. ! ! inputs/outputs ! uin => (const) input stat...
Fortran
null
59,398
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
patch/6eq/hydro_parameters.f90
module hydro_parameters #ifdef grackle use grackle_parameters #endif use amr_parameters ! Number of independant variables #ifndef NMAT integer,parameter::nmat=2 #else integer,parameter::nmat=NMAT #endif integer,parameter::nener=0 #ifndef NVAR integer,parameter::nvar=ndim+3*nmat integer,parameter::npri...
Fortran
null
2,949
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
patch/6eq/hydro_flag.f90
subroutine hydro_flag(ilevel) use amr_commons use hydro_commons implicit none integer::ilevel ! ------------------------------------------------------------------- ! This routine flag for refinement cells that satisfies ! some user-defined physical criteria at the level ilevel. ! ----------------------...
Fortran
null
4,003
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
patch/6eq/hydro_commons.f90
module hydro_commons use amr_parameters use hydro_parameters real(dp),allocatable,dimension(:,:)::uold,unew ! State vector and its update real(dp),allocatable,dimension(:,:)::fluxes ! Mass flux on the faces of the cells real(dp),allocatable,dimension(:)::pstarold,pstarnew ! Stellar momentum and its update r...
Fortran
null
1,006