From 91917ab99a046132c921925cb3146cd47610143a Mon Sep 17 00:00:00 2001 From: Spencer Bryngelson Date: Wed, 1 Jan 2025 10:51:24 -0500 Subject: [PATCH 1/8] remove junk characters --- .github/workflows/lint-source.yml | 2 +- benchmarks/5eq_rk3_weno3_hllc/case.py | 285 ++++++------- benchmarks/hypo_hll/case.py | 222 +++++----- benchmarks/ibm/case.py | 216 +++++----- benchmarks/viscous_weno5_sgb_acoustic/case.py | 402 ++++++++---------- examples/0D_bubblecollapse_adap/case.py | 34 +- examples/1D_acoustic_dipole/case.py | 14 +- examples/1D_acoustic_gauss_sigmadist/case.py | 14 +- examples/1D_acoustic_gauss_sigmatime/case.py | 14 +- examples/1D_acoustic_sine_frequency/case.py | 14 +- examples/1D_acoustic_sine_wavelength/case.py | 14 +- examples/1D_bubblescreen/case.py | 26 +- examples/1D_exp_bubscreen/case.py | 24 +- examples/1D_exp_tube_phasechange/case.py | 16 +- examples/1D_hypo_2materials/case.py | 16 +- examples/1D_impact/case.py | 16 +- examples/1D_inert_shocktube/case.py | 14 +- examples/1D_kapilashocktube/case.py | 16 +- examples/1D_laxshocktube/case.py | 14 +- examples/1D_poly_bubscreen/case.py | 20 +- examples/1D_qbmm/case.py | 22 +- examples/1D_reactive_shocktube/case.py | 12 +- examples/1D_shuosher_old/case.py | 14 +- examples/1D_shuosher_teno5/case.py | 14 +- examples/1D_shuosher_teno7/case.py | 14 +- examples/1D_shuosher_wenojs5/case.py | 14 +- examples/1D_shuosher_wenom5/case.py | 14 +- examples/1D_shuosher_wenoz5/case.py | 14 +- examples/1D_sodHypo/case.py | 16 +- examples/1D_sodshocktube/case.py | 14 +- examples/1D_titarevtorro/case.py | 14 +- examples/1D_vacuum/case.py | 14 +- examples/1D_vacuum_restart/case.py | 14 +- examples/1D_vacuum_restart/restart_case.py | 12 +- examples/2D_5wave_quasi1D/case.py | 16 +- examples/2D_GreshoVortex/case.py | 12 +- examples/2D_TaylorGreenVortex/case.py | 12 +- examples/2D_acoustic_broadband/case.py | 14 +- examples/2D_acoustic_pulse/case.py | 16 +- examples/2D_acoustic_support10_axisym/case.py | 14 +- examples/2D_acoustic_support2/case.py | 14 +- examples/2D_acoustic_support5/case.py | 14 +- examples/2D_acoustic_support6_axisym/case.py | 14 +- examples/2D_acoustic_support9/case.py | 14 +- examples/2D_advection/case.py | 14 +- examples/2D_axisym_shockbubble/case.py | 16 +- examples/2D_axisym_shockwatercavity/case.py | 18 +- examples/2D_bubbly_steady_shock/case.py | 22 +- examples/2D_hardcodied_ic/case.py | 12 +- examples/2D_ibm/case.py | 14 +- examples/2D_ibm_airfoil/case.py | 14 +- examples/2D_ibm_cfl_dt/case.py | 14 +- examples/2D_ibm_multiphase/case.py | 14 +- examples/2D_ibm_steady_shock/case.py | 18 +- examples/2D_ibm_stl_MFCCharacter/case.py | 12 +- examples/2D_ibm_stl_test/case.py | 12 +- examples/2D_ibm_stl_wedge/case.py | 12 +- examples/2D_isentropicvortex/case.py | 12 +- examples/2D_laplace_pressure_jump/case.py | 16 +- examples/2D_lid_driven_cavity/case.py | 12 +- examples/2D_lungwave/case.py | 16 +- examples/2D_lungwave_horizontal/case.py | 16 +- examples/2D_mixing_artificial_Ma/case.py | 28 +- examples/2D_phasechange_bubble/case.py | 16 +- examples/2D_phasechange_bubble/casefile.py | 16 +- examples/2D_rayleigh_taylor/case.py | 16 +- examples/2D_riemann_test/case.py | 18 +- examples/2D_shearlayer/case.py | 14 +- examples/2D_shockbubble/case.py | 16 +- examples/2D_shockdroplet/case.py | 16 +- examples/2D_shocktube_phasechange/case.py | 18 +- examples/2D_triple_point/case.py | 16 +- examples/2D_viscous/case.py | 16 +- examples/2D_whale_bubble_annulus/case.py | 16 +- examples/2D_zero_circ_vortex/case.py | 16 +- examples/3D_TaylorGreenVortex/case.py | 12 +- examples/3D_acoustic_support11/case.py | 14 +- examples/3D_acoustic_support3/case.py | 14 +- examples/3D_acoustic_support7/case.py | 14 +- examples/3D_ibm_bowshock/case.py | 14 +- examples/3D_ibm_stl_ellipsoid/case.py | 14 +- examples/3D_ibm_stl_pyramid/case.py | 14 +- examples/3D_ibm_stl_test/case.py | 14 +- examples/3D_lagrange_bubblescreen/case.py | 16 +- examples/3D_lagrange_shbubcollapse/case.py | 16 +- examples/3D_lungwave/arc_case.py | 18 +- examples/3D_lungwave/case.py | 18 +- examples/3D_performance_test/case.py | 14 +- examples/3D_phasechange_bubble/case.py | 16 +- examples/3D_rayleigh_taylor/case.py | 16 +- examples/3D_recovering_sphere/case.py | 16 +- examples/3D_shockdroplet/case.py | 16 +- examples/3D_sphbubcollapse/case.py | 14 +- examples/3D_turb_mixing/case.py | 16 +- examples/nD_perfect_reactor/case.py | 14 +- examples/scaling/case.py | 16 +- misc/f_binary_reader.m | 17 +- src/common/include/case.fypp | 7 + toolchain/mfc/args.py | 14 +- 99 files changed, 1247 insertions(+), 1328 deletions(-) create mode 100644 src/common/include/case.fypp diff --git a/.github/workflows/lint-source.yml b/.github/workflows/lint-source.yml index eeb400b780..346805e1de 100644 --- a/.github/workflows/lint-source.yml +++ b/.github/workflows/lint-source.yml @@ -44,4 +44,4 @@ jobs: - name: Looking for junk comments in examples run: | - ! grep -R '# ===' ./examples/**/*.py + ! grep -R '#' ./examples/**/*.py diff --git a/benchmarks/5eq_rk3_weno3_hllc/case.py b/benchmarks/5eq_rk3_weno3_hllc/case.py index e01664d3f5..5233ef93f6 100644 --- a/benchmarks/5eq_rk3_weno3_hllc/case.py +++ b/benchmarks/5eq_rk3_weno3_hllc/case.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - # Benchmark model_equations_2_time_stepper_3_weno_order_3_riemann_solver_2 # Additional Benchmarked Features # - model_equations : 2 @@ -9,32 +8,27 @@ import json, math, argparse -parser = argparse.ArgumentParser( - prog="Benchmarking Case 1", - description="This MFC case was created for the purposes of benchmarking MFC.", - formatter_class=argparse.ArgumentDefaultsHelpFormatter) +parser = argparse.ArgumentParser(prog="Benchmarking Case 1", description="This MFC case was created for the purposes of benchmarking MFC.", formatter_class=argparse.ArgumentDefaultsHelpFormatter) -parser.add_argument("--mfc", type=json.loads, default='{}', metavar="DICT", - help="MFC's toolchain's internal state.") -parser.add_argument("--gbpp", type=int, metavar="MEM", default=16, - help="Adjusts the problem size per rank to fit into [MEM] GB of GPU memory per GPU.") +parser.add_argument("--mfc", type=json.loads, default="{}", metavar="DICT", help="MFC's toolchain's internal state.") +parser.add_argument("--gbpp", type=int, metavar="MEM", default=16, help="Adjusts the problem size per rank to fit into [MEM] GB of GPU memory per GPU.") ARGS = vars(parser.parse_args()) DICT = ARGS["mfc"] size = 1 if DICT["gpu"] else 0 -ppg = 8000000 / 16.0 -procs = DICT["nodes"] * DICT["tasks_per_node"] +ppg = 8000000 / 16.0 +procs = DICT["nodes"] * DICT["tasks_per_node"] ncells = math.floor(ppg * procs * ARGS["gbpp"]) -s = math.floor((ncells / 2.0) ** (1/3)) -Nx, Ny, Nz = 2*s, s, s +s = math.floor((ncells / 2.0) ** (1 / 3)) +Nx, Ny, Nz = 2 * s, s, s # athmospheric pressure - Pa (used as reference value) patm = 101325 # Initial Droplet Diameter / Reference length - m -D0 = 1.0E-3 +D0 = 1.0e-3 # cavity to droplet ratio CtD = 0.06 @@ -44,7 +38,7 @@ # initial shock distance from the y axis. Note that the droplet center is located at y = 0. Thus, the distance from the shock to # the droplet is about D0/8 -ISD = 5.0/8 * D0 +ISD = 5.0 / 8 * D0 ## pre-shock properties - AIR @@ -61,12 +55,12 @@ pia = 0 # speed of sound - M/s -c_a = math.sqrt( gama * ( p0a + pia ) / rho0a ) +c_a = math.sqrt(gama * (p0a + pia) / rho0a) ## Droplet - WATER # surface tension - N / m -st = 0.00E+0 +st = 0.00e0 # Delta Pressure - Pa DP = -st * 4 / D0 @@ -81,10 +75,10 @@ gamw = 6.12 # pi infty - Pa -piw = 3.43E+08 +piw = 3.43e08 # speed of sound - m/s -c_w = math.sqrt( gamw * ( p0w + piw ) / rho0w ) +c_w = math.sqrt(gamw * (p0w + piw) / rho0w) # Shock Mach number of interest. Note that the post-shock properties can be defined in terms of either # Min or psOp0a. Just comment/uncomment appropriatelly @@ -93,14 +87,14 @@ ## Pos to pre shock ratios - AIR # pressure -psOp0a = ( Min ** 2 -1 ) * 2 * gama / ( gama + 1 ) + 1 +psOp0a = (Min**2 - 1) * 2 * gama / (gama + 1) + 1 # psOp0a = 4.5 # density -rhosOrho0a = ( 1 + ( gama + 1 ) / ( gama - 1) * psOp0a ) / ( ( gama + 1 ) / ( gama - 1) + psOp0a ) +rhosOrho0a = (1 + (gama + 1) / (gama - 1) * psOp0a) / ((gama + 1) / (gama - 1) + psOp0a) # Mach number of the shocked region - just a checker, as it must return "Min" -Ms = math.sqrt( ( gama + 1. ) / ( 2. * gama ) * ( psOp0a - 1. ) * ( p0a / ( p0a + pia ) ) + 1. ) +Ms = math.sqrt((gama + 1.0) / (2.0 * gama) * (psOp0a - 1.0) * (p0a / (p0a + pia)) + 1.0) # shock speed of sound - m/s ss = Ms * c_a @@ -114,33 +108,33 @@ rhos = rhosOrho0a * rho0a # post shock speed of sound - m/s -c_s = math.sqrt( gama * (ps + pia) / rhos ) +c_s = math.sqrt(gama * (ps + pia) / rhos) # velocity at the post shock - m/s -vel = c_a/gama * (psOp0a - 1.) * p0a / ( p0a + pia ) / Ms +vel = c_a / gama * (psOp0a - 1.0) * p0a / (p0a + pia) / Ms ## Domain boundaries - m # x direction xb = -8.4707 * D0 -xe = 9.6226 * D0 +xe = 9.6226 * D0 -#xb = -10 * D0 -#xe = 10 * D0 +# xb = -10 * D0 +# xe = 10 * D0 # y direction -yb = 0 * D0 -ye = 10 * D0 +yb = 0 * D0 +ye = 10 * D0 # y direction -zb = 0 * D0 -ze = 10 * D0 +zb = 0 * D0 +ze = 10 * D0 # Stretching factor, to make sure the domaing is sufficiently large after the mesh stretch StF = 4.0 # grid delta x if mesh were uniform in x direction - m. Note that I do not need a measure for dy -dx = ( xe - xb ) / Nx +dx = (xe - xb) / Nx # I calculate tend twice; first is an estimate, second is # the actual value used. This is because I am getting errors in the @@ -157,17 +151,17 @@ cfl = 0.1 # time-step - s -dt = dx * cfl/ ss +dt = dx * cfl / ss # Save Frequency. Note that the number of autosaves will be SF + 1, as th IC (0.dat) is also saved SF = 400 ## making Nt divisible by SF # 1 - ensure NtA goes slightly beyond tendA -NtA = int( tendA//dt + 1 ) +NtA = int(tendA // dt + 1) # Array of saves. It is the same as Nt/Sf = t_step_save -AS = int( NtA // SF + 1 ) +AS = int(NtA // SF + 1) # Nt = total number of steps. Note that Nt >= NtA (so at least tendA is completely simulated) Nt = AS * SF @@ -176,120 +170,107 @@ tend = Nt * dt # Configuring case dictionary -print(json.dumps({ - # Logistics ================================================ - 'run_time_info' : 'F', - # ========================================================== - - # Computational Domain Parameters ========================== - 'x_domain%beg' : xb, - 'x_domain%end' : xe, - 'y_domain%beg' : yb, - 'y_domain%end' : ye, - 'z_domain%beg' : zb, - 'z_domain%end' : ze, - 'm' : Nx, - 'n' : Ny, - 'p' : Nz, - 'cyl_coord' : 'F', - 'dt' : dt, - 't_step_start' : 0, - 't_step_stop' : int(30*(95*size + 5)), - 't_step_save' : int(30*(95*size + 5)), - # ========================================================== - - # Simulation Algorithm Parameters ========================== - 'num_patches' : 3, - 'model_eqns' : 2, - 'alt_soundspeed' : 'F', - 'num_fluids' : 2, - 'mpp_lim' : 'T', - 'mixture_err' : 'T', - 'time_stepper' : 3, - 'weno_order' : 3, - 'weno_eps' : 1.0E-16, - 'weno_Re_flux' : 'F', - 'weno_avg' : 'F', - 'mapped_weno' : 'T', - 'riemann_solver' : 2, - 'wave_speeds' : 1, - 'avg_state' : 2, - 'bc_x%beg' : -6, - 'bc_x%end' : -6, - 'bc_y%beg' : -2, - 'bc_y%end' : -3, - 'bc_z%beg' : -2, - 'bc_z%end' : -3, - # ========================================================== - - # Formatted Database Files Structure Parameters ============ - 'format' : 1, - 'precision' : 2, - 'prim_vars_wrt' :'T', - 'parallel_io' :'T', - # ========================================================== - # I will use 1 for WATER properties, and 2 for AIR properties - # Patch 1: Background (AIR - 2) ============================= - 'patch_icpp(1)%geometry' : 9, - 'patch_icpp(1)%x_centroid' : (xb+xe) / 2 * StF, - 'patch_icpp(1)%y_centroid' : (yb+ye) / 2 * StF, - 'patch_icpp(1)%z_centroid' : (yb+ye) / 2 * StF, - 'patch_icpp(1)%length_x' : (xe-xb) * StF, - 'patch_icpp(1)%length_y' : (ye-yb) * StF, - 'patch_icpp(1)%length_z' : (ze-zb) * StF, - 'patch_icpp(1)%vel(1)' : 0.0E+00, - 'patch_icpp(1)%vel(2)' : 0.0E+00, - 'patch_icpp(1)%vel(3)' : 0.0E+00, - 'patch_icpp(1)%pres' : p0a, - 'patch_icpp(1)%alpha_rho(1)' : 0.0E+00, - 'patch_icpp(1)%alpha_rho(2)' : rho0a, - 'patch_icpp(1)%alpha(1)' : 0.0E+00, - 'patch_icpp(1)%alpha(2)' : 1.0E+00, - # ========================================================== - - # Patch 2: Shocked state (AIR - 2) ========================= - 'patch_icpp(2)%geometry' : 9, - 'patch_icpp(2)%alter_patch(1)' : 'T', - 'patch_icpp(2)%x_centroid' : -ISD - ( xe - xb ) / 2 * StF, - 'patch_icpp(2)%y_centroid' : ( yb + ye ) / 2 * StF, - 'patch_icpp(2)%z_centroid' : ( zb + ze ) / 2 * StF, - 'patch_icpp(2)%length_x' : ( xe - xb ) * StF, - 'patch_icpp(2)%length_y' : ( ye - yb ) * StF, - 'patch_icpp(2)%length_z' : ( ze - zb ) * StF, - 'patch_icpp(2)%vel(1)' : vel, - 'patch_icpp(2)%vel(2)' : 0.0E+00, - 'patch_icpp(2)%vel(3)' : 0.0E+00, - 'patch_icpp(2)%pres' : ps, - 'patch_icpp(2)%alpha_rho(1)' : 0.0E+00, - 'patch_icpp(2)%alpha_rho(2)' : rhos, - 'patch_icpp(2)%alpha(1)' : 0.0E+00, - 'patch_icpp(2)%alpha(2)' : 1.0E+00, - # ========================================================== - - # Patch 3: Droplet (WATER - 1) ============================= - 'patch_icpp(3)%geometry' : 8, - 'patch_icpp(3)%x_centroid' : 0.0E+00, - 'patch_icpp(3)%y_centroid' : 0.0E+00, - 'patch_icpp(3)%z_centroid' : 0.0E+00, - 'patch_icpp(3)%radius' : D0/2, - 'patch_icpp(3)%alter_patch(1)' : 'T', - 'patch_icpp(3)%vel(1)' : 0.0E+00, - 'patch_icpp(3)%vel(2)' : 0.0E+00, - 'patch_icpp(3)%vel(3)' : 0.0E+00, - 'patch_icpp(3)%pres' : p0w, - 'patch_icpp(3)%alpha_rho(1)' : rho0w, - 'patch_icpp(3)%alpha_rho(2)' : 0.0E+00, - 'patch_icpp(3)%alpha(1)' : 1.0E+00, - 'patch_icpp(3)%alpha(2)' : 0.0E+00, - # ========================================================== - - # Fluids Physical Parameters =============================== - 'fluid_pp(1)%gamma' : 1.0E+00/(gamw-1), - 'fluid_pp(1)%pi_inf' : gamw*piw/(gamw-1), - 'fluid_pp(2)%gamma' : 1.0E+00/(gama-1), - 'fluid_pp(2)%pi_inf' : gama*pia/(gama-1), - # ========================================================== -})) - -# ============================================================================== - +print( + json.dumps( + { + # Logistics + "run_time_info": "F", + # Computational Domain Parameters + "x_domain%beg": xb, + "x_domain%end": xe, + "y_domain%beg": yb, + "y_domain%end": ye, + "z_domain%beg": zb, + "z_domain%end": ze, + "m": Nx, + "n": Ny, + "p": Nz, + "cyl_coord": "F", + "dt": dt, + "t_step_start": 0, + "t_step_stop": int(30 * (95 * size + 5)), + "t_step_save": int(30 * (95 * size + 5)), + # Simulation Algorithm Parameters + "num_patches": 3, + "model_eqns": 2, + "alt_soundspeed": "F", + "num_fluids": 2, + "mpp_lim": "T", + "mixture_err": "T", + "time_stepper": 3, + "weno_order": 3, + "weno_eps": 1.0e-16, + "weno_Re_flux": "F", + "weno_avg": "F", + "mapped_weno": "T", + "riemann_solver": 2, + "wave_speeds": 1, + "avg_state": 2, + "bc_x%beg": -6, + "bc_x%end": -6, + "bc_y%beg": -2, + "bc_y%end": -3, + "bc_z%beg": -2, + "bc_z%end": -3, + # Formatted Database Files Structure Parameters + "format": 1, + "precision": 2, + "prim_vars_wrt": "T", + "parallel_io": "T", + # I will use 1 for WATER properties, and 2 for AIR properties + # Patch 1: Background (AIR - 2) + "patch_icpp(1)%geometry": 9, + "patch_icpp(1)%x_centroid": (xb + xe) / 2 * StF, + "patch_icpp(1)%y_centroid": (yb + ye) / 2 * StF, + "patch_icpp(1)%z_centroid": (yb + ye) / 2 * StF, + "patch_icpp(1)%length_x": (xe - xb) * StF, + "patch_icpp(1)%length_y": (ye - yb) * StF, + "patch_icpp(1)%length_z": (ze - zb) * StF, + "patch_icpp(1)%vel(1)": 0.0e00, + "patch_icpp(1)%vel(2)": 0.0e00, + "patch_icpp(1)%vel(3)": 0.0e00, + "patch_icpp(1)%pres": p0a, + "patch_icpp(1)%alpha_rho(1)": 0.0e00, + "patch_icpp(1)%alpha_rho(2)": rho0a, + "patch_icpp(1)%alpha(1)": 0.0e00, + "patch_icpp(1)%alpha(2)": 1.0e00, + # Patch 2: Shocked state (AIR - 2) + "patch_icpp(2)%geometry": 9, + "patch_icpp(2)%alter_patch(1)": "T", + "patch_icpp(2)%x_centroid": -ISD - (xe - xb) / 2 * StF, + "patch_icpp(2)%y_centroid": (yb + ye) / 2 * StF, + "patch_icpp(2)%z_centroid": (zb + ze) / 2 * StF, + "patch_icpp(2)%length_x": (xe - xb) * StF, + "patch_icpp(2)%length_y": (ye - yb) * StF, + "patch_icpp(2)%length_z": (ze - zb) * StF, + "patch_icpp(2)%vel(1)": vel, + "patch_icpp(2)%vel(2)": 0.0e00, + "patch_icpp(2)%vel(3)": 0.0e00, + "patch_icpp(2)%pres": ps, + "patch_icpp(2)%alpha_rho(1)": 0.0e00, + "patch_icpp(2)%alpha_rho(2)": rhos, + "patch_icpp(2)%alpha(1)": 0.0e00, + "patch_icpp(2)%alpha(2)": 1.0e00, + # Patch 3: Droplet (WATER - 1) + "patch_icpp(3)%geometry": 8, + "patch_icpp(3)%x_centroid": 0.0e00, + "patch_icpp(3)%y_centroid": 0.0e00, + "patch_icpp(3)%z_centroid": 0.0e00, + "patch_icpp(3)%radius": D0 / 2, + "patch_icpp(3)%alter_patch(1)": "T", + "patch_icpp(3)%vel(1)": 0.0e00, + "patch_icpp(3)%vel(2)": 0.0e00, + "patch_icpp(3)%vel(3)": 0.0e00, + "patch_icpp(3)%pres": p0w, + "patch_icpp(3)%alpha_rho(1)": rho0w, + "patch_icpp(3)%alpha_rho(2)": 0.0e00, + "patch_icpp(3)%alpha(1)": 1.0e00, + "patch_icpp(3)%alpha(2)": 0.0e00, + # Fluids Physical Parameters + "fluid_pp(1)%gamma": 1.0e00 / (gamw - 1), + "fluid_pp(1)%pi_inf": gamw * piw / (gamw - 1), + "fluid_pp(2)%gamma": 1.0e00 / (gama - 1), + "fluid_pp(2)%pi_inf": gama * pia / (gama - 1), + } + ) +) diff --git a/benchmarks/hypo_hll/case.py b/benchmarks/hypo_hll/case.py index fcd9f276e3..e9b4188b26 100644 --- a/benchmarks/hypo_hll/case.py +++ b/benchmarks/hypo_hll/case.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - # Benchmark hypoelasticity_T_riemann_solver_1 # Additional Benchmarked Features # - hypoelasticity : T @@ -7,133 +6,116 @@ import json, math, argparse -parser = argparse.ArgumentParser( - prog="Benchmarkin Case 3", - description="This MFC case was created for the purposes of benchmarking MFC.", - formatter_class=argparse.ArgumentDefaultsHelpFormatter) +parser = argparse.ArgumentParser(prog="Benchmarkin Case 3", description="This MFC case was created for the purposes of benchmarking MFC.", formatter_class=argparse.ArgumentDefaultsHelpFormatter) -parser.add_argument("--mfc", type=json.loads, default='{}', metavar="DICT", - help="MFC's toolchain's internal state.") -parser.add_argument("--gbpp", type=int, metavar="MEM", default=16, - help="Adjusts the problem size per rank to fit into [MEM] GB of GPU memory per GPU.") +parser.add_argument("--mfc", type=json.loads, default="{}", metavar="DICT", help="MFC's toolchain's internal state.") +parser.add_argument("--gbpp", type=int, metavar="MEM", default=16, help="Adjusts the problem size per rank to fit into [MEM] GB of GPU memory per GPU.") ARGS = vars(parser.parse_args()) DICT = ARGS["mfc"] size = 1 if DICT["gpu"] else 0 -ppg = 8000000 / 16.0 -procs = DICT["nodes"] * DICT["tasks_per_node"] +ppg = 8000000 / 16.0 +procs = DICT["nodes"] * DICT["tasks_per_node"] ncells = math.floor(ppg * procs * ARGS["gbpp"]) -s = math.floor((ncells / 2.0) ** (1/3)) -Nx, Ny, Nz = 2*s, s, s +s = math.floor((ncells / 2.0) ** (1 / 3)) +Nx, Ny, Nz = 2 * s, s, s # Configuring case dictionary -print(json.dumps({ - # Logistics ================================================ - 'run_time_info' : 'F', - # ========================================================== - - # Computational Domain Parameters ========================== - 'x_domain%beg' : 0.E+00, - 'x_domain%end' : 1.E+00, - 'y_domain%beg' : 0.E+00, - 'y_domain%end' : 2.E+00, - 'z_domain%beg' : 0.E+00, - 'z_domain%end' : 1.E+00, - 'm' : Nx, - 'n' : Ny, - 'p' : Nz, - 'dt' : 1e-8, - 't_step_start' : 0, - 't_step_stop' : int(30*(95*size + 5)), - 't_step_save' : int(30*(95*size + 5)), - # ========================================================== - - # Simulation Algorithm Parameters ========================== - 'num_patches' : 2, - 'model_eqns' : 2, - 'alt_soundspeed' : 'F', - 'num_fluids' : 2, - 'mpp_lim' : 'F', - 'mixture_err' : 'F', - 'time_stepper' : 3, - 'weno_order' : 3, - 'weno_eps' : 1.E-16, - 'weno_Re_flux' : 'F', - 'weno_avg' : 'F', - 'mapped_weno' : 'F', - 'null_weights' : 'F', - 'mp_weno' : 'F', - 'riemann_solver' : 1, - 'wave_speeds' : 1, - 'avg_state' : 2, - 'bc_x%beg' : -3, - 'bc_x%end' : -3, - 'bc_y%beg' : -3, - 'bc_y%end' : -3, - 'bc_z%beg' : -3, - 'bc_z%end' : -3, - # ========================================================== - - # Turning on Hypoelasticity ================================ - 'hypoelasticity' : 'T', - 'fd_order' : 4, - # ========================================================== - - # Formatted Database Files Structure Parameters ============ - 'format' : 1, - 'precision' : 2, - 'prim_vars_wrt' :'T', - 'parallel_io' :'F', - # ========================================================== - - # Patch 1 L ================================================ - 'patch_icpp(1)%geometry' : 9, - 'patch_icpp(1)%x_centroid' : 0.35, - 'patch_icpp(1)%y_centroid' : 1.0, - 'patch_icpp(1)%z_centroid' : 0.5, - 'patch_icpp(1)%length_x' : 0.7, - 'patch_icpp(1)%length_y' : 2, - 'patch_icpp(1)%length_z' : 1, - 'patch_icpp(1)%vel(1)' : 0.0, - 'patch_icpp(1)%vel(2)' : 0.0, - 'patch_icpp(1)%vel(3)' : 0.0, - 'patch_icpp(1)%pres' : 1E+09, - 'patch_icpp(1)%alpha_rho(1)' : 1000, - 'patch_icpp(1)%alpha_rho(2)' : 0., - 'patch_icpp(1)%alpha(1)' : 1, - 'patch_icpp(1)%alpha(2)' : 0., - 'patch_icpp(1)%tau_e(1)' : 0.0, - # ========================================================== - - # Patch 2 R ================================================ - 'patch_icpp(2)%geometry' : 9, - 'patch_icpp(2)%x_centroid' : 0.85, - 'patch_icpp(2)%y_centroid' : 1.0, - 'patch_icpp(2)%z_centroid' : 0.5, - 'patch_icpp(2)%length_x' : 0.3, - 'patch_icpp(2)%length_y' : 2.0, - 'patch_icpp(2)%length_z' : 1.0, - 'patch_icpp(2)%vel(1)' : 0, - 'patch_icpp(2)%vel(2)' : 0, - 'patch_icpp(2)%vel(3)' : 0, - 'patch_icpp(2)%pres' : 1E+05, - 'patch_icpp(2)%alpha_rho(1)' : 0., - 'patch_icpp(2)%alpha_rho(2)' : 50., - 'patch_icpp(2)%alpha(1)' : 0, - 'patch_icpp(2)%alpha(2)' : 1, - 'patch_icpp(2)%tau_e(1)' : 0.0, - # ========================================================== - - # Fluids Physical Parameters =============================== - 'fluid_pp(1)%gamma' : 1.E+00/(4.4E+00-1.E+00), - 'fluid_pp(1)%pi_inf' : 4.4E+00*6.E+08/(4.4E+00 - 1.E+00), - 'fluid_pp(1)%G' : 1.E+09, - 'fluid_pp(2)%gamma' : 1.E+00/(1.4E+00-1.E+00), - 'fluid_pp(2)%pi_inf' : 0., - 'fluid_pp(2)%G' : 0., - # ========================================================== -})) -# ============================================================================== +print( + json.dumps( + { + # Logistics + "run_time_info": "F", + # Computational Domain Parameters + "x_domain%beg": 0.0e00, + "x_domain%end": 1.0e00, + "y_domain%beg": 0.0e00, + "y_domain%end": 2.0e00, + "z_domain%beg": 0.0e00, + "z_domain%end": 1.0e00, + "m": Nx, + "n": Ny, + "p": Nz, + "dt": 1e-8, + "t_step_start": 0, + "t_step_stop": int(30 * (95 * size + 5)), + "t_step_save": int(30 * (95 * size + 5)), + # Simulation Algorithm Parameters + "num_patches": 2, + "model_eqns": 2, + "alt_soundspeed": "F", + "num_fluids": 2, + "mpp_lim": "F", + "mixture_err": "F", + "time_stepper": 3, + "weno_order": 3, + "weno_eps": 1.0e-16, + "weno_Re_flux": "F", + "weno_avg": "F", + "mapped_weno": "F", + "null_weights": "F", + "mp_weno": "F", + "riemann_solver": 1, + "wave_speeds": 1, + "avg_state": 2, + "bc_x%beg": -3, + "bc_x%end": -3, + "bc_y%beg": -3, + "bc_y%end": -3, + "bc_z%beg": -3, + "bc_z%end": -3, + # Turning on Hypoelasticity + "hypoelasticity": "T", + "fd_order": 4, + # Formatted Database Files Structure Parameters + "format": 1, + "precision": 2, + "prim_vars_wrt": "T", + "parallel_io": "F", + # Patch 1 L + "patch_icpp(1)%geometry": 9, + "patch_icpp(1)%x_centroid": 0.35, + "patch_icpp(1)%y_centroid": 1.0, + "patch_icpp(1)%z_centroid": 0.5, + "patch_icpp(1)%length_x": 0.7, + "patch_icpp(1)%length_y": 2, + "patch_icpp(1)%length_z": 1, + "patch_icpp(1)%vel(1)": 0.0, + "patch_icpp(1)%vel(2)": 0.0, + "patch_icpp(1)%vel(3)": 0.0, + "patch_icpp(1)%pres": 1e09, + "patch_icpp(1)%alpha_rho(1)": 1000, + "patch_icpp(1)%alpha_rho(2)": 0.0, + "patch_icpp(1)%alpha(1)": 1, + "patch_icpp(1)%alpha(2)": 0.0, + "patch_icpp(1)%tau_e(1)": 0.0, + # Patch 2 R + "patch_icpp(2)%geometry": 9, + "patch_icpp(2)%x_centroid": 0.85, + "patch_icpp(2)%y_centroid": 1.0, + "patch_icpp(2)%z_centroid": 0.5, + "patch_icpp(2)%length_x": 0.3, + "patch_icpp(2)%length_y": 2.0, + "patch_icpp(2)%length_z": 1.0, + "patch_icpp(2)%vel(1)": 0, + "patch_icpp(2)%vel(2)": 0, + "patch_icpp(2)%vel(3)": 0, + "patch_icpp(2)%pres": 1e05, + "patch_icpp(2)%alpha_rho(1)": 0.0, + "patch_icpp(2)%alpha_rho(2)": 50.0, + "patch_icpp(2)%alpha(1)": 0, + "patch_icpp(2)%alpha(2)": 1, + "patch_icpp(2)%tau_e(1)": 0.0, + # Fluids Physical Parameters + "fluid_pp(1)%gamma": 1.0e00 / (4.4e00 - 1.0e00), + "fluid_pp(1)%pi_inf": 4.4e00 * 6.0e08 / (4.4e00 - 1.0e00), + "fluid_pp(1)%G": 1.0e09, + "fluid_pp(2)%gamma": 1.0e00 / (1.4e00 - 1.0e00), + "fluid_pp(2)%pi_inf": 0.0, + "fluid_pp(2)%G": 0.0, + } + ) +) diff --git a/benchmarks/ibm/case.py b/benchmarks/ibm/case.py index ec718ba5fa..4e059387a7 100644 --- a/benchmarks/ibm/case.py +++ b/benchmarks/ibm/case.py @@ -1,136 +1,118 @@ #!/usr/bin/env python3 - # Benchmark ibm_T # Additional Benchmarked Features # - ibm : T import json, math, argparse -parser = argparse.ArgumentParser( - prog="Benchmarking Case 4", - description="This MFC case was created for the purposes of benchmarking MFC.", - formatter_class=argparse.ArgumentDefaultsHelpFormatter) +parser = argparse.ArgumentParser(prog="Benchmarking Case 4", description="This MFC case was created for the purposes of benchmarking MFC.", formatter_class=argparse.ArgumentDefaultsHelpFormatter) -parser.add_argument("--mfc", type=json.loads, default='{}', metavar="DICT", - help="MFC's toolchain's internal state.") -parser.add_argument("--gbpp", type=int, metavar="MEM", default=16, - help="Adjusts the problem size per rank to fit into [MEM] GB of GPU memory per GPU.") +parser.add_argument("--mfc", type=json.loads, default="{}", metavar="DICT", help="MFC's toolchain's internal state.") +parser.add_argument("--gbpp", type=int, metavar="MEM", default=16, help="Adjusts the problem size per rank to fit into [MEM] GB of GPU memory per GPU.") ARGS = vars(parser.parse_args()) DICT = ARGS["mfc"] size = 1 if DICT["gpu"] else 0 -ppg = 8000000 / 16.0 -procs = DICT["nodes"] * DICT["tasks_per_node"] +ppg = 8000000 / 16.0 +procs = DICT["nodes"] * DICT["tasks_per_node"] ncells = math.floor(ppg * procs * ARGS["gbpp"]) -s = math.floor((ncells / 2.0) ** (1/3)) -Nx, Ny, Nz = 2*s, s, s +s = math.floor((ncells / 2.0) ** (1 / 3)) +Nx, Ny, Nz = 2 * s, s, s -dx = 1./(1.*(Nx+1)) +dx = 1.0 / (1.0 * (Nx + 1)) -Tend = 64E-06 -Nt = 200 -mydt = Tend/(1.*Nt) +Tend = 64e-06 +Nt = 200 +mydt = Tend / (1.0 * Nt) # Configuring case dictionary -print(json.dumps({ - # Logistics ================================================ - 'run_time_info' : 'F', - # ========================================================== - - # Computational Domain Parameters ========================== - 'x_domain%beg' : 0.E+00, - 'x_domain%end' : 1.E+00, - 'y_domain%beg' : 0, - 'y_domain%end' : 0.5, - 'z_domain%beg' : 0., - 'z_domain%end' : 0.5, - 'm' : Nx, - 'n' : Ny, - 'p' : Nz, - 'dt' : mydt, - 't_step_start' : 0, - 't_step_stop' : int(20*(95*size + 5)), - 't_step_save' : int(20*(95*size + 5)), - # ========================================================== - - # Simulation Algorithm Parameters ========================== - 'num_patches' : 2, - 'model_eqns' : 2, - 'alt_soundspeed' : 'F', - 'num_fluids' : 1, - 'mpp_lim' : 'F', - 'mixture_err' : 'F', - 'time_stepper' : 3, - 'weno_order' : 5, - 'weno_eps' : 1.E-16, - 'weno_Re_flux' : 'F', - 'weno_avg' : 'F', - 'mapped_weno' : 'F', - 'null_weights' : 'F', - 'mp_weno' : 'F', - 'riemann_solver' : 1, - 'wave_speeds' : 1, - 'avg_state' : 2, - 'bc_x%beg' : -3, - 'bc_x%end' : -3, - 'bc_y%beg' : -3, - 'bc_y%end' : -3, - 'bc_z%beg' : -3, - 'bc_z%end' : -3, - # ========================================================== - - # Turning on Hypoelasticity ================================ - 'hypoelasticity' : 'T', - 'fd_order' : 4, - # ========================================================== - - # Formatted Database Files Structure Parameters ============ - 'format' : 1, - 'precision' : 2, - 'prim_vars_wrt' :'T', - 'parallel_io' :'T', - # ========================================================== - - # Patch 1 L ================================================ - 'patch_icpp(1)%geometry' : 9, - 'patch_icpp(1)%x_centroid' : 0.25, - 'patch_icpp(1)%y_centroid' : 0.25, - 'patch_icpp(1)%z_centroid' : 0.25, - 'patch_icpp(1)%length_x' : 0.5, - 'patch_icpp(1)%length_y' : 0.5, - 'patch_icpp(1)%length_z' : 0.5, - 'patch_icpp(1)%vel(1)' : 0.0, - 'patch_icpp(1)%vel(2)' : 0, - 'patch_icpp(1)%vel(3)' : 0, - 'patch_icpp(1)%pres' : 1.E+8, - 'patch_icpp(1)%alpha_rho(1)' : 1000, - 'patch_icpp(1)%alpha(1)' : 1., - 'patch_icpp(1)%tau_e(1)' : 0.0, - # ========================================================== - - # Patch 2 R ================================================ - 'patch_icpp(2)%geometry' : 9, - 'patch_icpp(2)%x_centroid' : 0.75, - 'patch_icpp(2)%y_centroid' : 0.25, - 'patch_icpp(2)%z_centroid' : 0.25, - 'patch_icpp(2)%length_x' : 0.5, - 'patch_icpp(2)%length_y' : 0.5, - 'patch_icpp(2)%length_z' : 0.5, - 'patch_icpp(2)%vel(1)' : 0, - 'patch_icpp(2)%vel(2)' : 0, - 'patch_icpp(2)%vel(3)' : 0, - 'patch_icpp(2)%pres' : 1.E+05, - 'patch_icpp(2)%alpha_rho(1)' : 1000, - 'patch_icpp(2)%alpha(1)' : 1., - 'patch_icpp(2)%tau_e(1)' : 0.0, - # ========================================================== - - # Fluids Physical Parameters =============================== - 'fluid_pp(1)%gamma' : 1.E+00/(4.4E+00-1.E+00), - 'fluid_pp(1)%pi_inf' : 4.4E+00*6.E+08/(4.4E+00 - 1.E+00), - 'fluid_pp(1)%G' : 10E+09, - # ========================================================== -})) -# ============================================================================== +print( + json.dumps( + { + # Logistics + "run_time_info": "F", + # Computational Domain Parameters + "x_domain%beg": 0.0e00, + "x_domain%end": 1.0e00, + "y_domain%beg": 0, + "y_domain%end": 0.5, + "z_domain%beg": 0.0, + "z_domain%end": 0.5, + "m": Nx, + "n": Ny, + "p": Nz, + "dt": mydt, + "t_step_start": 0, + "t_step_stop": int(20 * (95 * size + 5)), + "t_step_save": int(20 * (95 * size + 5)), + # Simulation Algorithm Parameters + "num_patches": 2, + "model_eqns": 2, + "alt_soundspeed": "F", + "num_fluids": 1, + "mpp_lim": "F", + "mixture_err": "F", + "time_stepper": 3, + "weno_order": 5, + "weno_eps": 1.0e-16, + "weno_Re_flux": "F", + "weno_avg": "F", + "mapped_weno": "F", + "null_weights": "F", + "mp_weno": "F", + "riemann_solver": 1, + "wave_speeds": 1, + "avg_state": 2, + "bc_x%beg": -3, + "bc_x%end": -3, + "bc_y%beg": -3, + "bc_y%end": -3, + "bc_z%beg": -3, + "bc_z%end": -3, + # Turning on Hypoelasticity + "hypoelasticity": "T", + "fd_order": 4, + # Formatted Database Files Structure Parameters + "format": 1, + "precision": 2, + "prim_vars_wrt": "T", + "parallel_io": "T", + # Patch 1 L + "patch_icpp(1)%geometry": 9, + "patch_icpp(1)%x_centroid": 0.25, + "patch_icpp(1)%y_centroid": 0.25, + "patch_icpp(1)%z_centroid": 0.25, + "patch_icpp(1)%length_x": 0.5, + "patch_icpp(1)%length_y": 0.5, + "patch_icpp(1)%length_z": 0.5, + "patch_icpp(1)%vel(1)": 0.0, + "patch_icpp(1)%vel(2)": 0, + "patch_icpp(1)%vel(3)": 0, + "patch_icpp(1)%pres": 1.0e8, + "patch_icpp(1)%alpha_rho(1)": 1000, + "patch_icpp(1)%alpha(1)": 1.0, + "patch_icpp(1)%tau_e(1)": 0.0, + # Patch 2 R + "patch_icpp(2)%geometry": 9, + "patch_icpp(2)%x_centroid": 0.75, + "patch_icpp(2)%y_centroid": 0.25, + "patch_icpp(2)%z_centroid": 0.25, + "patch_icpp(2)%length_x": 0.5, + "patch_icpp(2)%length_y": 0.5, + "patch_icpp(2)%length_z": 0.5, + "patch_icpp(2)%vel(1)": 0, + "patch_icpp(2)%vel(2)": 0, + "patch_icpp(2)%vel(3)": 0, + "patch_icpp(2)%pres": 1.0e05, + "patch_icpp(2)%alpha_rho(1)": 1000, + "patch_icpp(2)%alpha(1)": 1.0, + "patch_icpp(2)%tau_e(1)": 0.0, + # Fluids Physical Parameters + "fluid_pp(1)%gamma": 1.0e00 / (4.4e00 - 1.0e00), + "fluid_pp(1)%pi_inf": 4.4e00 * 6.0e08 / (4.4e00 - 1.0e00), + "fluid_pp(1)%G": 10e09, + } + ) +) diff --git a/benchmarks/viscous_weno5_sgb_acoustic/case.py b/benchmarks/viscous_weno5_sgb_acoustic/case.py index 3aca56ab6a..1a85a4b280 100644 --- a/benchmarks/viscous_weno5_sgb_acoustic/case.py +++ b/benchmarks/viscous_weno5_sgb_acoustic/case.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - # Benchmark viscosity_weno_Re_flux_T_weno_order_5_bubbles_T_bubble_mode_3_acoustic_T # Additional Benchmarked Features # - viscosity enabled @@ -11,239 +10,216 @@ import json, math, argparse -parser = argparse.ArgumentParser( - prog="Benchmarking Case 2", - description="This MFC case was created for the purposes of benchmarking MFC.", - formatter_class=argparse.ArgumentDefaultsHelpFormatter) +parser = argparse.ArgumentParser(prog="Benchmarking Case 2", description="This MFC case was created for the purposes of benchmarking MFC.", formatter_class=argparse.ArgumentDefaultsHelpFormatter) -parser.add_argument("--mfc", type=json.loads, default='{}', metavar="DICT", - help="MFC's toolchain's internal state.") -parser.add_argument("--gbpp", type=int, metavar="MEM", default=16, - help="Adjusts the problem size per rank to fit into [MEM] GB of GPU memory per GPU.") +parser.add_argument("--mfc", type=json.loads, default="{}", metavar="DICT", help="MFC's toolchain's internal state.") +parser.add_argument("--gbpp", type=int, metavar="MEM", default=16, help="Adjusts the problem size per rank to fit into [MEM] GB of GPU memory per GPU.") ARGS = vars(parser.parse_args()) DICT = ARGS["mfc"] size = 1 if DICT["gpu"] else 0 -ppg = 8000000 / 16.0 -procs = DICT["nodes"] * DICT["tasks_per_node"] +ppg = 8000000 / 16.0 +procs = DICT["nodes"] * DICT["tasks_per_node"] ncells = math.floor(ppg * procs * ARGS["gbpp"]) -s = math.floor((ncells / 2.0) ** (1/3)) -Nx, Ny, Nz = 2*s, s, s - -x0 = 10.E-04 -y0 = 10.E-04 -z0 = 10.E-04 -p0 = 1. -rho0 = 1.E+03 -c0 = math.sqrt( p0/rho0 ) -patm = 1. - -#water props -n_tait = 7.1 -B_tait = 306.E+06 / p0 -mul0 = 1.002E-03 #viscosity -ss = 0.07275 #surface tension -pv = 2.3388E+03 #vapor pressure +s = math.floor((ncells / 2.0) ** (1 / 3)) +Nx, Ny, Nz = 2 * s, s, s + +x0 = 10.0e-04 +y0 = 10.0e-04 +z0 = 10.0e-04 +p0 = 1.0 +rho0 = 1.0e03 +c0 = math.sqrt(p0 / rho0) +patm = 1.0 + +# water props +n_tait = 7.1 +B_tait = 306.0e06 / p0 +mul0 = 1.002e-03 # viscosity +ss = 0.07275 # surface tension +pv = 2.3388e03 # vapor pressure gamma_v = 1.33 -M_v = 18.02 -mu_v = 0.8816E-05 -k_v = 0.019426 +M_v = 18.02 +mu_v = 0.8816e-05 +k_v = 0.019426 -#air props +# air props gamma_n = 1.4 -M_n = 28.97 -mu_n = 1.8E-05 -k_n = 0.02556 +M_n = 28.97 +mu_n = 1.8e-05 +k_n = 0.02556 -#air props +# air props gamma_gas = gamma_n -#reference bubble size -R0ref = 10.E-06 +# reference bubble size +R0ref = 10.0e-06 -pa = 0.1 * 1.E+06 / 101325. +pa = 0.1 * 1.0e06 / 101325.0 -#Characteristic velocity -uu = math.sqrt( p0/rho0 ) -#Cavitation number -Ca = (p0 - pv)/(rho0*(uu**2.)) -#Weber number -We = rho0*(uu**2.)*R0ref/ss -#Inv. bubble Reynolds number -Re_inv = mul0/(rho0*uu*R0ref) +# Characteristic velocity +uu = math.sqrt(p0 / rho0) +# Cavitation number +Ca = (p0 - pv) / (rho0 * (uu**2.0)) +# Weber number +We = rho0 * (uu**2.0) * R0ref / ss +# Inv. bubble Reynolds number +Re_inv = mul0 / (rho0 * uu * R0ref) -#IC setup -vf0 = 0.00004 -n0 = vf0/(math.pi*4.E+00/3.E+00) +# IC setup +vf0 = 0.00004 +n0 = vf0 / (math.pi * 4.0e00 / 3.0e00) -cact = 1475. -t0 = x0/c0 +cact = 1475.0 +t0 = x0 / c0 nbubbles = 1 -myr0 = R0ref +myr0 = R0ref -cfl = 0.01 -Ldomain = 20.E-03 -L = Ldomain/x0 -dx = L/float(Nx) -dt = cfl*dx*c0/cact -Lpulse = 0.3*Ldomain -Tpulse = Lpulse/cact +cfl = 0.01 +Ldomain = 20.0e-03 +L = Ldomain / x0 +dx = L / float(Nx) +dt = cfl * dx * c0 / cact +Lpulse = 0.3 * Ldomain +Tpulse = Lpulse / cact # Configuring case dictionary -print(json.dumps({ - # Logistics ================================================ - 'run_time_info' : 'F', - # ========================================================== - - # Computational Domain Parameters ========================== - 'x_domain%beg' : -10.E-03/x0, - 'x_domain%end' : 10.E-03/x0, - 'y_domain%beg' : -5.E-03/y0, - 'y_domain%end' : 5.E-03/y0, - 'z_domain%beg' : -5.E-03/z0, - 'z_domain%end' : 5.E-03/z0, - 'stretch_x' : 'F', - 'cyl_coord' : 'F', - 'm' : Nx, - 'n' : Ny, - 'p' : Nz, - 'dt' : dt, - 't_step_start' : 0, - 't_step_stop' : int(15*(25*size + 5)), - 't_step_save' : int(15*(25*size + 5)), - # ========================================================== - - # Simulation Algorithm Parameters ========================== - 'num_patches' : 2, - 'model_eqns' : 2, - 'alt_soundspeed' : 'F', - 'num_fluids' : 1, - 'mpp_lim' : 'F', - 'mixture_err' : 'F', - 'time_stepper' : 3, - 'weno_order' : 5, - 'weno_eps' : 1.E-16, - 'weno_Re_flux' : 'F', - 'weno_avg' : 'F', - 'mapped_weno' : 'T', - 'null_weights' : 'F', - 'mp_weno' : 'T', - 'riemann_solver' : 2, - 'wave_speeds' : 1, - 'avg_state' : 2, - 'bc_x%beg' : -3, - 'bc_x%end' : -3, - 'bc_y%beg' : -3, - 'bc_y%end' : -3, - 'bc_z%beg' : -3, - 'bc_z%end' : -3, - 'viscous' : 'T', - # ========================================================== - - # Formatted Database Files Structure Parameters ============ - 'format' : 1, - 'precision' : 2, - 'prim_vars_wrt' :'T', - 'parallel_io' :'T', - # ========================================================== - - # Patch 1 _ Background ===================================== - 'patch_icpp(1)%geometry' : 9, - 'patch_icpp(1)%x_centroid' : 0., - 'patch_icpp(1)%y_centroid' : 0., - 'patch_icpp(1)%z_centroid' : 0., - 'patch_icpp(1)%length_x' : 20.E-03/x0, - 'patch_icpp(1)%length_y' : 10.E-03/y0, - 'patch_icpp(1)%length_z' : 10.E-03/z0, - 'patch_icpp(1)%vel(1)' : 0.0, - 'patch_icpp(1)%vel(2)' : 0.0, - 'patch_icpp(1)%vel(3)' : 0.0, - 'patch_icpp(1)%pres' : patm, - 'patch_icpp(1)%alpha_rho(1)' : (1.-1.E-12)*1.E+03/rho0, - 'patch_icpp(1)%alpha(1)' : 1.E-12, - 'patch_icpp(1)%r0' : 1., - 'patch_icpp(1)%v0' : 0.0E+00, - # ========================================================== - - # Patch 2 Screen =========================================== - 'patch_icpp(2)%geometry' : 9, - 'patch_icpp(2)%x_centroid' : 0., - 'patch_icpp(2)%y_centroid' : 0., - 'patch_icpp(2)%z_centroid' : 0., - 'patch_icpp(2)%length_x' : 5.E-03/x0, - 'patch_icpp(2)%length_y' : 10.E-03/y0, - 'patch_icpp(2)%length_z' : 10.E-03/z0, - 'patch_icpp(2)%alter_patch(1)' : 'T', - 'patch_icpp(2)%vel(1)' : 0.0, - 'patch_icpp(2)%vel(2)' : 0.0, - 'patch_icpp(2)%vel(3)' : 0.0, - 'patch_icpp(2)%pres' : patm, - 'patch_icpp(2)%alpha_rho(1)' : (1.-vf0)*1.E+03/rho0, - 'patch_icpp(2)%alpha(1)' : vf0, - 'patch_icpp(2)%r0' : 1., - 'patch_icpp(2)%v0' : 0.0E+00, - # ========================================================== - - # Fluids Physical Parameters =============================== - # Surrounding liquid - 'fluid_pp(1)%gamma' : 1.E+00/(n_tait-1.E+00), - 'fluid_pp(1)%pi_inf' : n_tait*B_tait/(n_tait-1.), - 'fluid_pp(1)%mul0' : mul0, - 'fluid_pp(1)%ss' : ss, - 'fluid_pp(1)%pv' : pv, - 'fluid_pp(1)%gamma_v' : gamma_v, - 'fluid_pp(1)%M_v' : M_v, - 'fluid_pp(1)%mu_v' : mu_v, - 'fluid_pp(1)%k_v' : k_v, - 'fluid_pp(1)%Re(1)' : 1e3, - # Last fluid_pp is always reserved for bubble gas state === - # if applicable ========================================== - 'fluid_pp(2)%gamma' : 1./(gamma_gas-1.), - 'fluid_pp(2)%pi_inf' : 0.0E+00, - 'fluid_pp(2)%gamma_v' : gamma_n, - 'fluid_pp(2)%M_v' : M_n, - 'fluid_pp(2)%mu_v' : mu_n, - 'fluid_pp(2)%k_v' : k_n, - # ========================================================== - - # Non-polytropic gas compression model AND/OR Tait EOS ===== - 'pref' : p0, - 'rhoref' : rho0, - # ========================================================== - - # Bubbles ================================================== - 'bubbles_euler' : 'T', - 'bubble_model' : 3, - 'polytropic' : 'T', - 'polydisperse' : 'F', - # 'poly_sigma' : 0.3, - 'thermal' : 3, - 'R0ref' : myr0, - 'nb' : 1, - 'Ca' : Ca, - 'Web' : We, - 'Re_inv' : Re_inv, - # ========================================================== - - # Acoustic source ========================================== - 'acoustic_source' : 'T', - 'num_source' : 1, - 'acoustic(1)%support' : 3, - 'acoustic(1)%loc(1)' : -5.E-03/x0, - 'acoustic(1)%loc(2)' : 0., - 'acoustic(1)%length' : 1.0/x0, - 'acoustic(1)%height' : 1.0/x0, - 'acoustic(1)%npulse' : 1, - 'acoustic(1)%dir' : 1., - 'acoustic(1)%pulse' : 1, - 'acoustic(1)%mag' : pa, - 'acoustic(1)%wavelength' : (1./(300000.))*cact/x0, - # ========================================================== -})) - -# ============================================================================== - +print( + json.dumps( + { + # Logistics + "run_time_info": "F", + # Computational Domain Parameters + "x_domain%beg": -10.0e-03 / x0, + "x_domain%end": 10.0e-03 / x0, + "y_domain%beg": -5.0e-03 / y0, + "y_domain%end": 5.0e-03 / y0, + "z_domain%beg": -5.0e-03 / z0, + "z_domain%end": 5.0e-03 / z0, + "stretch_x": "F", + "cyl_coord": "F", + "m": Nx, + "n": Ny, + "p": Nz, + "dt": dt, + "t_step_start": 0, + "t_step_stop": int(15 * (25 * size + 5)), + "t_step_save": int(15 * (25 * size + 5)), + # Simulation Algorithm Parameters + "num_patches": 2, + "model_eqns": 2, + "alt_soundspeed": "F", + "num_fluids": 1, + "mpp_lim": "F", + "mixture_err": "F", + "time_stepper": 3, + "weno_order": 5, + "weno_eps": 1.0e-16, + "weno_Re_flux": "F", + "weno_avg": "F", + "mapped_weno": "T", + "null_weights": "F", + "mp_weno": "T", + "riemann_solver": 2, + "wave_speeds": 1, + "avg_state": 2, + "bc_x%beg": -3, + "bc_x%end": -3, + "bc_y%beg": -3, + "bc_y%end": -3, + "bc_z%beg": -3, + "bc_z%end": -3, + "viscous": "T", + # Formatted Database Files Structure Parameters + "format": 1, + "precision": 2, + "prim_vars_wrt": "T", + "parallel_io": "T", + # Patch 1 _ Background + "patch_icpp(1)%geometry": 9, + "patch_icpp(1)%x_centroid": 0.0, + "patch_icpp(1)%y_centroid": 0.0, + "patch_icpp(1)%z_centroid": 0.0, + "patch_icpp(1)%length_x": 20.0e-03 / x0, + "patch_icpp(1)%length_y": 10.0e-03 / y0, + "patch_icpp(1)%length_z": 10.0e-03 / z0, + "patch_icpp(1)%vel(1)": 0.0, + "patch_icpp(1)%vel(2)": 0.0, + "patch_icpp(1)%vel(3)": 0.0, + "patch_icpp(1)%pres": patm, + "patch_icpp(1)%alpha_rho(1)": (1.0 - 1.0e-12) * 1.0e03 / rho0, + "patch_icpp(1)%alpha(1)": 1.0e-12, + "patch_icpp(1)%r0": 1.0, + "patch_icpp(1)%v0": 0.0e00, + # Patch 2 Screen + "patch_icpp(2)%geometry": 9, + "patch_icpp(2)%x_centroid": 0.0, + "patch_icpp(2)%y_centroid": 0.0, + "patch_icpp(2)%z_centroid": 0.0, + "patch_icpp(2)%length_x": 5.0e-03 / x0, + "patch_icpp(2)%length_y": 10.0e-03 / y0, + "patch_icpp(2)%length_z": 10.0e-03 / z0, + "patch_icpp(2)%alter_patch(1)": "T", + "patch_icpp(2)%vel(1)": 0.0, + "patch_icpp(2)%vel(2)": 0.0, + "patch_icpp(2)%vel(3)": 0.0, + "patch_icpp(2)%pres": patm, + "patch_icpp(2)%alpha_rho(1)": (1.0 - vf0) * 1.0e03 / rho0, + "patch_icpp(2)%alpha(1)": vf0, + "patch_icpp(2)%r0": 1.0, + "patch_icpp(2)%v0": 0.0e00, + # Fluids Physical Parameters + # Surrounding liquid + "fluid_pp(1)%gamma": 1.0e00 / (n_tait - 1.0e00), + "fluid_pp(1)%pi_inf": n_tait * B_tait / (n_tait - 1.0), + "fluid_pp(1)%mul0": mul0, + "fluid_pp(1)%ss": ss, + "fluid_pp(1)%pv": pv, + "fluid_pp(1)%gamma_v": gamma_v, + "fluid_pp(1)%M_v": M_v, + "fluid_pp(1)%mu_v": mu_v, + "fluid_pp(1)%k_v": k_v, + "fluid_pp(1)%Re(1)": 1e3, + # Last fluid_pp is always reserved for bubble gas state + # if applicable + "fluid_pp(2)%gamma": 1.0 / (gamma_gas - 1.0), + "fluid_pp(2)%pi_inf": 0.0e00, + "fluid_pp(2)%gamma_v": gamma_n, + "fluid_pp(2)%M_v": M_n, + "fluid_pp(2)%mu_v": mu_n, + "fluid_pp(2)%k_v": k_n, + # Non-polytropic gas compression model AND/OR Tait EOS + "pref": p0, + "rhoref": rho0, + # Bubbles + "bubbles_euler": "T", + "bubble_model": 3, + "polytropic": "T", + "polydisperse": "F", + # 'poly_sigma' : 0.3, + "thermal": 3, + "R0ref": myr0, + "nb": 1, + "Ca": Ca, + "Web": We, + "Re_inv": Re_inv, + # Acoustic source + "acoustic_source": "T", + "num_source": 1, + "acoustic(1)%support": 3, + "acoustic(1)%loc(1)": -5.0e-03 / x0, + "acoustic(1)%loc(2)": 0.0, + "acoustic(1)%length": 1.0 / x0, + "acoustic(1)%height": 1.0 / x0, + "acoustic(1)%npulse": 1, + "acoustic(1)%dir": 1.0, + "acoustic(1)%pulse": 1, + "acoustic(1)%mag": pa, + "acoustic(1)%wavelength": (1.0 / (300000.0)) * cact / x0, + } + ) +) diff --git a/examples/0D_bubblecollapse_adap/case.py b/examples/0D_bubblecollapse_adap/case.py index 0b76e79ede..af7bb051c5 100644 --- a/examples/0D_bubblecollapse_adap/case.py +++ b/examples/0D_bubblecollapse_adap/case.py @@ -1,8 +1,8 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python import math import json -# FLUID PROPERTIES ============================================================ +# FLUID PROPERTIES # Water n_tait = 7.1 B_tait = 306.0e06 @@ -23,7 +23,7 @@ mu_n = 1.8e-05 k_n = 0.02556 -# REFERENCE VALUES ============================================================ +# REFERENCE VALUES R0ref = 50.0e-06 x0 = R0ref p0 = 8236.0 # for Ca = 1 in mixing layer scale @@ -31,22 +31,22 @@ patm = 1.0 cact = math.sqrt(n_tait * (p0 + B_tait) / rho0) -# NONDIMENSIONAL NUMBERS ====================================================== +# NONDIMENSIONAL NUMBERS Ca = (p0 - pv) / (rho0 * (u0**2.0)) # Cavitation number We = rho0 * (u0**2.0) * R0ref / ss # Weber number Re_inv = mul0 / (rho0 * u0 * R0ref) # Inv. bubble Reynolds number -# BUBBLES ===================================================================== +# BUBBLES vf0 = 1e-5 nb = 1 -# DOMAIN ====================================================================== +# DOMAIN Nx = 30 Ldomain = 20.0e-03 L = Ldomain / x0 dx = L / float(Nx + 1) -# TIME STEPS ================================================================== +# TIME STEPS Tfinal = 0.05 Nt = int(5e2 + 1) t_save = 1 @@ -56,9 +56,9 @@ print( json.dumps( { - # Logistics ================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================== + # Computational Domain Parameters "x_domain%beg": -0.5 * L, "x_domain%end": 0.5 * L, "stretch_x": "F", @@ -70,7 +70,7 @@ "t_step_start": 0, "t_step_stop": Nt, "t_step_save": t_save, - # Simulation Algorithm Parameters ========================== + # Simulation Algorithm Parameters "num_patches": 1, "model_eqns": 2, "alt_soundspeed": "F", @@ -88,13 +88,13 @@ "avg_state": 2, "bc_x%beg": -1, "bc_x%end": -1, - # Formatted Database Files Structure Parameters ============ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "T", "fd_order": 1, - # Patch 1 _ Background ===================================== + # Patch 1 _ Background "patch_icpp(1)%geometry": 1, "patch_icpp(1)%x_centroid": 0.0, "patch_icpp(1)%length_x": L, @@ -104,10 +104,10 @@ "patch_icpp(1)%alpha(1)": vf0, "patch_icpp(1)%r0": 1.0, "patch_icpp(1)%v0": 0.0, - # Non-polytropic gas compression model AND/OR Tait EOS ===== + # Non-polytropic gas compression model AND/OR Tait EOS "pref": p0, "rhoref": rho0, - # Bubbles ================================================== + # Bubbles "bubbles_euler": "T", "bubble_model": 2, # Nondimensional numbers @@ -126,14 +126,14 @@ "nb": nb, # QBMM "qbmm": "F", - # Fluids Physical Parameters =============================== + # Fluids Physical Parameters # Surrounding liquid "fluid_pp(1)%gamma": 1.0e00 / (n_tait - 1.0e00), "fluid_pp(1)%pi_inf": n_tait * (B_tait / p0) / (n_tait - 1.0), "fluid_pp(1)%ss": ss, "fluid_pp(1)%pv": pv, - # Last fluid_pp is always reserved for bubble gas state === - # if applicable ========================================== + # Last fluid_pp is always reserved for bubble gas state + # if applicable "fluid_pp(2)%gamma": 1.0 / (gamma_n - 1.0), "fluid_pp(2)%pi_inf": 0.0e00, } diff --git a/examples/1D_acoustic_dipole/case.py b/examples/1D_acoustic_dipole/case.py index 9da5823de5..eab5f6f9bf 100644 --- a/examples/1D_acoustic_dipole/case.py +++ b/examples/1D_acoustic_dipole/case.py @@ -5,9 +5,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": 0, "x_domain%end": 0.001, "m": 199, @@ -17,7 +17,7 @@ "t_step_start": 0, "t_step_stop": 250, "t_step_save": 1, - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 1, "model_eqns": 2, "alt_soundspeed": "F", @@ -36,13 +36,13 @@ "avg_state": 2, "bc_x%beg": -6, "bc_x%end": -6, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "rho_wrt": "T", "parallel_io": "T", - # Patch 1 Liquid =========================================================== + # Patch 1 Liquid "patch_icpp(1)%geometry": 1, "patch_icpp(1)%x_centroid": 0.0005, "patch_icpp(1)%length_x": 0.001, @@ -50,7 +50,7 @@ "patch_icpp(1)%pres": 1e05, "patch_icpp(1)%alpha_rho(1)": 1100, "patch_icpp(1)%alpha(1)": 1.0, - # Acoustic source ========================================================== + # Acoustic source "acoustic_source": "T", "num_source": 1, "acoustic(1)%support": 1, @@ -62,7 +62,7 @@ "acoustic(1)%mag": 1.0, "acoustic(1)%gauss_sigma_time": 2e-8, "acoustic(1)%delay": 1e-7, - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (4.4e00 - 1.0e00), "fluid_pp(1)%pi_inf": 4.4e00 * 5.57e08 / (4.4e00 - 1.0e00), } diff --git a/examples/1D_acoustic_gauss_sigmadist/case.py b/examples/1D_acoustic_gauss_sigmadist/case.py index 71000be942..37f1e688a5 100644 --- a/examples/1D_acoustic_gauss_sigmadist/case.py +++ b/examples/1D_acoustic_gauss_sigmadist/case.py @@ -5,9 +5,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": 0, "x_domain%end": 0.001, "m": 199, @@ -17,7 +17,7 @@ "t_step_start": 0, "t_step_stop": 250, "t_step_save": 1, - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 1, "model_eqns": 2, "alt_soundspeed": "F", @@ -36,13 +36,13 @@ "avg_state": 2, "bc_x%beg": -6, "bc_x%end": -6, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "rho_wrt": "T", "parallel_io": "T", - # Patch 1 Liquid =========================================================== + # Patch 1 Liquid "patch_icpp(1)%geometry": 1, "patch_icpp(1)%x_centroid": 0.0005, "patch_icpp(1)%length_x": 0.001, @@ -50,7 +50,7 @@ "patch_icpp(1)%pres": 1e05, "patch_icpp(1)%alpha_rho(1)": 1100, "patch_icpp(1)%alpha(1)": 1.0, - # Acoustic source ========================================================== + # Acoustic source "acoustic_source": "T", "num_source": 1, "acoustic(1)%support": 1, @@ -61,7 +61,7 @@ "acoustic(1)%mag": 1.0, "acoustic(1)%gauss_sigma_dist": 2e-8 * 1493, "acoustic(1)%delay": 1e-7, - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (4.4e00 - 1.0e00), "fluid_pp(1)%pi_inf": 4.4e00 * 5.57e08 / (4.4e00 - 1.0e00), } diff --git a/examples/1D_acoustic_gauss_sigmatime/case.py b/examples/1D_acoustic_gauss_sigmatime/case.py index 2b43b08699..866e20fc03 100644 --- a/examples/1D_acoustic_gauss_sigmatime/case.py +++ b/examples/1D_acoustic_gauss_sigmatime/case.py @@ -5,9 +5,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": 0, "x_domain%end": 0.001, "m": 199, @@ -17,7 +17,7 @@ "t_step_start": 0, "t_step_stop": 250, "t_step_save": 1, - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 1, "model_eqns": 2, "alt_soundspeed": "F", @@ -36,13 +36,13 @@ "avg_state": 2, "bc_x%beg": -6, "bc_x%end": -6, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "rho_wrt": "T", "parallel_io": "T", - # Patch 1 Liquid =========================================================== + # Patch 1 Liquid "patch_icpp(1)%geometry": 1, "patch_icpp(1)%x_centroid": 0.0005, "patch_icpp(1)%length_x": 0.001, @@ -50,7 +50,7 @@ "patch_icpp(1)%pres": 1e05, "patch_icpp(1)%alpha_rho(1)": 1100, "patch_icpp(1)%alpha(1)": 1.0, - # Acoustic source ========================================================== + # Acoustic source "acoustic_source": "T", "num_source": 1, "acoustic(1)%support": 1, @@ -61,7 +61,7 @@ "acoustic(1)%mag": 1.0, "acoustic(1)%gauss_sigma_time": 2e-8, "acoustic(1)%delay": 1e-7, - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (4.4e00 - 1.0e00), "fluid_pp(1)%pi_inf": 4.4e00 * 5.57e08 / (4.4e00 - 1.0e00), } diff --git a/examples/1D_acoustic_sine_frequency/case.py b/examples/1D_acoustic_sine_frequency/case.py index b31d65c652..400805e00d 100644 --- a/examples/1D_acoustic_sine_frequency/case.py +++ b/examples/1D_acoustic_sine_frequency/case.py @@ -5,9 +5,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": 0, "x_domain%end": 0.001, "m": 199, @@ -17,7 +17,7 @@ "t_step_start": 0, "t_step_stop": 250, "t_step_save": 1, - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 1, "model_eqns": 2, "alt_soundspeed": "F", @@ -36,13 +36,13 @@ "avg_state": 2, "bc_x%beg": -6, "bc_x%end": -6, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "rho_wrt": "T", "parallel_io": "T", - # Patch 1 Liquid =========================================================== + # Patch 1 Liquid "patch_icpp(1)%geometry": 1, "patch_icpp(1)%x_centroid": 0.0005, "patch_icpp(1)%length_x": 0.001, @@ -50,7 +50,7 @@ "patch_icpp(1)%pres": 1e05, "patch_icpp(1)%alpha_rho(1)": 1100, "patch_icpp(1)%alpha(1)": 1.0, - # Acoustic source ========================================================== + # Acoustic source "acoustic_source": "T", "num_source": 1, "acoustic(1)%support": 1, @@ -61,7 +61,7 @@ "acoustic(1)%mag": 1.0, "acoustic(1)%frequency": 1 / 5e-8, "acoustic(1)%delay": 0, - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (4.4e00 - 1.0e00), "fluid_pp(1)%pi_inf": 4.4e00 * 5.57e08 / (4.4e00 - 1.0e00), } diff --git a/examples/1D_acoustic_sine_wavelength/case.py b/examples/1D_acoustic_sine_wavelength/case.py index dd124d767e..7b1c40b00d 100644 --- a/examples/1D_acoustic_sine_wavelength/case.py +++ b/examples/1D_acoustic_sine_wavelength/case.py @@ -5,9 +5,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": 0, "x_domain%end": 0.001, "m": 199, @@ -17,7 +17,7 @@ "t_step_start": 0, "t_step_stop": 250, "t_step_save": 5, - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 1, "model_eqns": 2, "alt_soundspeed": "F", @@ -36,13 +36,13 @@ "avg_state": 2, "bc_x%beg": -6, "bc_x%end": -6, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "rho_wrt": "T", "parallel_io": "T", - # Patch 1 Liquid =========================================================== + # Patch 1 Liquid "patch_icpp(1)%geometry": 1, "patch_icpp(1)%x_centroid": 0.0005, "patch_icpp(1)%length_x": 0.001, @@ -50,7 +50,7 @@ "patch_icpp(1)%pres": 1e05, "patch_icpp(1)%alpha_rho(1)": 1100, "patch_icpp(1)%alpha(1)": 1.0, - # Acoustic source ========================================================== + # Acoustic source "acoustic_source": "T", "num_source": 1, "acoustic(1)%support": 1, @@ -61,7 +61,7 @@ "acoustic(1)%mag": 1.0, "acoustic(1)%wavelength": 5e-8 * 1493, "acoustic(1)%delay": 0, - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (4.4e00 - 1.0e00), "fluid_pp(1)%pi_inf": 4.4e00 * 5.57e08 / (4.4e00 - 1.0e00), } diff --git a/examples/1D_bubblescreen/case.py b/examples/1D_bubblescreen/case.py index 055bdc933d..34030fca60 100755 --- a/examples/1D_bubblescreen/case.py +++ b/examples/1D_bubblescreen/case.py @@ -67,13 +67,13 @@ Nout = int(math.ceil(Nt / Nfiles)) Nt = int(Nout * Nfiles) -# Configuring case dictionary ================================================== +# Configuring case dictionary print( json.dumps( { - # Logistics ================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================== + # Computational Domain Parameters "x_domain%beg": -10.0e-03 / x0, "x_domain%end": 10.0e-03 / x0, "stretch_x": "F", @@ -85,7 +85,7 @@ "t_step_start": 0, "t_step_stop": Nt, "t_step_save": Nout, - # Simulation Algorithm Parameters ========================== + # Simulation Algorithm Parameters "num_patches": 2, "model_eqns": 2, "alt_soundspeed": "F", @@ -105,7 +105,7 @@ "avg_state": 2, "bc_x%beg": -3, "bc_x%end": -3, - # Formatted Database Files Structure Parameters ============ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", @@ -115,7 +115,7 @@ "probe_wrt": "T", "num_probes": 1, "probe(1)%x": 0.0, - # Patch 1 _ Background ===================================== + # Patch 1 _ Background "patch_icpp(1)%geometry": 1, "patch_icpp(1)%x_centroid": 0.0, "patch_icpp(1)%length_x": 20.0e-03 / x0, @@ -125,7 +125,7 @@ "patch_icpp(1)%alpha(1)": 1.0e-12, "patch_icpp(1)%r0": 1.0, "patch_icpp(1)%v0": 0.0e00, - # Patch 2 Screen =========================================== + # Patch 2 Screen "patch_icpp(2)%geometry": 1, "patch_icpp(2)%x_centroid": 0.0, "patch_icpp(2)%length_x": 5.0e-03 / x0, @@ -136,7 +136,7 @@ "patch_icpp(2)%alpha(1)": vf0, "patch_icpp(2)%r0": 1.0, "patch_icpp(2)%v0": 0.0e00, - # Fluids Physical Parameters =============================== + # Fluids Physical Parameters # Surrounding liquid "fluid_pp(1)%gamma": 1.0e00 / (n_tait - 1.0e00), "fluid_pp(1)%pi_inf": n_tait * B_tait / (n_tait - 1.0), @@ -147,18 +147,18 @@ "fluid_pp(1)%M_v": M_v, "fluid_pp(1)%mu_v": mu_v, "fluid_pp(1)%k_v": k_v, - # Last fluid_pp is always reserved for bubble gas state === - # if applicable ========================================== + # Last fluid_pp is always reserved for bubble gas state + # if applicable "fluid_pp(2)%gamma": 1.0 / (gamma_gas - 1.0), "fluid_pp(2)%pi_inf": 0.0e00, "fluid_pp(2)%gamma_v": gamma_n, "fluid_pp(2)%M_v": M_n, "fluid_pp(2)%mu_v": mu_n, "fluid_pp(2)%k_v": k_n, - # Non-polytropic gas compression model AND/OR Tait EOS ===== + # Non-polytropic gas compression model AND/OR Tait EOS "pref": p0, "rhoref": rho0, - # Bubbles ================================================== + # Bubbles "bubbles_euler": "T", "bubble_model": 3, "polytropic": "T", @@ -170,7 +170,7 @@ "Ca": Ca, "Web": We, "Re_inv": Re_inv, - # Acoustic source ========================================== + # Acoustic source "acoustic_source": "T", "num_source": 1, "acoustic(1)%support": 1, diff --git a/examples/1D_exp_bubscreen/case.py b/examples/1D_exp_bubscreen/case.py index 875bf9605b..fe48b50b9c 100755 --- a/examples/1D_exp_bubscreen/case.py +++ b/examples/1D_exp_bubscreen/case.py @@ -86,9 +86,9 @@ print( json.dumps( { - # Logistics ================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================== + # Computational Domain Parameters "x_domain%beg": -0.15 / x0, "x_domain%end": 0.15 / x0, "stretch_x": "F", @@ -100,7 +100,7 @@ "t_step_start": 0, "t_step_stop": Nt, "t_step_save": Nout, - # Simulation Algorithm Parameters ========================== + # Simulation Algorithm Parameters "num_patches": 2, "model_eqns": 2, "alt_soundspeed": "F", @@ -120,7 +120,7 @@ "avg_state": 2, "bc_x%beg": -8, "bc_x%end": -8, - # Formatted Database Files Structure Parameters ============ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", @@ -130,7 +130,7 @@ "probe_wrt": "T", "num_probes": 1, "probe(1)%x": 0.0, - # Patch 1 _ Background ===================================== + # Patch 1 _ Background # this problem is 1D... so based on the dimension of the problem # you have different 'geometries' available to you # e.g. in 3D you might have spherical geometries @@ -153,7 +153,7 @@ "patch_icpp(1)%r0": 1.0, # dimensionless initial velocity "patch_icpp(1)%v0": 0.0e00, - # Patch 2 Screen =========================================== + # Patch 2 Screen "patch_icpp(2)%geometry": 1, # overwrite the part in the middle that was the # background (no bubble) area @@ -171,7 +171,7 @@ "patch_icpp(2)%alpha(1)": vf0, "patch_icpp(2)%r0": 1.0, "patch_icpp(2)%v0": 0.0e00, - # Fluids Physical Parameters =============================== + # Fluids Physical Parameters # Surrounding liquid "fluid_pp(1)%gamma": 1.0e00 / (n_tait - 1.0e00), "fluid_pp(1)%pi_inf": n_tait * B_tait / (n_tait - 1.0), @@ -182,18 +182,18 @@ # 'fluid_pp(1)%M_v' : M_v, # 'fluid_pp(1)%mu_v' : mu_v, # 'fluid_pp(1)%k_v' : k_v, - # Last fluid_pp is always reserved for bubble gas state === - # if applicable ========================================== + # Last fluid_pp is always reserved for bubble gas state + # if applicable "fluid_pp(2)%gamma": 1.0 / (gamma_gas - 1.0), "fluid_pp(2)%pi_inf": 0.0e00, # 'fluid_pp(2)%gamma_v' : gamma_n, # 'fluid_pp(2)%M_v' : M_n, # 'fluid_pp(2)%mu_v' : mu_n, # 'fluid_pp(2)%k_v' : k_n, - # Non-polytropic gas compression model AND/OR Tait EOS ===== + # Non-polytropic gas compression model AND/OR Tait EOS "pref": p0, "rhoref": rho0, - # Bubbles ================================================== + # Bubbles "bubbles_euler": "T", # in user guide... 1 = gilbert 2 = keller-miksis # but gilbert won't work for the equations that you are using... (i think) @@ -219,7 +219,7 @@ "Web": We, # inverse reynolds number (corresponds to viscosity) "Re_inv": Re_inv, - # Acoustic source ========================================== + # Acoustic source "acoustic_source": "T", "num_source": 1, "acoustic(1)%support": 1, diff --git a/examples/1D_exp_tube_phasechange/case.py b/examples/1D_exp_tube_phasechange/case.py index 919de88bad..3246589892 100644 --- a/examples/1D_exp_tube_phasechange/case.py +++ b/examples/1D_exp_tube_phasechange/case.py @@ -105,13 +105,13 @@ aa1 = 1 - awl1 - awv1 -# Configuring case dictionary ================================================== +# Configuring case dictionary print( json.dumps( { - # Logistics ================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================== + # Computational Domain Parameters "x_domain%beg": xb, "x_domain%end": xe, "m": Nx, @@ -121,7 +121,7 @@ "t_step_start": 0, "t_step_stop": Nt, "t_step_save": AS, - # Simulation Algorithm Parameters ========================== + # Simulation Algorithm Parameters "num_patches": 2, "model_eqns": 3, "num_fluids": 3, @@ -142,12 +142,12 @@ "avg_state": 2, "bc_x%beg": -3, "bc_x%end": -3, - # Formatted Database Files Structure Parameters ============ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "T", - # Patch 1 - Shocked Stated ==================================== + # Patch 1 - Shocked Stated "patch_icpp(1)%geometry": 1, "patch_icpp(1)%x_centroid": (xe + xb) * 1 / 4, "patch_icpp(1)%length_x": (xe - xb) * 1 / 2, @@ -159,7 +159,7 @@ "patch_icpp(1)%alpha(1)": awl1, "patch_icpp(1)%alpha(2)": awv1, "patch_icpp(1)%alpha(3)": aa1, - # Patch 2 R ================================================ + # Patch 2 R "patch_icpp(2)%geometry": 1, "patch_icpp(2)%x_centroid": (xe + xb) * 3 / 4, "patch_icpp(2)%length_x": (xe - xb) * 1 / 2, @@ -171,7 +171,7 @@ "patch_icpp(2)%alpha(1)": awl1, "patch_icpp(2)%alpha(2)": awv1, "patch_icpp(2)%alpha(3)": aa1, - # Fluids Physical Parameters =============================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (gamwl - 1), "fluid_pp(1)%pi_inf": gamwl * piwl / (gamwl - 1), "fluid_pp(1)%cv": cvwl, diff --git a/examples/1D_hypo_2materials/case.py b/examples/1D_hypo_2materials/case.py index fdbcf266e1..137fb8824c 100755 --- a/examples/1D_hypo_2materials/case.py +++ b/examples/1D_hypo_2materials/case.py @@ -14,9 +14,9 @@ print( json.dumps( { - # Logistics ================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================== + # Computational Domain Parameters "x_domain%beg": 0.0e00, "x_domain%end": 1.0e00, "m": 25, @@ -26,7 +26,7 @@ "t_step_start": 0, "t_step_stop": 50, "t_step_save": 50, - # Simulation Algorithm Parameters ========================== + # Simulation Algorithm Parameters "num_patches": 2, "model_eqns": 2, "alt_soundspeed": "F", @@ -46,15 +46,15 @@ "avg_state": 2, "bc_x%beg": -3, "bc_x%end": -3, - # Turning on Hypoelasticity ================================ + # Turning on Hypoelasticity "hypoelasticity": "T", "fd_order": 4, - # Formatted Database Files Structure Parameters ============ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "F", - # Patch 1 L ================================================ + # Patch 1 L "patch_icpp(1)%geometry": 1, "patch_icpp(1)%x_centroid": 0.35, "patch_icpp(1)%length_x": 0.7, @@ -65,7 +65,7 @@ "patch_icpp(1)%alpha(1)": 1, "patch_icpp(1)%alpha(2)": 0.0, "patch_icpp(1)%tau_e(1)": 0.0, - # Patch 2 R ================================================ + # Patch 2 R "patch_icpp(2)%geometry": 1, "patch_icpp(2)%x_centroid": 0.85, "patch_icpp(2)%length_x": 0.3, @@ -76,7 +76,7 @@ "patch_icpp(2)%alpha(1)": 0, "patch_icpp(2)%alpha(2)": 1, "patch_icpp(2)%tau_e(1)": 0.0, - # Fluids Physical Parameters =============================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (4.4e00 - 1.0e00), "fluid_pp(1)%pi_inf": 4.4e00 * 6.0e08 / (4.4e00 - 1.0e00), "fluid_pp(1)%G": 1.0e09, diff --git a/examples/1D_impact/case.py b/examples/1D_impact/case.py index e0f04d345b..f83793ea14 100755 --- a/examples/1D_impact/case.py +++ b/examples/1D_impact/case.py @@ -14,9 +14,9 @@ print( json.dumps( { - # Logistics ================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================== + # Computational Domain Parameters "x_domain%beg": 0.0e00, "x_domain%end": 1.0e00, "m": Nx, @@ -26,7 +26,7 @@ "t_step_start": 0, "t_step_stop": int(Nt), "t_step_save": int(math.ceil(Nt / 1.0)), - # Simulation Algorithm Parameters ========================== + # Simulation Algorithm Parameters "num_patches": 2, "model_eqns": 2, "alt_soundspeed": "F", @@ -46,15 +46,15 @@ "avg_state": 2, "bc_x%beg": -3, "bc_x%end": -3, - # Turning on Hypoelasticity ================================ + # Turning on Hypoelasticity "hypoelasticity": "T", "fd_order": 4, - # Formatted Database Files Structure Parameters ============ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "F", - # Patch 1 L ================================================ + # Patch 1 L "patch_icpp(1)%geometry": 1, "patch_icpp(1)%x_centroid": 0.25, "patch_icpp(1)%length_x": 0.5, @@ -63,7 +63,7 @@ "patch_icpp(1)%alpha_rho(1)": 1000, "patch_icpp(1)%alpha(1)": 1.0, "patch_icpp(1)%tau_e(1)": 0.0, - # Patch 2 R ================================================ + # Patch 2 R "patch_icpp(2)%geometry": 1, "patch_icpp(2)%x_centroid": 0.75, "patch_icpp(2)%length_x": 0.5, @@ -72,7 +72,7 @@ "patch_icpp(2)%alpha_rho(1)": 1000, "patch_icpp(2)%alpha(1)": 1.0, "patch_icpp(2)%tau_e(1)": 0.0, - # Fluids Physical Parameters =============================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (4.4e00 - 1.0e00), "fluid_pp(1)%pi_inf": 4.4e00 * 6.0e08 / (4.4e00 - 1.0e00), "fluid_pp(1)%G": 0.5e09, diff --git a/examples/1D_inert_shocktube/case.py b/examples/1D_inert_shocktube/case.py index a902e85426..d25fb657ee 100644 --- a/examples/1D_inert_shocktube/case.py +++ b/examples/1D_inert_shocktube/case.py @@ -43,9 +43,9 @@ NS = NT // SAVE_COUNT case = { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": -L / 2, "x_domain%end": +L / 2, "m": Nx, @@ -57,7 +57,7 @@ "t_step_save": NS, "t_step_print": NS, "parallel_io": "F", - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "model_eqns": 2, "num_fluids": 1, "num_patches": 2, @@ -74,11 +74,11 @@ "avg_state": 1, "bc_x%beg": -2, "bc_x%end": -3, - # Chemistry ================================================================ + # Chemistry "chemistry": "F" if not args.chemistry else "T", "chem_params%diffusion": "F", "chem_params%reactions": "T", - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", @@ -96,10 +96,10 @@ "patch_icpp(2)%pres": sol_R.P, "patch_icpp(2)%alpha(1)": 1, "patch_icpp(2)%alpha_rho(1)": sol_R.density, - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (1.55e00 - 1.0e00), "fluid_pp(1)%pi_inf": 0, - # Chemistry ================================================================ + # Chemistry "cantera_file": ctfile, } diff --git a/examples/1D_kapilashocktube/case.py b/examples/1D_kapilashocktube/case.py index d662ddf72f..b6efbbec88 100755 --- a/examples/1D_kapilashocktube/case.py +++ b/examples/1D_kapilashocktube/case.py @@ -1,13 +1,13 @@ #!/usr/bin/env python3 import json -# Configuring case dictionary ================================================== +# Configuring case dictionary print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": 0.0e00, "x_domain%end": 1.0e00, "m": 999, @@ -17,7 +17,7 @@ "t_step_start": 0, "t_step_stop": 6025, "t_step_save": 100, - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 2, "model_eqns": 2, "alt_soundspeed": "T", @@ -37,12 +37,12 @@ "avg_state": 2, "bc_x%beg": -3, "bc_x%end": -3, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "T", - # Patch 1: High pressured water ============================================ + # Patch 1: High pressured water "patch_icpp(1)%geometry": 1, "patch_icpp(1)%x_centroid": 0.5e00, "patch_icpp(1)%length_x": 1.0e00, @@ -52,7 +52,7 @@ "patch_icpp(1)%alpha_rho(2)": 0.0, "patch_icpp(1)%alpha(1)": 1.0e00, "patch_icpp(1)%alpha(2)": 0.0e00, - # Patch 2: Air bubble ====================================================== + # Patch 2: Air bubble "patch_icpp(2)%geometry": 1, "patch_icpp(2)%x_centroid": 0.85e00, "patch_icpp(2)%length_x": 0.3e00, @@ -63,7 +63,7 @@ "patch_icpp(2)%alpha_rho(2)": 50.0e0, "patch_icpp(2)%alpha(1)": 0, "patch_icpp(2)%alpha(2)": 1.0, - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (4.4e00 - 1.0e00), "fluid_pp(1)%pi_inf": 4.4e00 * 6.0e08 / (4.4e00 - 1.0e00), "fluid_pp(2)%gamma": 1.0e00 / (1.4e00 - 1.0e00), diff --git a/examples/1D_laxshocktube/case.py b/examples/1D_laxshocktube/case.py index a5a9b1e89a..6426e2fe05 100644 --- a/examples/1D_laxshocktube/case.py +++ b/examples/1D_laxshocktube/case.py @@ -13,9 +13,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": 0.0e00, "x_domain%end": 1.0e00, "m": Nx, @@ -25,7 +25,7 @@ "t_step_start": 0, "t_step_stop": int(Nt), "t_step_save": int(math.ceil(Nt / 10.0)), - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 2, "model_eqns": 2, "alt_soundspeed": "F", @@ -43,12 +43,12 @@ "avg_state": 2, "bc_x%beg": -3, "bc_x%end": -3, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "F", - # Patch 1 L ================================================================ + # Patch 1 L "patch_icpp(1)%geometry": 1, "patch_icpp(1)%x_centroid": 0.25, "patch_icpp(1)%length_x": 0.5, @@ -56,7 +56,7 @@ "patch_icpp(1)%pres": 3.528, "patch_icpp(1)%alpha_rho(1)": 0.445e00, "patch_icpp(1)%alpha(1)": 1.0, - # Patch 2 R ================================================================ + # Patch 2 R "patch_icpp(2)%geometry": 1, "patch_icpp(2)%x_centroid": 0.75, "patch_icpp(2)%length_x": 0.5, @@ -64,7 +64,7 @@ "patch_icpp(2)%pres": 0.571, "patch_icpp(2)%alpha_rho(1)": 0.5e00, "patch_icpp(2)%alpha(1)": 1.0, - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (1.4 - 1.0e00), "fluid_pp(1)%pi_inf": 0.0, } diff --git a/examples/1D_poly_bubscreen/case.py b/examples/1D_poly_bubscreen/case.py index 37ec997bb6..df69501e4c 100644 --- a/examples/1D_poly_bubscreen/case.py +++ b/examples/1D_poly_bubscreen/case.py @@ -77,9 +77,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "F", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": -10.0e-03 / x0, "x_domain%end": 10.0e-03 / x0, "stretch_x": "F", @@ -91,7 +91,7 @@ "t_step_start": 0, "t_step_stop": 1, "t_step_save": 1, - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 1, "model_eqns": 2, "alt_soundspeed": "F", @@ -111,7 +111,7 @@ "avg_state": 2, "bc_x%beg": -1, "bc_x%end": -1, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", @@ -121,7 +121,7 @@ "probe_wrt": "T", "num_probes": 1, "probe(1)%x": 0.0, - # Patch 1 _ Background ===================================================== + # Patch 1 _ Background "patch_icpp(1)%geometry": 1, "patch_icpp(1)%x_centroid": 0.0, "patch_icpp(1)%length_x": 20.0e-03 / x0, @@ -131,7 +131,7 @@ "patch_icpp(1)%alpha(1)": vf0, "patch_icpp(1)%r0": 1.0, "patch_icpp(1)%v0": 0.0e00, - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters # Surrounding liquid "fluid_pp(1)%gamma": 1.0e00 / (n_tait - 1.0e00), "fluid_pp(1)%pi_inf": n_tait * B_tait / (n_tait - 1.0), @@ -142,18 +142,18 @@ "fluid_pp(1)%M_v": M_v, "fluid_pp(1)%mu_v": mu_v, "fluid_pp(1)%k_v": k_v, - # Last fluid_pp is always reserved for bubble gas state =================== - # if applicable ========================================================== + # Last fluid_pp is always reserved for bubble gas state + # if applicable "fluid_pp(2)%gamma": 1.0 / (gamma_gas - 1.0), "fluid_pp(2)%pi_inf": 0.0e00, "fluid_pp(2)%gamma_v": gamma_n, "fluid_pp(2)%M_v": M_n, "fluid_pp(2)%mu_v": mu_n, "fluid_pp(2)%k_v": k_n, - # Non-polytropic gas compression model AND/OR Tait EOS ===================== + # Non-polytropic gas compression model AND/OR Tait EOS "pref": p0, "rhoref": rho0, - # Bubbles ================================================================== + # Bubbles "bubbles_euler": "T", "bubble_model": 2, "polytropic": "T", diff --git a/examples/1D_qbmm/case.py b/examples/1D_qbmm/case.py index 1efd795251..5298782f5a 100644 --- a/examples/1D_qbmm/case.py +++ b/examples/1D_qbmm/case.py @@ -76,9 +76,9 @@ print( json.dumps( { - # Logistics ================================================ + # Logistics "run_time_info": "F", - # Computational Domain Parameters ========================== + # Computational Domain Parameters "x_domain%beg": -10.0e-03 / x0, "x_domain%end": 10.0e-03 / x0, "stretch_x": "F", @@ -92,7 +92,7 @@ # 't_step_stop' : 4, "t_step_save": 80, # 't_step_save' : 1, - # Simulation Algorithm Parameters ========================== + # Simulation Algorithm Parameters "num_patches": 2, "model_eqns": 2, "alt_soundspeed": "F", @@ -112,7 +112,7 @@ "avg_state": 2, "bc_x%beg": -8, "bc_x%end": -8, - # Formatted Database Files Structure Parameters ============ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", @@ -122,7 +122,7 @@ "probe_wrt": "T", "num_probes": 1, "probe(1)%x": 0.0, - # Patch 1 _ Background ===================================== + # Patch 1 _ Background "patch_icpp(1)%geometry": 1, "patch_icpp(1)%x_centroid": 0.0, "patch_icpp(1)%length_x": 20.0e-03 / x0, @@ -132,7 +132,7 @@ "patch_icpp(1)%alpha(1)": 1.0e-12, "patch_icpp(1)%r0": 1.0, "patch_icpp(1)%v0": 0.0e00, - # Patch 2 Screen =========================================== + # Patch 2 Screen "patch_icpp(2)%geometry": 1, "patch_icpp(2)%x_centroid": 0.0, "patch_icpp(2)%length_x": 5.0e-03 / x0, @@ -144,7 +144,7 @@ "patch_icpp(2)%alpha(1)": vf0, "patch_icpp(2)%r0": 1.0, "patch_icpp(2)%v0": 0.0, - # Fluids Physical Parameters =============================== + # Fluids Physical Parameters # Surrounding liquid "fluid_pp(1)%gamma": 1.0e00 / (n_tait - 1.0e00), "fluid_pp(1)%pi_inf": n_tait * B_tait / (n_tait - 1.0), @@ -155,18 +155,18 @@ "fluid_pp(1)%M_v": M_v, "fluid_pp(1)%mu_v": mu_v, "fluid_pp(1)%k_v": k_v, - # Last fluid_pp is always reserved for bubble gas state === - # if applicable ========================================== + # Last fluid_pp is always reserved for bubble gas state + # if applicable "fluid_pp(2)%gamma": 1.0 / (gamma_gas - 1.0), "fluid_pp(2)%pi_inf": 0.0e00, "fluid_pp(2)%gamma_v": gamma_n, "fluid_pp(2)%M_v": M_n, "fluid_pp(2)%mu_v": mu_n, "fluid_pp(2)%k_v": k_n, - # Non-polytropic gas compression model AND/OR Tait EOS ===== + # Non-polytropic gas compression model AND/OR Tait EOS "pref": p0, "rhoref": rho0, - # Bubbles ================================================== + # Bubbles "bubbles_euler": "T", "bubble_model": 2, "polytropic": "F", diff --git a/examples/1D_reactive_shocktube/case.py b/examples/1D_reactive_shocktube/case.py index 43dd1a6f73..8a8edce66d 100644 --- a/examples/1D_reactive_shocktube/case.py +++ b/examples/1D_reactive_shocktube/case.py @@ -47,9 +47,9 @@ NS = NT // SAVE_COUNT case = { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": 0, "x_domain%end": L, "m": Nx, @@ -61,7 +61,7 @@ "t_step_save": NS, "t_step_print": NS, "parallel_io": "F" if args.mfc.get("mpi", True) else "F", - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "model_eqns": 2, "num_fluids": 1, "num_patches": 2, @@ -78,12 +78,12 @@ "avg_state": 2, "bc_x%beg": -2, "bc_x%end": -3, - # Chemistry ================================================================ + # Chemistry "chemistry": "F" if not args.chemistry else "T", "chem_params%diffusion": "F", "chem_params%reactions": "T", "cantera_file": ctfile, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", @@ -102,7 +102,7 @@ "patch_icpp(2)%pres": sol_R.P, "patch_icpp(2)%alpha(1)": 1, "patch_icpp(2)%alpha_rho(1)": sol_R.density, - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (4.4e00 - 1.0e00), "fluid_pp(1)%pi_inf": 0, } diff --git a/examples/1D_shuosher_old/case.py b/examples/1D_shuosher_old/case.py index 34ef517ecf..30e50acff5 100644 --- a/examples/1D_shuosher_old/case.py +++ b/examples/1D_shuosher_old/case.py @@ -13,9 +13,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": -5.0, "x_domain%end": 5.0, "m": Nx, @@ -25,7 +25,7 @@ "t_step_start": 0, "t_step_stop": int(Nt), "t_step_save": int(math.ceil(Nt / 10.0)), - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 2, "model_eqns": 2, "alt_soundspeed": "F", @@ -43,13 +43,13 @@ "avg_state": 2, "bc_x%beg": -3, "bc_x%end": -3, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "F", # Background to cover whole domain with basic line patch - # Patch 1 Left (-5 < x < -4) =============================================== + # Patch 1 Left (-5 < x < -4) "patch_icpp(1)%geometry": 1, "patch_icpp(1)%x_centroid": -4.5, "patch_icpp(1)%length_x": 1.0, @@ -58,7 +58,7 @@ "patch_icpp(1)%alpha_rho(1)": 3.957143, "patch_icpp(1)%alpha(1)": 1.0, # One anlytic patch to take care of -4 < x < 5 - # Patch 2 Analytic ========================================================= + # Patch 2 Analytic "patch_icpp(2)%geometry": 1, "patch_icpp(2)%x_centroid": 0.5, "patch_icpp(2)%length_x": 9.0, @@ -66,7 +66,7 @@ "patch_icpp(2)%pres": 1.0, "patch_icpp(2)%alpha_rho(1)": "1 + 0.2*sin(5*x)", "patch_icpp(2)%alpha(1)": 1.0, - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (1.4 - 1.0e00), "fluid_pp(1)%pi_inf": 0.0, } diff --git a/examples/1D_shuosher_teno5/case.py b/examples/1D_shuosher_teno5/case.py index a97cf54de3..1bbe603ebd 100644 --- a/examples/1D_shuosher_teno5/case.py +++ b/examples/1D_shuosher_teno5/case.py @@ -13,9 +13,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": 0.0, "x_domain%end": 10.0, "m": Nx, @@ -25,7 +25,7 @@ "t_step_start": 0, "t_step_stop": int(Nt), "t_step_save": int(math.ceil(Nt / 10.0)), - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 2, "model_eqns": 2, "alt_soundspeed": "F", @@ -44,14 +44,14 @@ "avg_state": 2, "bc_x%beg": -3, "bc_x%end": -3, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "rho_wrt": "T", "parallel_io": "T", # Background to cover whole domain with basic line patch - # Patch 1 Left (0 < x < 1) =============================================== + # Patch 1 Left (0 < x < 1) "patch_icpp(1)%geometry": 1, "patch_icpp(1)%x_centroid": 0.5, "patch_icpp(1)%length_x": 1.0, @@ -60,7 +60,7 @@ "patch_icpp(1)%alpha_rho(1)": 3.857, "patch_icpp(1)%alpha(1)": 1.0, # One anlytic patch to take care of 1 < x < 10 - # Patch 2 Analytic ========================================================= + # Patch 2 Analytic "patch_icpp(2)%geometry": 1, "patch_icpp(2)%x_centroid": 5.5, "patch_icpp(2)%length_x": 9.0, @@ -68,7 +68,7 @@ "patch_icpp(2)%pres": 1.0, "patch_icpp(2)%alpha_rho(1)": "1 + 0.2*sin(5*x)", "patch_icpp(2)%alpha(1)": 1.0, - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (1.4 - 1.0e00), "fluid_pp(1)%pi_inf": 0.0, } diff --git a/examples/1D_shuosher_teno7/case.py b/examples/1D_shuosher_teno7/case.py index f9d0e9deea..c0ebc43436 100644 --- a/examples/1D_shuosher_teno7/case.py +++ b/examples/1D_shuosher_teno7/case.py @@ -13,9 +13,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": 0.0, "x_domain%end": 10.0, "m": Nx, @@ -25,7 +25,7 @@ "t_step_start": 0, "t_step_stop": int(Nt), "t_step_save": int(math.ceil(Nt / 10.0)), - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 2, "model_eqns": 2, "alt_soundspeed": "F", @@ -44,14 +44,14 @@ "avg_state": 2, "bc_x%beg": -3, "bc_x%end": -3, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "rho_wrt": "T", "parallel_io": "T", # Background to cover whole domain with basic line patch - # Patch 1 Left (0 < x < 1) =============================================== + # Patch 1 Left (0 < x < 1) "patch_icpp(1)%geometry": 1, "patch_icpp(1)%x_centroid": 0.5, "patch_icpp(1)%length_x": 1.0, @@ -60,7 +60,7 @@ "patch_icpp(1)%alpha_rho(1)": 3.857, "patch_icpp(1)%alpha(1)": 1.0, # One anlytic patch to take care of 1 < x < 10 - # Patch 2 Analytic ========================================================= + # Patch 2 Analytic "patch_icpp(2)%geometry": 1, "patch_icpp(2)%x_centroid": 5.5, "patch_icpp(2)%length_x": 9.0, @@ -68,7 +68,7 @@ "patch_icpp(2)%pres": 1.0, "patch_icpp(2)%alpha_rho(1)": "1 + 0.2*sin(5*x)", "patch_icpp(2)%alpha(1)": 1.0, - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (1.4 - 1.0e00), "fluid_pp(1)%pi_inf": 0.0, } diff --git a/examples/1D_shuosher_wenojs5/case.py b/examples/1D_shuosher_wenojs5/case.py index b83f5f05ec..01f18f1ec0 100644 --- a/examples/1D_shuosher_wenojs5/case.py +++ b/examples/1D_shuosher_wenojs5/case.py @@ -13,9 +13,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": 0.0, "x_domain%end": 10.0, "m": Nx, @@ -25,7 +25,7 @@ "t_step_start": 0, "t_step_stop": int(Nt), "t_step_save": int(math.ceil(Nt / 10.0)), - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 2, "model_eqns": 2, "alt_soundspeed": "F", @@ -43,14 +43,14 @@ "avg_state": 2, "bc_x%beg": -3, "bc_x%end": -3, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "rho_wrt": "T", "parallel_io": "T", # Background to cover whole domain with basic line patch - # Patch 1 Left (0 < x < 1) =============================================== + # Patch 1 Left (0 < x < 1) "patch_icpp(1)%geometry": 1, "patch_icpp(1)%x_centroid": 0.5, "patch_icpp(1)%length_x": 1.0, @@ -59,7 +59,7 @@ "patch_icpp(1)%alpha_rho(1)": 3.857, "patch_icpp(1)%alpha(1)": 1.0, # One anlytic patch to take care of 1 < x < 10 - # Patch 2 Analytic ========================================================= + # Patch 2 Analytic "patch_icpp(2)%geometry": 1, "patch_icpp(2)%x_centroid": 5.5, "patch_icpp(2)%length_x": 9.0, @@ -67,7 +67,7 @@ "patch_icpp(2)%pres": 1.0, "patch_icpp(2)%alpha_rho(1)": "1 + 0.2*sin(5*x)", "patch_icpp(2)%alpha(1)": 1.0, - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (1.4 - 1.0e00), "fluid_pp(1)%pi_inf": 0.0, } diff --git a/examples/1D_shuosher_wenom5/case.py b/examples/1D_shuosher_wenom5/case.py index b4580f87fb..7549d7a337 100644 --- a/examples/1D_shuosher_wenom5/case.py +++ b/examples/1D_shuosher_wenom5/case.py @@ -13,9 +13,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": 0.0, "x_domain%end": 10.0, "m": Nx, @@ -25,7 +25,7 @@ "t_step_start": 0, "t_step_stop": int(Nt), "t_step_save": int(math.ceil(Nt / 10.0)), - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 2, "model_eqns": 2, "alt_soundspeed": "F", @@ -43,14 +43,14 @@ "avg_state": 2, "bc_x%beg": -3, "bc_x%end": -3, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "rho_wrt": "T", "parallel_io": "T", # Background to cover whole domain with basic line patch - # Patch 1 Left (0 < x < 1) =============================================== + # Patch 1 Left (0 < x < 1) "patch_icpp(1)%geometry": 1, "patch_icpp(1)%x_centroid": 0.5, "patch_icpp(1)%length_x": 1.0, @@ -59,7 +59,7 @@ "patch_icpp(1)%alpha_rho(1)": 3.857, "patch_icpp(1)%alpha(1)": 1.0, # One anlytic patch to take care of 1 < x < 10 - # Patch 2 Analytic ========================================================= + # Patch 2 Analytic "patch_icpp(2)%geometry": 1, "patch_icpp(2)%x_centroid": 5.5, "patch_icpp(2)%length_x": 9.0, @@ -67,7 +67,7 @@ "patch_icpp(2)%pres": 1.0, "patch_icpp(2)%alpha_rho(1)": "1 + 0.2*sin(5*x)", "patch_icpp(2)%alpha(1)": 1.0, - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (1.4 - 1.0e00), "fluid_pp(1)%pi_inf": 0.0, } diff --git a/examples/1D_shuosher_wenoz5/case.py b/examples/1D_shuosher_wenoz5/case.py index 1e0fed3e4e..7750fb4b1c 100644 --- a/examples/1D_shuosher_wenoz5/case.py +++ b/examples/1D_shuosher_wenoz5/case.py @@ -13,9 +13,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": 0.0, "x_domain%end": 10.0, "m": Nx, @@ -25,7 +25,7 @@ "t_step_start": 0, "t_step_stop": int(Nt), "t_step_save": int(math.ceil(Nt / 10.0)), - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 2, "model_eqns": 2, "alt_soundspeed": "F", @@ -43,14 +43,14 @@ "avg_state": 2, "bc_x%beg": -3, "bc_x%end": -3, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "rho_wrt": "T", "parallel_io": "T", # Background to cover whole domain with basic line patch - # Patch 1 Left (0 < x < 1) =============================================== + # Patch 1 Left (0 < x < 1) "patch_icpp(1)%geometry": 1, "patch_icpp(1)%x_centroid": 0.5, "patch_icpp(1)%length_x": 1.0, @@ -59,7 +59,7 @@ "patch_icpp(1)%alpha_rho(1)": 3.857, "patch_icpp(1)%alpha(1)": 1.0, # One anlytic patch to take care of 1 < x < 10 - # Patch 2 Analytic ========================================================= + # Patch 2 Analytic "patch_icpp(2)%geometry": 1, "patch_icpp(2)%x_centroid": 5.5, "patch_icpp(2)%length_x": 9.0, @@ -67,7 +67,7 @@ "patch_icpp(2)%pres": 1.0, "patch_icpp(2)%alpha_rho(1)": "1 + 0.2*sin(5*x)", "patch_icpp(2)%alpha(1)": 1.0, - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (1.4 - 1.0e00), "fluid_pp(1)%pi_inf": 0.0, } diff --git a/examples/1D_sodHypo/case.py b/examples/1D_sodHypo/case.py index 0650a5a6e2..73c7a3f88e 100755 --- a/examples/1D_sodHypo/case.py +++ b/examples/1D_sodHypo/case.py @@ -14,9 +14,9 @@ print( json.dumps( { - # Logistics ================================================ + # Logistics "run_time_info": "F", - # Computational Domain Parameters ========================== + # Computational Domain Parameters "x_domain%beg": 0.0e00, "x_domain%end": 1.0e00, "m": Nx, @@ -26,7 +26,7 @@ "t_step_start": 0, "t_step_stop": int(Nt), "t_step_save": int(Nt), - # Simulation Algorithm Parameters ========================== + # Simulation Algorithm Parameters "num_patches": 2, "model_eqns": 2, "alt_soundspeed": "F", @@ -46,14 +46,14 @@ "avg_state": 2, "bc_x%beg": -3, "bc_x%end": -3, - # Turning on Hypoelasticity ================================ + # Turning on Hypoelasticity "hypoelasticity": "T", - # Formatted Database Files Structure Parameters ============ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "F", - # Patch 1 L ================================================ + # Patch 1 L "patch_icpp(1)%geometry": 1, "patch_icpp(1)%x_centroid": 0.25, "patch_icpp(1)%length_x": 0.5, @@ -62,7 +62,7 @@ "patch_icpp(1)%alpha_rho(1)": 1000, "patch_icpp(1)%alpha(1)": 1.0, "patch_icpp(1)%tau_e(1)": 0.0, - # Patch 2 R ================================================ + # Patch 2 R "patch_icpp(2)%geometry": 1, "patch_icpp(2)%x_centroid": 0.75, "patch_icpp(2)%length_x": 0.5, @@ -71,7 +71,7 @@ "patch_icpp(2)%alpha_rho(1)": 1000, "patch_icpp(2)%alpha(1)": 1.0, "patch_icpp(2)%tau_e(1)": 0.0, - # Fluids Physical Parameters =============================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (4.4e00 - 1.0e00), "fluid_pp(1)%pi_inf": 4.4e00 * 6.0e08 / (4.4e00 - 1.0e00), "fluid_pp(1)%G": 10e09, diff --git a/examples/1D_sodshocktube/case.py b/examples/1D_sodshocktube/case.py index 2607d705c8..0cb23dbb92 100755 --- a/examples/1D_sodshocktube/case.py +++ b/examples/1D_sodshocktube/case.py @@ -13,9 +13,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": 0.0e00, "x_domain%end": 1.0e00, "m": Nx, @@ -25,7 +25,7 @@ "t_step_start": 0, "t_step_stop": int(Nt), "t_step_save": int(math.ceil(Nt / 10.0)), - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 2, "model_eqns": 2, "alt_soundspeed": "F", @@ -45,12 +45,12 @@ "avg_state": 2, "bc_x%beg": -3, "bc_x%end": -3, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "T", - # Patch 1 L ================================================================ + # Patch 1 L "patch_icpp(1)%geometry": 1, "patch_icpp(1)%x_centroid": 0.25, "patch_icpp(1)%length_x": 0.5, @@ -58,7 +58,7 @@ "patch_icpp(1)%pres": 1.0, "patch_icpp(1)%alpha_rho(1)": 1.0e00, "patch_icpp(1)%alpha(1)": 1.0, - # Patch 2 R ================================================================ + # Patch 2 R "patch_icpp(2)%geometry": 1, "patch_icpp(2)%x_centroid": 0.75, "patch_icpp(2)%length_x": 0.5, @@ -66,7 +66,7 @@ "patch_icpp(2)%pres": 0.1, "patch_icpp(2)%alpha_rho(1)": 0.125e00, "patch_icpp(2)%alpha(1)": 1.0, - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (1.4 - 1.0e00), "fluid_pp(1)%pi_inf": 0.0, } diff --git a/examples/1D_titarevtorro/case.py b/examples/1D_titarevtorro/case.py index 074d4b7164..3a51bd86b0 100644 --- a/examples/1D_titarevtorro/case.py +++ b/examples/1D_titarevtorro/case.py @@ -13,9 +13,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": -5.0, "x_domain%end": 5.0, "m": Nx, @@ -25,7 +25,7 @@ "t_step_start": 0, "t_step_stop": int(Nt), "t_step_save": int(math.ceil(Nt / 10.0)), - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 2, "model_eqns": 2, "alt_soundspeed": "F", @@ -43,12 +43,12 @@ "avg_state": 2, "bc_x%beg": -3, "bc_x%end": -3, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "F", - # Patch 1 L (-5 < x < -4.5) ================================================ + # Patch 1 L (-5 < x < -4.5) "patch_icpp(1)%geometry": 1, "patch_icpp(1)%x_centroid": -4.75, "patch_icpp(1)%length_x": 0.5, @@ -56,7 +56,7 @@ "patch_icpp(1)%pres": 1.805, "patch_icpp(1)%alpha_rho(1)": 1.515695, "patch_icpp(1)%alpha(1)": 1.0, - # Patch 2 R (-4.5 < x < 5) ================================================= + # Patch 2 R (-4.5 < x < 5) "patch_icpp(2)%geometry": 1, "patch_icpp(2)%x_centroid": 0.25, "patch_icpp(2)%length_x": 9.5, @@ -64,7 +64,7 @@ "patch_icpp(2)%pres": 1.0, "patch_icpp(2)%alpha_rho(1)": "1 + 0.1*sin(20*x*pi)", "patch_icpp(2)%alpha(1)": 1.0, - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (1.4 - 1.0e00), "fluid_pp(1)%pi_inf": 0.0, } diff --git a/examples/1D_vacuum/case.py b/examples/1D_vacuum/case.py index d5ad25bdee..c86a08af1c 100644 --- a/examples/1D_vacuum/case.py +++ b/examples/1D_vacuum/case.py @@ -5,9 +5,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": 0.0e00, "x_domain%end": 1.0e00, "m": 199, @@ -17,7 +17,7 @@ "t_step_start": 0, "t_step_stop": 15000, "t_step_save": 1000, - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 2, "model_eqns": 3, "alt_soundspeed": "F", @@ -37,12 +37,12 @@ "avg_state": 2, "bc_x%beg": -3, "bc_x%end": -3, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "T", - # Patch 1: Left state ====================================================== + # Patch 1: Left state "patch_icpp(1)%geometry": 1, "patch_icpp(1)%x_centroid": 0.25e00, "patch_icpp(1)%length_x": 0.5e00, @@ -52,7 +52,7 @@ "patch_icpp(1)%alpha_rho(2)": 10.0e00 * 0.01e00, "patch_icpp(1)%alpha(1)": 0.99e00, "patch_icpp(1)%alpha(2)": 0.01e00, - # Patch 2: Right state ===================================================== + # Patch 2: Right state "patch_icpp(2)%geometry": 1, "patch_icpp(2)%x_centroid": 0.75e00, "patch_icpp(2)%length_x": 0.5e00, @@ -63,7 +63,7 @@ "patch_icpp(2)%alpha_rho(2)": 10.0e00 * 0.01e00, "patch_icpp(2)%alpha(1)": 0.99e00, "patch_icpp(2)%alpha(2)": 0.01e00, - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (4.4e00 - 1.0e00), "fluid_pp(1)%pi_inf": 4.4e00 * 6.0e08 / (4.4e00 - 1.0e00), "fluid_pp(2)%gamma": 1.0e00 / (1.4e00 - 1.0e00), diff --git a/examples/1D_vacuum_restart/case.py b/examples/1D_vacuum_restart/case.py index dbc7ad8cfe..94e40c5ec0 100644 --- a/examples/1D_vacuum_restart/case.py +++ b/examples/1D_vacuum_restart/case.py @@ -5,9 +5,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": 0.0e00, "x_domain%end": 1.0e00, "m": 199, @@ -17,7 +17,7 @@ "t_step_start": 0, "t_step_stop": 7000, "t_step_save": 1000, - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 2, "model_eqns": 3, "alt_soundspeed": "F", @@ -37,12 +37,12 @@ "avg_state": 2, "bc_x%beg": -3, "bc_x%end": -3, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "T", - # Patch 1: Left state ====================================================== + # Patch 1: Left state "patch_icpp(1)%geometry": 1, "patch_icpp(1)%x_centroid": 0.25e00, "patch_icpp(1)%length_x": 0.5e00, @@ -52,7 +52,7 @@ "patch_icpp(1)%alpha_rho(2)": 10.0e00 * 0.01e00, "patch_icpp(1)%alpha(1)": 0.99e00, "patch_icpp(1)%alpha(2)": 0.01e00, - # Patch 2: Right state ===================================================== + # Patch 2: Right state "patch_icpp(2)%geometry": 1, "patch_icpp(2)%x_centroid": 0.75e00, "patch_icpp(2)%length_x": 0.5e00, @@ -63,7 +63,7 @@ "patch_icpp(2)%alpha_rho(2)": 10.0e00 * 0.01e00, "patch_icpp(2)%alpha(1)": 0.99e00, "patch_icpp(2)%alpha(2)": 0.01e00, - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (4.4e00 - 1.0e00), "fluid_pp(1)%pi_inf": 4.4e00 * 6.0e08 / (4.4e00 - 1.0e00), "fluid_pp(2)%gamma": 1.0e00 / (1.4e00 - 1.0e00), diff --git a/examples/1D_vacuum_restart/restart_case.py b/examples/1D_vacuum_restart/restart_case.py index 8299183b31..f2e10e71c3 100644 --- a/examples/1D_vacuum_restart/restart_case.py +++ b/examples/1D_vacuum_restart/restart_case.py @@ -5,9 +5,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "m": 199, "n": 0, "p": 0, @@ -16,7 +16,7 @@ "t_step_start": 7000, "t_step_stop": 15000, "t_step_save": 1000, - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "old_ic": "T", "old_grid": "T", "num_patches": 1, @@ -38,12 +38,12 @@ "avg_state": 2, "bc_x%beg": -3, "bc_x%end": -3, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "T", - # Patch 3: Added Patch ===================================================== + # Patch 3: Added Patch "patch_icpp(1)%geometry": 1, "patch_icpp(1)%x_centroid": 0.5e00, "patch_icpp(1)%length_x": 0.5e00, @@ -53,7 +53,7 @@ "patch_icpp(1)%alpha_rho(2)": 10.0e00 * 0.01e00, "patch_icpp(1)%alpha(1)": 0.99e00, "patch_icpp(1)%alpha(2)": 0.01e00, - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (4.4e00 - 1.0e00), "fluid_pp(1)%pi_inf": 4.4e00 * 6.0e08 / (4.4e00 - 1.0e00), "fluid_pp(2)%gamma": 1.0e00 / (1.4e00 - 1.0e00), diff --git a/examples/2D_5wave_quasi1D/case.py b/examples/2D_5wave_quasi1D/case.py index 96caf95b2a..3a971977ba 100755 --- a/examples/2D_5wave_quasi1D/case.py +++ b/examples/2D_5wave_quasi1D/case.py @@ -17,9 +17,9 @@ print( json.dumps( { - # Logistics ================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================== + # Computational Domain Parameters "x_domain%beg": 0.0e00, "x_domain%end": 1.0e00, "y_domain%beg": -1.0e-01, @@ -31,7 +31,7 @@ "t_step_start": 0, "t_step_stop": int(Nt), "t_step_save": int(math.ceil(Nt / 1)), - # Simulation Algorithm Parameters ========================== + # Simulation Algorithm Parameters "num_patches": 2, "model_eqns": 2, "alt_soundspeed": "F", @@ -53,15 +53,15 @@ "bc_x%end": -3, "bc_y%beg": -3, "bc_y%end": -3, - # Turning on Hypoelasticity ================================ + # Turning on Hypoelasticity "hypoelasticity": "T", "fd_order": 4, - # Formatted Database Files Structure Parameters ============ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "F", - # Patch 1 L ================================================ + # Patch 1 L "patch_icpp(1)%geometry": 3, "patch_icpp(1)%x_centroid": 0.25, "patch_icpp(1)%y_centroid": 0.0, @@ -73,7 +73,7 @@ "patch_icpp(1)%alpha_rho(1)": 1000, "patch_icpp(1)%alpha(1)": 1.0, "patch_icpp(1)%tau_e(1)": 0.0, - # Patch 2 R ================================================ + # Patch 2 R "patch_icpp(2)%geometry": 3, "patch_icpp(2)%x_centroid": 0.75, "patch_icpp(2)%y_centroid": 0.0, @@ -85,7 +85,7 @@ "patch_icpp(2)%alpha_rho(1)": 1000, "patch_icpp(2)%alpha(1)": 1.0, "patch_icpp(2)%tau_e(1)": 0.0, - # Fluids Physical Parameters =============================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (4.4e00 - 1.0e00), "fluid_pp(1)%pi_inf": 4.4e00 * 6.0e08 / (4.4e00 - 1.0e00), "fluid_pp(1)%G": 10.0e9, diff --git a/examples/2D_GreshoVortex/case.py b/examples/2D_GreshoVortex/case.py index 4c0e789c42..dad9435599 100644 --- a/examples/2D_GreshoVortex/case.py +++ b/examples/2D_GreshoVortex/case.py @@ -27,9 +27,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": 0.0, "x_domain%end": 1, "y_domain%beg": 0.0, @@ -41,7 +41,7 @@ "t_step_start": t_step_start, "t_step_stop": t_step_stop, "t_step_save": t_save, - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 1, "model_eqns": 2, "num_fluids": 1, @@ -58,7 +58,7 @@ "bc_x%end": -1, "bc_y%beg": -1, "bc_y%end": -1, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "cons_vars_wrt": "T", @@ -66,7 +66,7 @@ "parallel_io": "T", "fd_order": 1, "omega_wrt(3)": "T", - # Patch 1 ================================================================== + # Patch 1 "patch_icpp(1)%geometry": 7, "patch_icpp(1)%hcid": 203, "patch_icpp(1)%x_centroid": 0.5, @@ -78,7 +78,7 @@ "patch_icpp(1)%vel(1)": u0, "patch_icpp(1)%vel(2)": Ma0, "patch_icpp(1)%pres": 1.0, - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (gam - 1.0e00), "fluid_pp(1)%pi_inf": 0.0, } diff --git a/examples/2D_TaylorGreenVortex/case.py b/examples/2D_TaylorGreenVortex/case.py index d73ee524ce..3157b23a3d 100644 --- a/examples/2D_TaylorGreenVortex/case.py +++ b/examples/2D_TaylorGreenVortex/case.py @@ -12,9 +12,9 @@ print( json.dumps( { - # Logistics ================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================== + # Computational Domain Parameters # Periodic Domain from -pi*l to pi*l "x_domain%beg": -L, "x_domain%end": L, @@ -27,7 +27,7 @@ "t_step_start": 0, "t_step_stop": 10000, "t_step_save": 100, - # Simulation Algorithm Parameters ========================== + # Simulation Algorithm Parameters "num_patches": 1, "model_eqns": 2, "alt_soundspeed": "F", @@ -50,12 +50,12 @@ "bc_y%beg": -1, "bc_y%end": -1, "viscous": "T", - # Formatted Database Files Structure Parameters ============ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "T", - # Patch 1: Base ============================================ + # Patch 1: Base # Uncomment the configuration of the Taylor Green Vortex in # 2D analytical patch under m_patch.f90 "patch_icpp(1)%geometry": 20, @@ -68,7 +68,7 @@ "patch_icpp(1)%pres": 1.0e05, "patch_icpp(1)%alpha_rho(1)": 1.22, "patch_icpp(1)%alpha(1)": 1.0, - # Fluids Physical Parameters =============================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (gam_a - 1.0e00), "fluid_pp(1)%pi_inf": 0.0, # Shear viscosity of STD air diff --git a/examples/2D_acoustic_broadband/case.py b/examples/2D_acoustic_broadband/case.py index 0ec194f227..dfdb16e935 100644 --- a/examples/2D_acoustic_broadband/case.py +++ b/examples/2D_acoustic_broadband/case.py @@ -4,9 +4,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": 0, "x_domain%end": 0.3, "y_domain%beg": 0, @@ -18,7 +18,7 @@ "t_step_start": 0, "t_step_stop": 1000, "t_step_save": 10, - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 1, "model_eqns": 2, "alt_soundspeed": "F", @@ -39,7 +39,7 @@ "bc_x%end": -6, "bc_y%beg": -6, "bc_y%end": -6, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", @@ -49,7 +49,7 @@ "num_probes": 1, "probe(1)%x": 0.13, "probe(1)%y": 0.05, - # Patch 1 Liquid =========================================================== + # Patch 1 Liquid "patch_icpp(1)%geometry": 3, "patch_icpp(1)%x_centroid": 0.15, "patch_icpp(1)%y_centroid": 0.05, @@ -60,7 +60,7 @@ "patch_icpp(1)%pres": 1e05, "patch_icpp(1)%alpha_rho(1)": 1.19, "patch_icpp(1)%alpha(1)": 1.0, - # Acoustic source ========================================================== + # Acoustic source "acoustic_source": "T", "num_source": 1, "acoustic(1)%support": 2, @@ -74,7 +74,7 @@ "acoustic(1)%bb_num_freq": 100, "acoustic(1)%bb_lowest_freq": 500.0, "acoustic(1)%bb_bandwidth": 500.0, - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (1.4e00 - 1.0e00), "fluid_pp(1)%pi_inf": 0, } diff --git a/examples/2D_acoustic_pulse/case.py b/examples/2D_acoustic_pulse/case.py index 6c0b23da13..73cec89a66 100644 --- a/examples/2D_acoustic_pulse/case.py +++ b/examples/2D_acoustic_pulse/case.py @@ -22,9 +22,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": -4, "x_domain%end": 4, "y_domain%beg": -4, @@ -36,7 +36,7 @@ "t_step_start": 0, "t_step_stop": Nt, "t_step_save": int(Nt / 100), - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 2, "model_eqns": 2, "alt_soundspeed": "F", @@ -56,14 +56,14 @@ "bc_x%end": -8, "bc_y%beg": -8, "bc_y%end": -8, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "T", "omega_wrt(3)": "T", "fd_order": 2, - # Patch 1 ================================================================== + # Patch 1 "patch_icpp(1)%geometry": 3, "patch_icpp(1)%x_centroid": 0, "patch_icpp(1)%y_centroid": 0, @@ -74,7 +74,7 @@ "patch_icpp(1)%pres": p_inf, "patch_icpp(1)%alpha_rho(1)": rho_inf, "patch_icpp(1)%alpha(1)": 1.0, - # Patch 2 ================================================================== + # Patch 2 "patch_icpp(2)%geometry": 2, "patch_icpp(2)%x_centroid": 0, "patch_icpp(2)%y_centroid": 0, @@ -85,7 +85,7 @@ "patch_icpp(2)%alpha_rho(1)": f"{rho_inf}*(1 - 0.5*({gam} - 1)*({alf_st})**2*exp(0.5*(1 - sqrt(x**2 + y**2))))**(1 / ({gam} - 1))", "patch_icpp(2)%alpha(1)": 1.0, "patch_icpp(2)%alter_patch(1)": "T", - # CBC Inflow / Outflow ======================================== + # CBC Inflow / Outflow "bc_x%grcbc_in": "F", "bc_x%grcbc_out": "T", "bc_x%grcbc_vel_out": "F", @@ -94,7 +94,7 @@ "bc_y%grcbc_out": "T", "bc_y%grcbc_vel_out": "F", "bc_y%pres_out": p_inf, - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (gam - 1.0e00), "fluid_pp(1)%pi_inf": 0.0, } diff --git a/examples/2D_acoustic_support10_axisym/case.py b/examples/2D_acoustic_support10_axisym/case.py index da2f338654..97e29a7836 100644 --- a/examples/2D_acoustic_support10_axisym/case.py +++ b/examples/2D_acoustic_support10_axisym/case.py @@ -5,9 +5,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": 0, "x_domain%end": 0.001, "y_domain%beg": 0, @@ -20,7 +20,7 @@ "t_step_start": 0, "t_step_stop": 800, "t_step_save": 20, - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 1, "model_eqns": 2, "alt_soundspeed": "F", @@ -41,12 +41,12 @@ "bc_x%end": -6, "bc_y%beg": -2, "bc_y%end": -6, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "T", - # Patch 1 Liquid =========================================================== + # Patch 1 Liquid "patch_icpp(1)%geometry": 3, "patch_icpp(1)%x_centroid": 0.0005, "patch_icpp(1)%y_centroid": 0.00025, @@ -57,7 +57,7 @@ "patch_icpp(1)%pres": 1e05, "patch_icpp(1)%alpha_rho(1)": 1100, "patch_icpp(1)%alpha(1)": 1.0, - # Acoustic source ========================================================== + # Acoustic source "acoustic_source": "T", "num_source": 1, "acoustic(1)%support": 10, @@ -73,7 +73,7 @@ "acoustic(1)%element_on": 0, "acoustic(1)%element_spacing_angle": math.pi / 180 * 5, "acoustic(1)%delay": 1e-7, - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (4.4e00 - 1.0e00), "fluid_pp(1)%pi_inf": 4.4e00 * 5.57e08 / (4.4e00 - 1.0e00), } diff --git a/examples/2D_acoustic_support2/case.py b/examples/2D_acoustic_support2/case.py index f0805984de..1e08ed55f0 100644 --- a/examples/2D_acoustic_support2/case.py +++ b/examples/2D_acoustic_support2/case.py @@ -5,9 +5,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": 0, "x_domain%end": 0.001, "y_domain%beg": 0, @@ -19,7 +19,7 @@ "t_step_start": 0, "t_step_stop": 200, "t_step_save": 10, - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 1, "model_eqns": 2, "alt_soundspeed": "F", @@ -40,12 +40,12 @@ "bc_x%end": -6, "bc_y%beg": -6, "bc_y%end": -6, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "T", - # Patch 1 Liquid =========================================================== + # Patch 1 Liquid "patch_icpp(1)%geometry": 3, "patch_icpp(1)%x_centroid": 0.0005, "patch_icpp(1)%y_centroid": 0.0005, @@ -56,7 +56,7 @@ "patch_icpp(1)%pres": 1e05, "patch_icpp(1)%alpha_rho(1)": 1100, "patch_icpp(1)%alpha(1)": 1.0, - # Acoustic source ========================================================== + # Acoustic source "acoustic_source": "T", "num_source": 1, "acoustic(1)%support": 2, @@ -69,7 +69,7 @@ "acoustic(1)%mag": 1.0, "acoustic(1)%gauss_sigma_time": 2e-8, "acoustic(1)%delay": 1e-7, - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (4.4e00 - 1.0e00), "fluid_pp(1)%pi_inf": 4.4e00 * 5.57e08 / (4.4e00 - 1.0e00), } diff --git a/examples/2D_acoustic_support5/case.py b/examples/2D_acoustic_support5/case.py index cc8fc184e0..06b1d5f726 100644 --- a/examples/2D_acoustic_support5/case.py +++ b/examples/2D_acoustic_support5/case.py @@ -5,9 +5,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": 0, "x_domain%end": 0.001, "y_domain%beg": 0, @@ -19,7 +19,7 @@ "t_step_start": 0, "t_step_stop": 200, "t_step_save": 10, - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 1, "model_eqns": 2, "alt_soundspeed": "F", @@ -40,12 +40,12 @@ "bc_x%end": -6, "bc_y%beg": -6, "bc_y%end": -6, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "T", - # Patch 1 Liquid =========================================================== + # Patch 1 Liquid "patch_icpp(1)%geometry": 3, "patch_icpp(1)%x_centroid": 0.0005, "patch_icpp(1)%y_centroid": 0.0005, @@ -56,7 +56,7 @@ "patch_icpp(1)%pres": 1e05, "patch_icpp(1)%alpha_rho(1)": 1100, "patch_icpp(1)%alpha(1)": 1.0, - # Acoustic source ========================================================== + # Acoustic source "acoustic_source": "T", "num_source": 1, "acoustic(1)%support": 5, @@ -69,7 +69,7 @@ "acoustic(1)%foc_length": 0.00054, "acoustic(1)%aperture": 0.0008, "acoustic(1)%delay": 1e-7, - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (4.4e00 - 1.0e00), "fluid_pp(1)%pi_inf": 4.4e00 * 5.57e08 / (4.4e00 - 1.0e00), } diff --git a/examples/2D_acoustic_support6_axisym/case.py b/examples/2D_acoustic_support6_axisym/case.py index 57820e744e..1431a338ea 100644 --- a/examples/2D_acoustic_support6_axisym/case.py +++ b/examples/2D_acoustic_support6_axisym/case.py @@ -5,9 +5,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": 0, "x_domain%end": 0.001, "y_domain%beg": 0, @@ -20,7 +20,7 @@ "t_step_start": 0, "t_step_stop": 400, "t_step_save": 20, - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 1, "model_eqns": 2, "alt_soundspeed": "F", @@ -41,12 +41,12 @@ "bc_x%end": -6, "bc_y%beg": -2, "bc_y%end": -6, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "T", - # Patch 1 Liquid =========================================================== + # Patch 1 Liquid "patch_icpp(1)%geometry": 3, "patch_icpp(1)%x_centroid": 0.0005, "patch_icpp(1)%y_centroid": 0.00025, @@ -57,7 +57,7 @@ "patch_icpp(1)%pres": 1e05, "patch_icpp(1)%alpha_rho(1)": 1100, "patch_icpp(1)%alpha(1)": 1.0, - # Acoustic source ========================================================== + # Acoustic source "acoustic_source": "T", "num_source": 1, "acoustic(1)%support": 6, @@ -70,7 +70,7 @@ "acoustic(1)%foc_length": 0.00054, "acoustic(1)%aperture": 0.0008, "acoustic(1)%delay": 1e-7, - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (4.4e00 - 1.0e00), "fluid_pp(1)%pi_inf": 4.4e00 * 5.57e08 / (4.4e00 - 1.0e00), } diff --git a/examples/2D_acoustic_support9/case.py b/examples/2D_acoustic_support9/case.py index 9a7336ff3f..0ce74e94ad 100644 --- a/examples/2D_acoustic_support9/case.py +++ b/examples/2D_acoustic_support9/case.py @@ -5,9 +5,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": 0, "x_domain%end": 0.001, "y_domain%beg": 0, @@ -19,7 +19,7 @@ "t_step_start": 0, "t_step_stop": 400, "t_step_save": 10, - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 1, "model_eqns": 2, "alt_soundspeed": "F", @@ -40,12 +40,12 @@ "bc_x%end": -6, "bc_y%beg": -6, "bc_y%end": -6, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "T", - # Patch 1 Liquid =========================================================== + # Patch 1 Liquid "patch_icpp(1)%geometry": 3, "patch_icpp(1)%x_centroid": 0.0005, "patch_icpp(1)%y_centroid": 0.0005, @@ -56,7 +56,7 @@ "patch_icpp(1)%pres": 1e05, "patch_icpp(1)%alpha_rho(1)": 1100, "patch_icpp(1)%alpha(1)": 1.0, - # Acoustic source ========================================================== + # Acoustic source "acoustic_source": "T", "num_source": 1, "acoustic(1)%support": 9, @@ -72,7 +72,7 @@ "acoustic(1)%element_on": 0, "acoustic(1)%element_spacing_angle": math.pi / 180 * 5, "acoustic(1)%delay": 1e-7, - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (4.4e00 - 1.0e00), "fluid_pp(1)%pi_inf": 4.4e00 * 5.57e08 / (4.4e00 - 1.0e00), } diff --git a/examples/2D_advection/case.py b/examples/2D_advection/case.py index f179472822..693c7e9089 100644 --- a/examples/2D_advection/case.py +++ b/examples/2D_advection/case.py @@ -5,9 +5,9 @@ print( json.dumps( { - # Logistics ================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================== + # Computational Domain Parameters "x_domain%beg": 0.0e00, "x_domain%end": 1.0e00, "y_domain%beg": 0.0e00, @@ -19,7 +19,7 @@ "t_step_start": 0, "t_step_stop": 1000, "t_step_save": 100, - # Simulation Algorithm Parameters ========================== + # Simulation Algorithm Parameters "num_patches": 2, "model_eqns": 3, "alt_soundspeed": "F", @@ -41,12 +41,12 @@ "bc_x%end": -3, "bc_y%beg": -3, "bc_y%end": -3, - # Formatted Database Files Structure Parameters ============ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "T", - # Patch 1: Base ============================================ + # Patch 1: Base "patch_icpp(1)%geometry": 3, "patch_icpp(1)%x_centroid": 0.5e00, "patch_icpp(1)%y_centroid": 0.5e00, @@ -59,7 +59,7 @@ "patch_icpp(1)%alpha_rho(2)": 1.0, "patch_icpp(1)%alpha(1)": 1.0e-12, "patch_icpp(1)%alpha(2)": 1.0 - 1.0e-12, - # Patch 2: Density to transport ============================ + # Patch 2: Density to transport "patch_icpp(2)%geometry": 2, "patch_icpp(2)%smoothen": "T", "patch_icpp(2)%smooth_patch_id": 1, @@ -75,7 +75,7 @@ "patch_icpp(2)%alpha_rho(2)": 1.0, "patch_icpp(2)%alpha(1)": 0, "patch_icpp(2)%alpha(2)": 1.0, - # Fluids Physical Parameters =============================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (2.35e00 - 1.0e00), "fluid_pp(1)%pi_inf": 2.35e00 * 1.0e09 / (2.35e00 - 1.0e00), "fluid_pp(2)%gamma": 1.0e00 / (1.4e00 - 1.0e00), diff --git a/examples/2D_axisym_shockbubble/case.py b/examples/2D_axisym_shockbubble/case.py index 426c4d1335..3dcdb8ba3a 100644 --- a/examples/2D_axisym_shockbubble/case.py +++ b/examples/2D_axisym_shockbubble/case.py @@ -27,9 +27,9 @@ print( json.dumps( { - # Logistics ================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================== + # Computational Domain Parameters "x_domain%beg": -leng / 2.0, "x_domain%end": leng / 2 + 3 * leng, "y_domain%beg": 0.0, @@ -42,7 +42,7 @@ "t_step_start": 0, "t_step_stop": Nt, "t_step_save": int(Nt / 100.0), - # Simulation Algorithm Parameters ========================== + # Simulation Algorithm Parameters "num_patches": 3, "model_eqns": 2, "alt_soundspeed": "F", @@ -64,12 +64,12 @@ "bc_x%end": -6, "bc_y%beg": -2, "bc_y%end": -6, - # Formatted Database Files Structure Parameters ============ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "T", - # Patch 1: Background ============================ + # Patch 1: Background "patch_icpp(1)%geometry": 3, "patch_icpp(1)%x_centroid": 0.0, "patch_icpp(1)%y_centroid": leng * 0.25, @@ -82,7 +82,7 @@ "patch_icpp(1)%alpha_rho(2)": 0.0e00, "patch_icpp(1)%alpha(1)": 1.0e00, "patch_icpp(1)%alpha(2)": 0.0e00, - # Patch 2: Shocked state ============================ + # Patch 2: Shocked state "patch_icpp(2)%geometry": 3, "patch_icpp(2)%alter_patch(1)": "T", "patch_icpp(2)%x_centroid": -3 * leng / 8.0, @@ -96,7 +96,7 @@ "patch_icpp(2)%alpha_rho(2)": 0.0e00, "patch_icpp(2)%alpha(1)": 1.0e00, "patch_icpp(2)%alpha(2)": 0.0e00, - # Patch 3: Bubble ====================================== + # Patch 3: Bubble "patch_icpp(3)%geometry": 2, "patch_icpp(3)%x_centroid": 0.0e00, "patch_icpp(3)%y_centroid": 0.0e00, @@ -109,7 +109,7 @@ "patch_icpp(3)%alpha_rho(2)": 0.167, "patch_icpp(3)%alpha(1)": 0.0e00, "patch_icpp(3)%alpha(2)": 1.0e00, - # Fluids Physical Parameters =============================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (1.4e00 - 1.0e00), "fluid_pp(1)%pi_inf": 0.0, "fluid_pp(2)%gamma": 1.0e00 / (1.6666e00 - 1.0e00), diff --git a/examples/2D_axisym_shockwatercavity/case.py b/examples/2D_axisym_shockwatercavity/case.py index afb38766d6..0a5d0d517a 100644 --- a/examples/2D_axisym_shockwatercavity/case.py +++ b/examples/2D_axisym_shockwatercavity/case.py @@ -152,9 +152,9 @@ print( json.dumps( { - # Logistics ================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================== + # Computational Domain Parameters "x_domain%beg": xb, "x_domain%end": xe, "y_domain%beg": yb, @@ -175,7 +175,7 @@ "t_step_start": 0, "t_step_stop": Nt, "t_step_save": AS, - # Simulation Algorithm Parameters ========================== + # Simulation Algorithm Parameters "num_patches": 4, "model_eqns": 2, "alt_soundspeed": "F", @@ -195,14 +195,14 @@ "bc_x%end": -6, "bc_y%beg": -2, "bc_y%end": -6, - # Formatted Database Files Structure Parameters ============ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "alpha_wrt": "T", "parallel_io": "T", # I will use 1 for WATER properties, and 2 for AIR properties - # Patch 1: Background (AIR - 2) ============================= + # Patch 1: Background (AIR - 2) "patch_icpp(1)%geometry": 3, "patch_icpp(1)%x_centroid": (xb + xe) / 2 * StF, "patch_icpp(1)%y_centroid": (yb + ye) / 2 * StF, @@ -215,7 +215,7 @@ "patch_icpp(1)%alpha_rho(2)": rho0a, "patch_icpp(1)%alpha(1)": 0.0e00, "patch_icpp(1)%alpha(2)": 1.0e00, - # Patch 2: Shocked state (AIR - 2) ========================= + # Patch 2: Shocked state (AIR - 2) "patch_icpp(2)%geometry": 3, "patch_icpp(2)%alter_patch(1)": "T", "patch_icpp(2)%x_centroid": -ISD - (xe - xb) / 2 * StF, @@ -229,7 +229,7 @@ "patch_icpp(2)%alpha_rho(2)": rhos, "patch_icpp(2)%alpha(1)": 0.0e00, "patch_icpp(2)%alpha(2)": 1.0e00, - # Patch 3: Droplet (WATER - 1) ============================= + # Patch 3: Droplet (WATER - 1) "patch_icpp(3)%geometry": 2, "patch_icpp(3)%x_centroid": 0.0e00, "patch_icpp(3)%y_centroid": 0.0e00, @@ -242,7 +242,7 @@ "patch_icpp(3)%alpha_rho(2)": 0.0e00, "patch_icpp(3)%alpha(1)": 1.0e00, "patch_icpp(3)%alpha(2)": 0.0e00, - # Patch 4: Cavity (AIR - 2) ================================ + # Patch 4: Cavity (AIR - 2) "patch_icpp(4)%geometry": 2, "patch_icpp(4)%x_centroid": ecc * D0 / 2, "patch_icpp(4)%y_centroid": 0.0e00, @@ -255,7 +255,7 @@ "patch_icpp(4)%alpha_rho(2)": rho0a, "patch_icpp(4)%alpha(1)": 0.0e00, "patch_icpp(4)%alpha(2)": 1.0e00, - # Fluids Physical Parameters =============================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (gamw - 1), "fluid_pp(1)%pi_inf": gamw * piw / (gamw - 1), "fluid_pp(2)%gamma": 1.0e00 / (gama - 1), diff --git a/examples/2D_bubbly_steady_shock/case.py b/examples/2D_bubbly_steady_shock/case.py index 4307ca7414..96fcdd3868 100644 --- a/examples/2D_bubbly_steady_shock/case.py +++ b/examples/2D_bubbly_steady_shock/case.py @@ -67,9 +67,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "F", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": 0.0e00, "x_domain%end": 6.0e-03 / x0, "y_domain%beg": 0.0e00, @@ -82,7 +82,7 @@ "t_step_start": 0, "t_step_stop": 1000, # 3000 "t_step_save": 10, # 10 - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 2, # Use the 5 equation model "model_eqns": 2, @@ -118,7 +118,7 @@ # Set IB to True and add 1 patch "ib": "T", "num_ibs": 1, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters # Export primitive variables in double precision with parallel # I/O to minimize I/O computational time during large simulations "format": 1, @@ -128,7 +128,7 @@ "fd_order": 1, "omega_wrt(3)": "T", "parallel_io": "T", - # Ambient State ===================================== + # Ambient State "patch_icpp(1)%geometry": 3, "patch_icpp(1)%x_centroid": 3.0e-03 / x0, "patch_icpp(1)%y_centroid": 1.50e-03 / x0, @@ -141,7 +141,7 @@ "patch_icpp(1)%pres": 1.0e00, "patch_icpp(1)%r0": 1.0, "patch_icpp(1)%v0": 0.0e00, - # Shocked State ===================================== + # Shocked State "patch_icpp(2)%geometry": 3, "patch_icpp(2)%x_centroid": 0.5e-03 / x0, "patch_icpp(2)%y_centroid": 1.50e-03 / x0, @@ -155,7 +155,7 @@ "patch_icpp(2)%r0": 1.0, "patch_icpp(2)%v0": 0.0e00, "patch_icpp(2)%alter_patch(1)": "T", - # Patch: Cylinder Immersed Boundary ======================================== + # Patch: Cylinder Immersed Boundary "patch_ib(1)%geometry": 4, "patch_ib(1)%x_centroid": 1.5e-03 / x0, "patch_ib(1)%y_centroid": 1.5e-03 / x0, @@ -167,7 +167,7 @@ "patch_ib(1)%theta": 15, "pref": p0, "rhoref": rho0, - # Fluids Physical Parameters =============================== + # Fluids Physical Parameters # Surrounding liquid "fluid_pp(1)%gamma": 1.0e00 / (n_tait - 1.0e00), "fluid_pp(1)%pi_inf": n_tait * B_tait / (n_tait - 1.0), @@ -178,15 +178,15 @@ "fluid_pp(1)%M_v": M_v, "fluid_pp(1)%mu_v": mu_v, "fluid_pp(1)%k_v": k_v, - # Last fluid_pp is always reserved for bubble gas state === - # if applicable ========================================== + # Last fluid_pp is always reserved for bubble gas state + # if applicable "fluid_pp(2)%gamma": 1.0 / (gamma_gas - 1.0), "fluid_pp(2)%pi_inf": 0.0e00, "fluid_pp(2)%gamma_v": gamma_n, "fluid_pp(2)%M_v": M_n, "fluid_pp(2)%mu_v": mu_n, "fluid_pp(2)%k_v": k_n, - # Bubbles ================================================== + # Bubbles "bubbles_euler": "T", "bubble_model": 2, "polytropic": "T", diff --git a/examples/2D_hardcodied_ic/case.py b/examples/2D_hardcodied_ic/case.py index 7be5861d5e..52132bf5ef 100644 --- a/examples/2D_hardcodied_ic/case.py +++ b/examples/2D_hardcodied_ic/case.py @@ -7,9 +7,9 @@ print( json.dumps( { - # Logistics ================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================== + # Computational Domain Parameters "x_domain%beg": 0.0e00, "x_domain%end": 4.0e00, "stretch_x": "T", @@ -29,7 +29,7 @@ "t_step_start": 0, "t_step_stop": 2000, "t_step_save": 200, - # Simulation Algorithm Parameters ========================== + # Simulation Algorithm Parameters "num_patches": 1, "model_eqns": 3, "alt_soundspeed": "F", @@ -49,12 +49,12 @@ "bc_x%end": -7, "bc_y%beg": -2, "bc_y%end": -7, - # Formatted Database Files Structure Parameters ============ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "T", - # Patch 1: Base ============================================ + # Patch 1: Base "patch_icpp(1)%geometry": 7, "patch_icpp(1)%hcid": 200, "patch_icpp(1)%x_centroid": 4.0, @@ -68,7 +68,7 @@ "patch_icpp(1)%alpha_rho(2)": eps * 1, "patch_icpp(1)%alpha(1)": 1 - eps, "patch_icpp(1)%alpha(2)": eps, - # Fluids Physical Parameters =============================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (2.35e00 - 1.0e00), "fluid_pp(1)%pi_inf": 2.35e00 * 1.0e09 / (2.35e00 - 1.0e00), "fluid_pp(2)%gamma": 1.0e00 / (1.4e00 - 1.0e00), diff --git a/examples/2D_ibm/case.py b/examples/2D_ibm/case.py index 6deb90e479..016d749cdd 100644 --- a/examples/2D_ibm/case.py +++ b/examples/2D_ibm/case.py @@ -8,9 +8,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters # For these computations, the cylinder is placed at the (0,0,0) # domain origin. # axial direction @@ -27,7 +27,7 @@ "t_step_start": 0, "t_step_stop": 40000, # 3000 "t_step_save": 4000, # 10 - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters # Only one patches are necessary, the air tube "num_patches": 1, # Use the 5 equation model @@ -61,13 +61,13 @@ "ib": "T", "num_ibs": 1, "viscous": "T", - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "E_wrt": "T", "parallel_io": "T", - # Patch: Constant Tube filled with air ===================================== + # Patch: Constant Tube filled with air # Specify the cylindrical air tube grid geometry "patch_icpp(1)%geometry": 3, "patch_icpp(1)%x_centroid": 3.0e-03, @@ -81,13 +81,13 @@ "patch_icpp(1)%pres": 1.0e00, "patch_icpp(1)%alpha_rho(1)": 1.0e00, "patch_icpp(1)%alpha(1)": 1.0e00, - # Patch: Cylinder Immersed Boundary ======================================== + # Patch: Cylinder Immersed Boundary "patch_ib(1)%geometry": 2, "patch_ib(1)%x_centroid": 1.5e-03, "patch_ib(1)%y_centroid": 3.0e-03, "patch_ib(1)%radius": 0.2e-03, "patch_ib(1)%slip": "F", - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (gam_a - 1.0e00), # 2.50(Not 1.40) "fluid_pp(1)%pi_inf": 0, "fluid_pp(1)%Re(1)": 2500000, diff --git a/examples/2D_ibm_airfoil/case.py b/examples/2D_ibm_airfoil/case.py index aeebb760f5..90c36dade8 100644 --- a/examples/2D_ibm_airfoil/case.py +++ b/examples/2D_ibm_airfoil/case.py @@ -9,9 +9,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters # axial direction "x_domain%beg": 0.0e00, "x_domain%end": 6.0e-03, @@ -26,7 +26,7 @@ "t_step_start": 0, "t_step_stop": 7200, # 3000 "t_step_save": 30, # 10 - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters # Only one patches are necessary, the air tube "num_patches": 1, # Use the 5 equation model @@ -64,13 +64,13 @@ # Set IB to True and add 1 patch "ib": "T", "num_ibs": 1, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "E_wrt": "T", "parallel_io": "T", - # Patch: Constant Tube filled with air ===================================== + # Patch: Constant Tube filled with air # Specify the cylindrical air tube grid geometry "patch_icpp(1)%geometry": 3, "patch_icpp(1)%x_centroid": 3.0e-03, @@ -86,7 +86,7 @@ "patch_icpp(1)%alpha(1)": 0.8e00, "patch_icpp(1)%alpha_rho(2)": 0.2e00, "patch_icpp(1)%alpha(2)": 0.2e00, - # Patch: Airfoil Immersed Boundary ======================================== + # Patch: Airfoil Immersed Boundary "patch_ib(1)%geometry": 4, "patch_ib(1)%x_centroid": 1.0e-03, "patch_ib(1)%y_centroid": 3.0e-03, @@ -95,7 +95,7 @@ "patch_ib(1)%p": 0.4, "patch_ib(1)%m": 0.02, "patch_ib(1)%theta": 30, - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters # Use the same stiffness as the air bubble "fluid_pp(1)%gamma": 1.0e00 / (gam_a - 1.0e00), # 2.50(Not 1.40) "fluid_pp(1)%pi_inf": 0, diff --git a/examples/2D_ibm_cfl_dt/case.py b/examples/2D_ibm_cfl_dt/case.py index 426c182ba4..9f106d15f7 100644 --- a/examples/2D_ibm_cfl_dt/case.py +++ b/examples/2D_ibm_cfl_dt/case.py @@ -8,9 +8,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters # For these computations, the cylinder is placed at the (0,0,0) # domain origin. # axial direction @@ -28,7 +28,7 @@ "n_start": 0, "t_save": 8e-5, "t_stop": 8e-3, - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters # Only one patches are necessary, the air tube "num_patches": 1, # Use the 5 equation model @@ -63,14 +63,14 @@ "ib": "T", "num_ibs": 1, "viscous": "T", - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "E_wrt": "T", "parallel_io": "T", "c_wrt": "T", - # Patch: Constant Tube filled with air ===================================== + # Patch: Constant Tube filled with air # Specify the cylindrical air tube grid geometry "patch_icpp(1)%geometry": 3, "patch_icpp(1)%x_centroid": 4.0e-03, @@ -84,13 +84,13 @@ "patch_icpp(1)%pres": 1.0e00, "patch_icpp(1)%alpha_rho(1)": 1.0e00, "patch_icpp(1)%alpha(1)": 1.0e00, - # Patch: Cylinder Immersed Boundary ======================================== + # Patch: Cylinder Immersed Boundary "patch_ib(1)%geometry": 2, "patch_ib(1)%x_centroid": 1.5e-03, "patch_ib(1)%y_centroid": 3e-03, "patch_ib(1)%radius": 0.4e-03, "patch_ib(1)%slip": "F", - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (gam_a - 1.0e00), # 2.50(Not 1.40) "fluid_pp(1)%pi_inf": 0, "fluid_pp(1)%Re(1)": 250000, diff --git a/examples/2D_ibm_multiphase/case.py b/examples/2D_ibm_multiphase/case.py index a4af8ea219..2223534f92 100644 --- a/examples/2D_ibm_multiphase/case.py +++ b/examples/2D_ibm_multiphase/case.py @@ -9,9 +9,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters # axial direction "x_domain%beg": 0.0e00, "x_domain%end": 6.0e-03, @@ -26,7 +26,7 @@ "t_step_start": 0, "t_step_stop": 10000, # 3000 "t_step_save": 1000, # 10 - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters # Only one patches are necessary, the air tube "num_patches": 1, # Use the 6 equation model @@ -59,13 +59,13 @@ # Set IB to True and add 1 patch "ib": "T", "num_ibs": 1, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "E_wrt": "T", "parallel_io": "T", - # Patch: Constant Tube filled with air ===================================== + # Patch: Constant Tube filled with air # Specify the cylindrical air tube grid geometry "patch_icpp(1)%geometry": 3, "patch_icpp(1)%x_centroid": 3.0e-03, @@ -81,12 +81,12 @@ "patch_icpp(1)%alpha(1)": 0.8e00, "patch_icpp(1)%alpha_rho(2)": 0.2e00, "patch_icpp(1)%alpha(2)": 0.2e00, - # Patch: Cylinder Immersed Boundary ======================================== + # Patch: Cylinder Immersed Boundary "patch_ib(1)%geometry": 2, "patch_ib(1)%x_centroid": 1.5e-03, "patch_ib(1)%y_centroid": 3.0e-03, "patch_ib(1)%radius": 0.2e-03, - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters # Specify 2 fluids "fluid_pp(1)%gamma": 1.0e00 / (gam_a - 1.0e00), # 2.50(Not 1.40) "fluid_pp(1)%pi_inf": 0, diff --git a/examples/2D_ibm_steady_shock/case.py b/examples/2D_ibm_steady_shock/case.py index 391f4fab10..86be786af5 100644 --- a/examples/2D_ibm_steady_shock/case.py +++ b/examples/2D_ibm_steady_shock/case.py @@ -42,9 +42,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "F", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": 0.0e00, "x_domain%end": 6.0e-03 / x0, "y_domain%beg": 0.0e00, @@ -57,7 +57,7 @@ "t_step_start": 0, "t_step_stop": 1000, # 3000 "t_step_save": 10, # 10 - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 2, # Use the 5 equation model "model_eqns": 2, @@ -91,7 +91,7 @@ # Set IB to True and add 1 patch "ib": "T", "num_ibs": 1, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters # Export primitive variables in double precision with parallel # I/O to minimize I/O computational time during large simulations "format": 1, @@ -100,7 +100,7 @@ "fd_order": 1, "omega_wrt(3)": "T", "parallel_io": "T", - # Ambient State ===================================== + # Ambient State "patch_icpp(1)%geometry": 3, "patch_icpp(1)%x_centroid": 3.0e-03 / x0, "patch_icpp(1)%y_centroid": 1.50e-03 / x0, @@ -113,7 +113,7 @@ "patch_icpp(1)%pres": patm, "patch_icpp(1)%r0": 1.0, "patch_icpp(1)%v0": 0.0e00, - # Shocked State ===================================== + # Shocked State "patch_icpp(2)%geometry": 3, "patch_icpp(2)%x_centroid": 0.5e-03 / x0, "patch_icpp(2)%y_centroid": 1.50e-03 / x0, @@ -127,7 +127,7 @@ "patch_icpp(2)%r0": 1.0, "patch_icpp(2)%v0": 0.0e00, "patch_icpp(2)%alter_patch(1)": "T", - # CBC Inflow / Outflow ======================================== + # CBC Inflow / Outflow "bc_x%grcbc_in": "T", "bc_x%grcbc_out": "F", "bc_x%grcbc_vel_out": "F", @@ -141,7 +141,7 @@ "bc_x%vel_out(2)": 0, "bc_x%vel_out(3)": 0, "bc_x%pres_out": 1.0, - # Patch: Cylinder Immersed Boundary ======================================== + # Patch: Cylinder Immersed Boundary "patch_ib(1)%geometry": 4, "patch_ib(1)%x_centroid": 1.5e-03 / x0, "patch_ib(1)%y_centroid": 1.5e-03 / x0, @@ -151,7 +151,7 @@ "patch_ib(1)%m": 0.02, "patch_ib(1)%slip": "F", "patch_ib(1)%theta": 15, - # Fluids Physical Parameters =============================== + # Fluids Physical Parameters # Surrounding liquid "fluid_pp(1)%gamma": 1.0e00 / (n_tait - 1.0e00), "fluid_pp(1)%pi_inf": n_tait * B_tait / (n_tait - 1.0), diff --git a/examples/2D_ibm_stl_MFCCharacter/case.py b/examples/2D_ibm_stl_MFCCharacter/case.py index 598a18d26c..a5f8466c4d 100644 --- a/examples/2D_ibm_stl_MFCCharacter/case.py +++ b/examples/2D_ibm_stl_MFCCharacter/case.py @@ -13,9 +13,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": -1 * D, "x_domain%end": 1 * D, "y_domain%beg": -0.3 * D, @@ -27,7 +27,7 @@ "t_step_start": 0, "t_step_stop": 6000, "t_step_save": 20, - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 1, "model_eqns": 2, "alt_soundspeed": "F", @@ -50,14 +50,14 @@ "bc_y%end": -3, "ib": "T", "num_ibs": 1, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters # Export primitive variables in double precision with parallel # I/O to minimize I/O computational time during large simulations "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "T", - # Patch: Middle ============================================================ + # Patch: Middle "patch_icpp(1)%geometry": 3, "patch_icpp(1)%x_centroid": 0, "patch_icpp(1)%y_centroid": 0, @@ -75,7 +75,7 @@ "patch_ib(1)%model_spc": 200, "patch_ib(1)%model_threshold": 0.99, "patch_ib(1)%slip": "F", - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (gam_a - 1.0e00), "fluid_pp(1)%pi_inf": 0, "fluid_pp(1)%Re(1)": 10000, diff --git a/examples/2D_ibm_stl_test/case.py b/examples/2D_ibm_stl_test/case.py index 0242e0c5a6..d3055a66a5 100644 --- a/examples/2D_ibm_stl_test/case.py +++ b/examples/2D_ibm_stl_test/case.py @@ -14,9 +14,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": -6 * D, "x_domain%end": 6 * D, "y_domain%beg": -3 * D, @@ -28,7 +28,7 @@ "t_step_start": 0, "t_step_stop": 3000, "t_step_save": 30, - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 1, "model_eqns": 2, "alt_soundspeed": "F", @@ -51,14 +51,14 @@ "bc_y%end": -3, "ib": "T", "num_ibs": 1, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters # Export primitive variables in double precision with parallel # I/O to minimize I/O computational time during large simulations "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "T", - # Patch: Middle ============================================================ + # Patch: Middle "patch_icpp(1)%geometry": 3, "patch_icpp(1)%x_centroid": 0, "patch_icpp(1)%y_centroid": 0, @@ -76,7 +76,7 @@ "patch_ib(1)%model_spc": 100, "patch_ib(1)%model_threshold": 0.95, "patch_ib(1)%slip": "F", - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (gam_a - 1.0e00), "fluid_pp(1)%pi_inf": 0, } diff --git a/examples/2D_ibm_stl_wedge/case.py b/examples/2D_ibm_stl_wedge/case.py index 106a22b045..a43267ac0d 100644 --- a/examples/2D_ibm_stl_wedge/case.py +++ b/examples/2D_ibm_stl_wedge/case.py @@ -14,9 +14,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": -3 * D, "x_domain%end": 3 * D, "y_domain%beg": -1.5 * D, @@ -28,7 +28,7 @@ "t_step_start": 0, "t_step_stop": 1000, "t_step_save": 10, - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 1, "model_eqns": 2, "alt_soundspeed": "F", @@ -51,14 +51,14 @@ "bc_y%end": -3, "ib": "T", "num_ibs": 1, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters # Export primitive variables in double precision with parallel # I/O to minimize I/O computational time during large simulations "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "T", - # Patch: Middle ============================================================ + # Patch: Middle "patch_icpp(1)%geometry": 3, "patch_icpp(1)%x_centroid": 0, "patch_icpp(1)%y_centroid": 0, @@ -76,7 +76,7 @@ "patch_ib(1)%model_spc": 200, "patch_ib(1)%model_threshold": 0.95, "patch_ib(1)%slip": "F", - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (gam_a - 1.0e00), "fluid_pp(1)%pi_inf": 0, "fluid_pp(1)%Re(1)": 7535533.2, diff --git a/examples/2D_isentropicvortex/case.py b/examples/2D_isentropicvortex/case.py index e0628ce6e2..96acf97eee 100644 --- a/examples/2D_isentropicvortex/case.py +++ b/examples/2D_isentropicvortex/case.py @@ -44,9 +44,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": -3, "x_domain%end": 3, "y_domain%beg": -3, @@ -68,7 +68,7 @@ "t_step_start": 0, "t_step_stop": 10, "t_step_save": 1, - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 1, "model_eqns": 3, "alt_soundspeed": "F", @@ -88,14 +88,14 @@ "bc_x%end": -4, "bc_y%beg": -4, "bc_y%end": -4, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "F", "omega_wrt(3)": "T", "fd_order": 2, - # Patch 1 ================================================================== + # Patch 1 "patch_icpp(1)%geometry": 3, "patch_icpp(1)%x_centroid": 0, "patch_icpp(1)%y_centroid": 0, @@ -106,7 +106,7 @@ "patch_icpp(1)%pres": pres, "patch_icpp(1)%alpha_rho(1)": alpha_rho1, "patch_icpp(1)%alpha(1)": 1.0, - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (1.4 - 1.0e00), "fluid_pp(1)%pi_inf": 0.0, } diff --git a/examples/2D_laplace_pressure_jump/case.py b/examples/2D_laplace_pressure_jump/case.py index 0bcfba3938..e66b63645d 100644 --- a/examples/2D_laplace_pressure_jump/case.py +++ b/examples/2D_laplace_pressure_jump/case.py @@ -25,9 +25,9 @@ # Configuration case dictionary data = { - # Logistics ============================= + # Logistics "run_time_info": "T", - # Computational Domain ================== + # Computational Domain "x_domain%beg": x0, "x_domain%end": x1, "y_domain%beg": y0, @@ -40,7 +40,7 @@ "t_step_start": 0, "t_step_stop": 100000, "t_step_save": 1000, - # Simulation Algorithm ================== + # Simulation Algorithm "model_eqns": 3, "alt_soundspeed": "F", "mixture_err": "T", @@ -63,7 +63,7 @@ "num_fluids": 2, "weno_avg": "T", "surface_tension": "T", - # Database Structure Parameters ========= + # Database Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", @@ -71,13 +71,13 @@ "cf_wrt": "T", "parallel_io": "T", "sigma": 8, - # Fluid Parameters (Water) ============== + # Fluid Parameters (Water) "fluid_pp(1)%gamma": 1.0e00 / (2.1e00 - 1.0e00), "fluid_pp(1)%pi_inf": 2.1e00 * 1.0e06 / (2.1e00 - 1.0e00), - # Fluid Parameters (Gas) ================ + # Fluid Parameters (Gas) "fluid_pp(2)%gamma": 1.0e00 / (1.4e00 - 1.0e00), "fluid_pp(2)%pi_inf": 0.0e00, - # Air Patch ========================== + # Air Patch "patch_icpp(1)%geometry": 3, "patch_icpp(1)%x_centroid": 0, "patch_icpp(1)%y_centroid": 0, @@ -92,7 +92,7 @@ "patch_icpp(1)%alpha(1)": eps, "patch_icpp(1)%alpha(2)": 1 - eps, "patch_icpp(1)%cf_val": 0, - # Water Patch ======================== + # Water Patch "patch_icpp(2)%alter_patch(1)": "T", "patch_icpp(2)%smoothen": "T", "patch_icpp(2)%smooth_patch_id": 1, diff --git a/examples/2D_lid_driven_cavity/case.py b/examples/2D_lid_driven_cavity/case.py index 9836fc90cd..657d6b00b9 100644 --- a/examples/2D_lid_driven_cavity/case.py +++ b/examples/2D_lid_driven_cavity/case.py @@ -6,9 +6,9 @@ print( json.dumps( { - # Logistics ================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================== + # Computational Domain Parameters "x_domain%beg": 0.0, "x_domain%end": 1.0, "y_domain%beg": 0.0, @@ -20,7 +20,7 @@ "t_step_start": 0, "t_step_stop": 1600000, "t_step_save": 8000, - # Simulation Algorithm Parameters ========================== + # Simulation Algorithm Parameters "num_patches": 1, "model_eqns": 2, "alt_soundspeed": "F", @@ -43,14 +43,14 @@ "bc_y%end": -16, "bc_y%ve1": 0.5, "viscous": "T", - # Formatted Database Files Structure Parameters ============ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "omega_wrt(3)": "T", "fd_order": 4, "parallel_io": "T", - # Patch 1: Base ============================================ + # Patch 1: Base "patch_icpp(1)%geometry": 3, "patch_icpp(1)%x_centroid": 0.5, "patch_icpp(1)%y_centroid": 0.5, @@ -63,7 +63,7 @@ "patch_icpp(1)%alpha(1)": 0.5, "patch_icpp(1)%alpha_rho(2)": 0.5, "patch_icpp(1)%alpha(2)": 0.5, - # Fluids Physical Parameters =============================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0 / (1.4 - 1.0), "fluid_pp(1)%pi_inf": 0.0, "fluid_pp(1)%Re(1)": 1e4, diff --git a/examples/2D_lungwave/case.py b/examples/2D_lungwave/case.py index da5aa685f5..dbcc8542eb 100644 --- a/examples/2D_lungwave/case.py +++ b/examples/2D_lungwave/case.py @@ -86,9 +86,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": 0.0, "x_domain%end": dlengx, "y_domain%beg": -dlengy / 2.0, @@ -100,7 +100,7 @@ "t_step_start": tstart, "t_step_stop": tstop, "t_step_save": tsave, - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 2, "model_eqns": 2, "alt_soundspeed": "F", @@ -122,12 +122,12 @@ "bc_x%end": -1, "bc_y%beg": -6, "bc_y%end": -6, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "T", - # Monopole setting ========================================================= + # Monopole setting "acoustic_source": "T", # creating an acoustic wave "num_source": 1, # place in the middle and expand "acoustic(1)%support": 2, @@ -139,7 +139,7 @@ "acoustic(1)%loc(1)": dlengx / 2, # x_center of the domain "acoustic(1)%loc(2)": 5.0 * dlengx, # upper boundary of the domain "acoustic(1)%dir": -math.pi / 2, # direction: -pi/2 - # Patch 1: Background ====================================================== + # Patch 1: Background "patch_icpp(1)%geometry": 3, "patch_icpp(1)%x_centroid": dlengx / 2, "patch_icpp(1)%y_centroid": 0.0, @@ -152,7 +152,7 @@ "patch_icpp(1)%alpha_rho(2)": rhog_n * alphag_back, "patch_icpp(1)%alpha(1)": alphal_back, "patch_icpp(1)%alpha(2)": alphag_back, - # Patch 2: Lung ============================================================ + # Patch 2: Lung "patch_icpp(2)%geometry": 7, "patch_icpp(2)%hcid": 205, "patch_icpp(2)%alter_patch(1)": "T", @@ -168,7 +168,7 @@ "patch_icpp(2)%alpha_rho(2)": rhog_n * alphag_lung, "patch_icpp(2)%alpha(1)": alphal_lung, "patch_icpp(2)%alpha(2)": alphag_lung, - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (gammal - 1.0e00), "fluid_pp(1)%pi_inf": gammal * Bl_n / (gammal - 1.0e00), "fluid_pp(2)%gamma": 1.0e00 / (gammag - 1.0e00), diff --git a/examples/2D_lungwave_horizontal/case.py b/examples/2D_lungwave_horizontal/case.py index bcc19eb850..2f5c0db058 100644 --- a/examples/2D_lungwave_horizontal/case.py +++ b/examples/2D_lungwave_horizontal/case.py @@ -82,9 +82,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": -dlengx / 2.0, "x_domain%end": dlengx / 2.0, "y_domain%beg": 0.0, @@ -96,7 +96,7 @@ "t_step_start": tstart, "t_step_stop": tstop, "t_step_save": tsave, - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 2, "model_eqns": 2, "alt_soundspeed": "F", @@ -118,12 +118,12 @@ "bc_x%end": -6, "bc_y%beg": -1, "bc_y%end": -1, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "T", - # Monopole setting ========================================================= + # Monopole setting "acoustic_source": "T", # creating an acoustic wave "num_source": 1, # place in the middle and expand "acoustic(1)%pulse": 3, # square wave @@ -135,7 +135,7 @@ "acoustic(1)%loc(1)": 0.7 * dlengy, # x_center of the domain "acoustic(1)%loc(2)": dlengy / 2, # upper boundary of the domain "acoustic(1)%dir": -math.pi, # direction: -pi/2 - # Patch 1: Background ====================================================== + # Patch 1: Background "patch_icpp(1)%geometry": 3, "patch_icpp(1)%x_centroid": 0.0, "patch_icpp(1)%y_centroid": dlengy / 2.0, @@ -148,7 +148,7 @@ "patch_icpp(1)%alpha_rho(2)": rhog_n * alphag_back, "patch_icpp(1)%alpha(1)": alphal_back, "patch_icpp(1)%alpha(2)": alphag_back, - # Patch 2: Lung ============================================================ + # Patch 2: Lung "patch_icpp(2)%geometry": 7, "patch_icpp(2)%hcid": 206, "patch_icpp(2)%alter_patch(1)": "T", @@ -164,7 +164,7 @@ "patch_icpp(2)%alpha_rho(2)": rhog_n * alphag_lung, "patch_icpp(2)%alpha(1)": alphal_lung, "patch_icpp(2)%alpha(2)": alphag_lung, - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (gammal - 1.0e00), "fluid_pp(1)%pi_inf": gammal * Bl_n / (gammal - 1.0e00), "fluid_pp(2)%gamma": 1.0e00 / (gammag - 1.0e00), diff --git a/examples/2D_mixing_artificial_Ma/case.py b/examples/2D_mixing_artificial_Ma/case.py index 840db2b9cf..825ce9a24a 100644 --- a/examples/2D_mixing_artificial_Ma/case.py +++ b/examples/2D_mixing_artificial_Ma/case.py @@ -2,31 +2,31 @@ import math import json -# FLUID PROPERTIES (WATER, VAPOR & AIR) ======================================== +# FLUID PROPERTIES (WATER, VAPOR & AIR) # Water rho_w = 1.0e03 # [kg/m3] density of water gamma_w = 7.1 # [1] specific heat ratio pi_inf_w = 3.06e08 # [N/m2] water stiffness -# REFERENCE VALUES ============================================================= +# REFERENCE VALUES x_ref = 0.002475 # [m] initial vorticity thickness u_ref = 3.4343 # [m/s] upper stream velocity -# NON-DIMENSIONAL NUMBERS ====================================================== +# NON-DIMENSIONAL NUMBERS Re = 50.0 # [1] Reynolds number based on the upper stream # velocity and the initial vorticity thickness -# SPEED OF SOUND =============================================================== +# SPEED OF SOUND pres = 8236.0 # [N/m2] pressure of water c_w = math.sqrt(gamma_w * (pres + pi_inf_w) / rho_w) -# MODIFIED PROPERTIES FOR ARTIFICIAL MACH NUMBER ============================== +# MODIFIED PROPERTIES FOR ARTIFICIAL MACH NUMBER Ma_t = 0.1 # [1] target Mach number pi_fac = (rho_w * u_ref**2 / (gamma_w * Ma_t**2) - pres) / pi_inf_w pi_inf_w = pi_inf_w * pi_fac c_w = math.sqrt(gamma_w * (pres + pi_inf_w) / rho_w) -# SIMULATION SETUP ============================================================ +# SIMULATION SETUP # Domain size Lx = 59.0 Ly = 59.0 @@ -55,9 +55,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": 0.0, "x_domain%end": Lx, "y_domain%beg": -Ly / 2.0, @@ -69,7 +69,7 @@ "t_step_start": t_step_start, "t_step_stop": t_step_stop, "t_step_save": t_save, - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 1, "model_eqns": 2, "num_fluids": 1, @@ -86,7 +86,7 @@ "bc_y%beg": -6, "bc_y%end": -6, "viscous": "T", - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "cons_vars_wrt": "T", @@ -94,7 +94,7 @@ "parallel_io": "T", "fd_order": 1, "omega_wrt(3)": "T", - # Patch 1 ================================================================== + # Patch 1 "patch_icpp(1)%geometry": 3, "patch_icpp(1)%x_centroid": Lx / 2.0, "patch_icpp(1)%y_centroid": 0.0, @@ -105,14 +105,14 @@ "patch_icpp(1)%vel(1)": 1.0, "patch_icpp(1)%vel(2)": 0.0, "patch_icpp(1)%pres": pres / (rho_w * u_ref**2), - # Mixing layer === ========================================================= + # Mixing layer "mixlayer_vel_profile": "T", "mixlayer_vel_coef": 1.0, "mixlayer_domain": 1.0, "mixlayer_perturb": "T", - # Artificial Mach number =================================================== + # Artificial Mach number "pi_fac": pi_fac, - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (gamma_w - 1.0e00), "fluid_pp(1)%pi_inf": gamma_w * (pi_inf_w / (rho_w * u_ref**2)) / (gamma_w - 1.0e00), "fluid_pp(1)%Re(1)": Re, diff --git a/examples/2D_phasechange_bubble/case.py b/examples/2D_phasechange_bubble/case.py index 66dd8bc500..6a3da7d225 100644 --- a/examples/2D_phasechange_bubble/case.py +++ b/examples/2D_phasechange_bubble/case.py @@ -171,13 +171,13 @@ # Total physical time # tend = Nt * dt -# Configuring case dictionary ================================================== +# Configuring case dictionary print( json.dumps( { - # Logistics ================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================== + # Computational Domain Parameters "x_domain%beg": xb, "x_domain%end": xe, "y_domain%beg": yb, @@ -200,7 +200,7 @@ "t_step_start": 0, "t_step_stop": Nt, "t_step_save": AS, - # Simulation Algorithm Parameters ========================== + # Simulation Algorithm Parameters "num_patches": 2, "model_eqns": 3, "num_fluids": 3, @@ -225,12 +225,12 @@ "bc_x%end": -6, "bc_y%beg": -2, "bc_y%end": -6, - # Formatted Database Files Structure Parameters ============ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "T", - # Patch 1: High pressured water ============================ + # Patch 1: High pressured water # Specify the cubic water background grid geometry "patch_icpp(1)%geometry": 3, "patch_icpp(1)%x_centroid": (xe + xb) * 500000 / 100, @@ -246,7 +246,7 @@ "patch_icpp(1)%alpha(1)": awl1, "patch_icpp(1)%alpha(2)": awv1, "patch_icpp(1)%alpha(3)": aa1, - # Patch 2: (Vapor) Bubble ================================== + # Patch 2: (Vapor) Bubble "patch_icpp(2)%geometry": 2, "patch_icpp(2)%x_centroid": xb, "patch_icpp(2)%y_centroid": yb, @@ -261,7 +261,7 @@ "patch_icpp(2)%alpha(2)": awv2, "patch_icpp(2)%alpha(3)": aa2, "patch_icpp(2)%alter_patch(1)": "T", - # Fluids Physical Parameters =============================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (gamwl - 1), "fluid_pp(1)%pi_inf": gamwl * piwl / (gamwl - 1), "fluid_pp(1)%cv": cvwl, diff --git a/examples/2D_phasechange_bubble/casefile.py b/examples/2D_phasechange_bubble/casefile.py index da886141f3..0e3c4dfef1 100644 --- a/examples/2D_phasechange_bubble/casefile.py +++ b/examples/2D_phasechange_bubble/casefile.py @@ -171,13 +171,13 @@ # Total physical time # tend = Nt * dt -# Configuring case dictionary ================================================== +# Configuring case dictionary print( json.dumps( { - # Logistics ================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================== + # Computational Domain Parameters "x_domain%beg": xb, "x_domain%end": xe, "y_domain%beg": yb, @@ -207,7 +207,7 @@ "t_step_start": 0, "t_step_stop": Nt, "t_step_save": AS, - # Simulation Algorithm Parameters ========================== + # Simulation Algorithm Parameters "num_patches": 2, "model_eqns": 3, "num_fluids": 3, @@ -234,12 +234,12 @@ "bc_y%end": -6, "bc_z%beg": -2, "bc_z%end": -6, - # Formatted Database Files Structure Parameters ============ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "T", - # Patch 1: High pressured water ============================ + # Patch 1: High pressured water # Specify the cubic water background grid geometry "patch_icpp(1)%geometry": 9, "patch_icpp(1)%x_centroid": (xe + xb) * 500000 / 100, @@ -258,7 +258,7 @@ "patch_icpp(1)%alpha(1)": awl1, "patch_icpp(1)%alpha(2)": awv1, "patch_icpp(1)%alpha(3)": aa1, - # Patch 2: (Vapor) Bubble ================================== + # Patch 2: (Vapor) Bubble "patch_icpp(2)%geometry": 8, "patch_icpp(2)%x_centroid": xb, "patch_icpp(2)%y_centroid": yb, @@ -275,7 +275,7 @@ "patch_icpp(2)%alpha(2)": awv2, "patch_icpp(2)%alpha(3)": aa2, "patch_icpp(2)%alter_patch(1)": "T", - # Fluids Physical Parameters =============================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (gamwl - 1), "fluid_pp(1)%pi_inf": gamwl * piwl / (gamwl - 1), "fluid_pp(1)%cv": cvwl, diff --git a/examples/2D_rayleigh_taylor/case.py b/examples/2D_rayleigh_taylor/case.py index 5de033e59c..635af8b6e2 100644 --- a/examples/2D_rayleigh_taylor/case.py +++ b/examples/2D_rayleigh_taylor/case.py @@ -28,9 +28,9 @@ # Configuration case dictionary data = { - # Logistics ============================= + # Logistics "run_time_info": "T", - # Computational Domain ================== + # Computational Domain "x_domain%beg": x0, "x_domain%end": x1, "y_domain%beg": y0, @@ -43,7 +43,7 @@ "t_step_start": 0, "t_step_stop": Nt, "t_step_save": Ns, - # Simulation Algorithm ================== + # Simulation Algorithm "model_eqns": 3, "alt_soundspeed": "F", "mixture_err": "T", @@ -65,26 +65,26 @@ "num_patches": 1, "num_fluids": 2, "viscous": "T", - # Database Structure Parameters ========= + # Database Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "T", - # Fluid Parameters (Heavy Gas) ========== + # Fluid Parameters (Heavy Gas) "fluid_pp(1)%gamma": 1.0e00 / (1.4e00 - 1.0e00), "fluid_pp(1)%pi_inf": 0.0e00, "fluid_pp(1)%Re(1)": 1 / 0.0219, - # Fluid Parameters (Light Gas) ========== + # Fluid Parameters (Light Gas) "fluid_pp(2)%gamma": 1.0e00 / (1.4e00 - 1.0e00), "fluid_pp(2)%pi_inf": 0.0e00, "fluid_pp(2)%Re(1)": 1 / 0.0073, - # Body Forces =========================== + # Body Forces "bf_y": "T", "k_y": 0.0, "w_y": 0.0, "p_y": 0.0, "g_y": -9.81, - # Water Patch ========================== + # Water Patch "patch_icpp(1)%geometry": 7, "patch_icpp(1)%hcid": 204, "patch_icpp(1)%x_centroid": 0, diff --git a/examples/2D_riemann_test/case.py b/examples/2D_riemann_test/case.py index a8ff72a42d..f4f588aefd 100644 --- a/examples/2D_riemann_test/case.py +++ b/examples/2D_riemann_test/case.py @@ -6,9 +6,9 @@ print( json.dumps( { - # Logistics ================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================== + # Computational Domain Parameters "x_domain%beg": 0.0, "x_domain%end": 1.0, "y_domain%beg": 0.0, @@ -20,7 +20,7 @@ "t_step_start": 0, "t_step_stop": 10000, "t_step_save": 100, - # Simulation Algorithm Parameters ========================== + # Simulation Algorithm Parameters "num_patches": 4, "model_eqns": 2, "alt_soundspeed": "F", @@ -41,12 +41,12 @@ "bc_x%end": -3, "bc_y%beg": -3, "bc_y%end": -3, - # Formatted Database Files Structure Parameters ============ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "T", - # Patch 1: Base ============================================ + # Patch 1: Base "patch_icpp(1)%geometry": 3, "patch_icpp(1)%x_centroid": 0.4, "patch_icpp(1)%y_centroid": 0.4, @@ -57,7 +57,7 @@ "patch_icpp(1)%pres": 9 / 310, "patch_icpp(1)%alpha_rho(1)": 77 / 558, "patch_icpp(1)%alpha(1)": 1, - # Patch 1: Base ============================================ + # Patch 1: Base "patch_icpp(2)%geometry": 3, "patch_icpp(2)%x_centroid": 0.4, "patch_icpp(2)%y_centroid": 0.9, @@ -68,7 +68,7 @@ "patch_icpp(2)%pres": 0.3, "patch_icpp(2)%alpha_rho(1)": 33 / 62, "patch_icpp(2)%alpha(1)": 1, - # Patch 1: Base ============================================ + # Patch 1: Base "patch_icpp(3)%geometry": 3, "patch_icpp(3)%x_centroid": 0.9, "patch_icpp(3)%y_centroid": 0.4, @@ -79,7 +79,7 @@ "patch_icpp(3)%pres": 0.3, "patch_icpp(3)%alpha_rho(1)": 33 / 62, "patch_icpp(3)%alpha(1)": 1, - # Patch 1: Base ============================================ + # Patch 1: Base "patch_icpp(4)%geometry": 3, "patch_icpp(4)%x_centroid": 0.9, "patch_icpp(4)%y_centroid": 0.9, @@ -90,7 +90,7 @@ "patch_icpp(4)%pres": 1.5, "patch_icpp(4)%alpha_rho(1)": 1.5, "patch_icpp(4)%alpha(1)": 1.0, - # Fluids Physical Parameters =============================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (1.4e00 - 1.0e00), "fluid_pp(1)%pi_inf": 0.0e00, } diff --git a/examples/2D_shearlayer/case.py b/examples/2D_shearlayer/case.py index 25826d06f4..628686c444 100644 --- a/examples/2D_shearlayer/case.py +++ b/examples/2D_shearlayer/case.py @@ -9,9 +9,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": -0.500000000000000e00, "x_domain%end": 0.500000000000000e00, "y_domain%beg": -0.250000000000000e00, @@ -23,7 +23,7 @@ "t_step_start": 0, "t_step_stop": int(4e5), "t_step_save": int(1e4), - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "model_eqns": 2, "num_fluids": 2, "num_patches": 2, @@ -43,12 +43,12 @@ "bc_y%beg": -5, "bc_y%end": -5, "viscous": "T", - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "T", - # Patch 1: initialize entire domain ======================================== + # Patch 1: initialize entire domain "patch_icpp(2)%geometry": 3, "patch_icpp(2)%x_centroid": 0.00000000000000e00, "patch_icpp(2)%y_centroid": 0.00000000000000e00, @@ -61,7 +61,7 @@ "patch_icpp(2)%alpha_rho(2)": 1000.0 * 1e-12, "patch_icpp(2)%alpha(1)": 1.00000000000000e00 - 1.0e-12, "patch_icpp(2)%alpha(2)": 1.0e-12, - # Patch 2: overwrite lower half plane ====================================== + # Patch 2: overwrite lower half plane "patch_icpp(1)%geometry": 4, "patch_icpp(1)%x_centroid": 0.00000000000000e00, "patch_icpp(1)%y_centroid": 0.00000000000000e00, @@ -78,7 +78,7 @@ "patch_icpp(1)%alpha_rho(2)": 1000.000000000000e00, "patch_icpp(1)%alpha(1)": 1.00000000000000e-12, "patch_icpp(1)%alpha(2)": 1 - 1.00000000000000e-12, - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (4.4e00 - 1.0e00), "fluid_pp(1)%pi_inf": 4.4e00 * 6.0e08 / (4.4e00 - 1.0e00), "fluid_pp(1)%Re(1)": 1 / Mu1, diff --git a/examples/2D_shockbubble/case.py b/examples/2D_shockbubble/case.py index 37c9fb3815..64f029e95e 100644 --- a/examples/2D_shockbubble/case.py +++ b/examples/2D_shockbubble/case.py @@ -23,9 +23,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": -leng / 2.0, "x_domain%end": leng / 2 + 2 * leng, "y_domain%beg": -leng / 2.0, @@ -37,7 +37,7 @@ "t_step_start": 0, "t_step_stop": Nt, "t_step_save": int(Nt / 20.0), - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 3, "model_eqns": 2, "alt_soundspeed": "F", @@ -59,12 +59,12 @@ "bc_x%end": -6, "bc_y%beg": -6, "bc_y%end": -6, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "T", - # Patch 1: Background ====================================================== + # Patch 1: Background "patch_icpp(1)%geometry": 3, "patch_icpp(1)%x_centroid": 0.0, "patch_icpp(1)%y_centroid": 0.0, @@ -77,7 +77,7 @@ "patch_icpp(1)%alpha_rho(2)": 0.0e00, "patch_icpp(1)%alpha(1)": 1.0e00, "patch_icpp(1)%alpha(2)": 0.0e00, - # Patch 2: Shocked state =================================================== + # Patch 2: Shocked state "patch_icpp(2)%geometry": 3, "patch_icpp(2)%alter_patch(1)": "T", "patch_icpp(2)%x_centroid": -3 * leng / 8.0, @@ -91,7 +91,7 @@ "patch_icpp(2)%alpha_rho(2)": 0.0e00, "patch_icpp(2)%alpha(1)": 1.0e00, "patch_icpp(2)%alpha(2)": 0.0e00, - # Patch 3: Bubble ========================================================== + # Patch 3: Bubble "patch_icpp(3)%geometry": 2, "patch_icpp(3)%x_centroid": 0.0e00, "patch_icpp(3)%y_centroid": 0.0e00, @@ -104,7 +104,7 @@ "patch_icpp(3)%alpha_rho(2)": 0.167, "patch_icpp(3)%alpha(1)": 0.0e00, "patch_icpp(3)%alpha(2)": 1.0e00, - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (1.4e00 - 1.0e00), "fluid_pp(1)%pi_inf": 0.0, "fluid_pp(2)%gamma": 1.0e00 / (1.6666e00 - 1.0e00), diff --git a/examples/2D_shockdroplet/case.py b/examples/2D_shockdroplet/case.py index d6dbe0e5a5..1247c79c34 100755 --- a/examples/2D_shockdroplet/case.py +++ b/examples/2D_shockdroplet/case.py @@ -29,9 +29,9 @@ print( json.dumps( { - # Logistics ================================================ + # Logistics "run_time_info": "F", - # Computational Domain Parameters ========================== + # Computational Domain Parameters "x_domain%beg": -4 * D, "x_domain%end": 20 * D, "y_domain%beg": 0, @@ -48,7 +48,7 @@ "t_step_start": 0, "t_step_stop": Nt, "t_step_save": Nt, # math.ceil(Nt/100), - # Simulation Algorithm Parameters ========================== + # Simulation Algorithm Parameters "num_patches": 3, "model_eqns": 2, "alt_soundspeed": "F", @@ -70,12 +70,12 @@ "bc_x%end": -6, # 12 "bc_y%beg": -2, "bc_y%end": -3, - # Formatted Database Files Structure Parameters ============ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "T", - # Patch 1: Background ============================ + # Patch 1: Background "patch_icpp(1)%geometry": 3, "patch_icpp(1)%x_centroid": 8 * D, "patch_icpp(1)%y_centroid": 6 * D, @@ -88,7 +88,7 @@ "patch_icpp(1)%alpha_rho(2)": (1 - eps) * 1.17, "patch_icpp(1)%alpha(1)": eps, "patch_icpp(1)%alpha(2)": 1 - eps, - # Patch 2: Shocked state ============================ + # Patch 2: Shocked state "patch_icpp(2)%geometry": 3, "patch_icpp(2)%alter_patch(1)": "T", "patch_icpp(2)%x_centroid": -2.5 * D, @@ -102,7 +102,7 @@ "patch_icpp(2)%alpha_rho(2)": (1 - eps) * rho_post_a, "patch_icpp(2)%alpha(1)": eps, "patch_icpp(2)%alpha(2)": 1 - eps, - # Patch 3: Bubble ====================================== + # Patch 3: Bubble "patch_icpp(3)%geometry": 2, "patch_icpp(3)%x_centroid": 0, "patch_icpp(3)%y_centroid": 0, @@ -115,7 +115,7 @@ "patch_icpp(3)%alpha_rho(2)": eps * 1.17, "patch_icpp(3)%alpha(1)": 1 - eps, # 0.95 "patch_icpp(3)%alpha(2)": eps, # 0.05, - # Fluids Physical Parameters =============================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (gam_w - 1.0e00), "fluid_pp(1)%pi_inf": pi_w * gam_w / (gam_w - 1.0e00), "fluid_pp(2)%gamma": 1.0e00 / (gam_a - 1.0e00), diff --git a/examples/2D_shocktube_phasechange/case.py b/examples/2D_shocktube_phasechange/case.py index 34675cd270..90a6447075 100644 --- a/examples/2D_shocktube_phasechange/case.py +++ b/examples/2D_shocktube_phasechange/case.py @@ -153,13 +153,13 @@ # Total physical time tend = Nt * dt -# Configuring case dictionary ================================================== +# Configuring case dictionary print( json.dumps( { - # Logistics ================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================== + # Computational Domain Parameters "x_domain%beg": xb, "x_domain%end": xe, "y_domain%beg": yb, @@ -171,7 +171,7 @@ "t_step_start": 0, "t_step_stop": Nt, "t_step_save": AS, - # Simulation Algorithm Parameters ========================== + # Simulation Algorithm Parameters "num_patches": 3, "model_eqns": 3, "num_fluids": 3, @@ -194,12 +194,12 @@ "bc_x%end": -6, "bc_y%beg": -2, "bc_y%end": -6, - # Formatted Database Files Structure Parameters ============ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "T", - # Patch 1 - Background ===================================== + # Patch 1 - Background "patch_icpp(1)%geometry": 3, "patch_icpp(1)%x_centroid": (xe + xb) * 2 / 4, "patch_icpp(1)%y_centroid": (ye + yb) * 2 / 4, @@ -214,7 +214,7 @@ "patch_icpp(1)%alpha(1)": awl1, "patch_icpp(1)%alpha(2)": awv1, "patch_icpp(1)%alpha(3)": aa1, - # Patch 2 - Shocked State ================================== + # Patch 2 - Shocked State "patch_icpp(2)%geometry": 3, "patch_icpp(2)%x_centroid": (xe + xb) * 1 / 4, "patch_icpp(2)%y_centroid": (ye + yb) * 2 / 4, @@ -230,7 +230,7 @@ "patch_icpp(2)%alpha(2)": awv2, "patch_icpp(2)%alpha(3)": aa2, "patch_icpp(2)%alter_patch(1)": "T", - # patch 3: Water ============================================ + # patch 3: Water "patch_icpp(3)%geometry": 3, "patch_icpp(3)%x_centroid": (xe + xb) * 2.5 / 4, "patch_icpp(3)%y_centroid": (ye + yb) * 2 / 4, @@ -246,7 +246,7 @@ "patch_icpp(3)%alpha(2)": awv3, "patch_icpp(3)%alpha(3)": aa3, "patch_icpp(3)%alter_patch(1)": "T", - # Fluids Physical Parameters =============================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (gamwl - 1), "fluid_pp(1)%pi_inf": gamwl * piwl / (gamwl - 1), "fluid_pp(1)%cv": cvwl, diff --git a/examples/2D_triple_point/case.py b/examples/2D_triple_point/case.py index 4d699b039c..23e5bc1fe0 100755 --- a/examples/2D_triple_point/case.py +++ b/examples/2D_triple_point/case.py @@ -9,9 +9,9 @@ print( json.dumps( { - # Logistics ================================================ + # Logistics "run_time_info": "F", - # Computational Domain Parameters ========================== + # Computational Domain Parameters "x_domain%beg": 0, "x_domain%end": 7, "y_domain%beg": 0, @@ -24,7 +24,7 @@ "n_start": 0, "t_stop": 4.0, "t_save": 0.04, - # Simulation Algorithm Parameters ========================== + # Simulation Algorithm Parameters "num_patches": 3, "model_eqns": 2, "alt_soundspeed": "F", @@ -46,7 +46,7 @@ "bc_x%end": -3, # 12 "bc_y%beg": -3, "bc_y%end": -3, - # Formatted Database Files Structure Parameters ============ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", @@ -55,7 +55,7 @@ "schlieren_alpha(1)": 0.5, "schlieren_alpha(2)": 0.5, "parallel_io": "T", - # Patch 1: Left state ==================================== + # Patch 1: Left state "patch_icpp(1)%geometry": 3, "patch_icpp(1)%x_centroid": 0.5, "patch_icpp(1)%y_centroid": 3, @@ -68,7 +68,7 @@ "patch_icpp(1)%alpha_rho(2)": eps, "patch_icpp(1)%alpha(1)": 1 - eps, "patch_icpp(1)%alpha(2)": eps, - # Patch 2: Top right state ================================ + # Patch 2: Top right state "patch_icpp(2)%geometry": 3, "patch_icpp(2)%alter_patch(1)": "T", "patch_icpp(2)%x_centroid": 4, @@ -82,7 +82,7 @@ "patch_icpp(2)%alpha_rho(2)": eps, "patch_icpp(2)%alpha(1)": 1 - eps, "patch_icpp(2)%alpha(2)": eps, - # Patch 3: Bottom right state ============================= + # Patch 3: Bottom right state "patch_icpp(3)%geometry": 3, "patch_icpp(3)%alter_patch(1)": "T", "patch_icpp(3)%x_centroid": 4, @@ -96,7 +96,7 @@ "patch_icpp(3)%alpha_rho(2)": (1 - eps) * 1.0, "patch_icpp(3)%alpha(1)": eps, # 0.95 "patch_icpp(3)%alpha(2)": 1 - eps, # 0.05, - # Fluids Physical Parameters =============================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0 / (1.5 - 1.0), "fluid_pp(1)%pi_inf": 0, "fluid_pp(2)%gamma": 1.0 / (1.4 - 1.0), diff --git a/examples/2D_viscous/case.py b/examples/2D_viscous/case.py index 6cd8a1921b..de0fa1a7cf 100644 --- a/examples/2D_viscous/case.py +++ b/examples/2D_viscous/case.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 #!/usr/bin/env python3 -# Dependencies and Logistics =================================================== +# Dependencies and Logistics # Command to navigate between directories import math @@ -17,9 +17,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": -0.5, "x_domain%end": 0.5, "y_domain%beg": -0.5, @@ -32,7 +32,7 @@ "t_step_start": 0, "t_step_stop": 2000, "t_step_save": 20, - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 2, "model_eqns": 2, "alt_soundspeed": "F", @@ -55,12 +55,12 @@ "bc_y%beg": -6, "bc_y%end": -6, "viscous": "T", - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "T", - # Patch 1: Top fluid, water ================================================ + # Patch 1: Top fluid, water "patch_icpp(1)%geometry": 3, "patch_icpp(1)%x_centroid": 0.0, "patch_icpp(1)%y_centroid": 0, @@ -73,7 +73,7 @@ "patch_icpp(1)%alpha_rho(2)": rho_l, "patch_icpp(1)%alpha(1)": 0.5e00, "patch_icpp(1)%alpha(2)": 0.5e00, - # Patch 2: Main bottom fluid, water ======================================== + # Patch 2: Main bottom fluid, water "patch_icpp(2)%geometry": 3, "patch_icpp(2)%x_centroid": 0.0, "patch_icpp(2)%y_centroid": 0.25, @@ -87,7 +87,7 @@ "patch_icpp(2)%alpha_rho(2)": rho_g, "patch_icpp(2)%alpha(1)": 0.0, "patch_icpp(2)%alpha(2)": 1.0e00, - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (4.4e00 - 1.0e00), "fluid_pp(2)%gamma": 1.0e00 / (4.4e00 - 1.0e00), "fluid_pp(1)%pi_inf": 4.4e00 * 6.0e08 / (4.4e00 - 1.0e00), diff --git a/examples/2D_whale_bubble_annulus/case.py b/examples/2D_whale_bubble_annulus/case.py index bd9edc58b9..15afc66b0a 100755 --- a/examples/2D_whale_bubble_annulus/case.py +++ b/examples/2D_whale_bubble_annulus/case.py @@ -64,9 +64,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "F", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": -Lx / 2.0, "x_domain%end": Lx / 2.0, "y_domain%beg": -Ly / 2.0, @@ -79,7 +79,7 @@ "t_step_start": 0, "t_step_stop": 1000, "t_step_save": 10, - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 3, "model_eqns": 2, "alt_soundspeed": "F", @@ -98,12 +98,12 @@ "bc_x%end": -1, "bc_y%beg": -1, "bc_y%end": -1, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "T", - # Patch 1 ================================================================== + # Patch 1 "patch_icpp(1)%geometry": 3, "patch_icpp(1)%x_centroid": 0.0, "patch_icpp(1)%y_centroid": 0.0, @@ -116,7 +116,7 @@ "patch_icpp(1)%pres": 1.0, "patch_icpp(1)%r0": 1.0e00, "patch_icpp(1)%v0": 0.0e00, - # Patch 2 ================================================================== + # Patch 2 "patch_icpp(2)%geometry": 2, "patch_icpp(2)%alter_patch(1)": "T", "patch_icpp(2)%x_centroid": 0.0, @@ -142,13 +142,13 @@ "patch_icpp(3)%alpha(1)": vf0, "patch_icpp(3)%r0": 1.0e00, "patch_icpp(3)%v0": 0.0e00, - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters # Surrounding liquid "fluid_pp(1)%gamma": 1.0e00 / (n_tait - 1.0e00), "fluid_pp(1)%pi_inf": n_tait * B_tait / (n_tait - 1.0), "fluid_pp(2)%gamma": 1.0 / (gamma_gas - 1.0), "fluid_pp(2)%pi_inf": 0.0e00, - # Bubbles ================================================================== + # Bubbles "bubbles_euler": "T", "bubble_model": 3, "polytropic": "T", diff --git a/examples/2D_zero_circ_vortex/case.py b/examples/2D_zero_circ_vortex/case.py index 203341830b..793f265b7c 100644 --- a/examples/2D_zero_circ_vortex/case.py +++ b/examples/2D_zero_circ_vortex/case.py @@ -24,9 +24,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": -20, "x_domain%end": 20, "y_domain%beg": -10, @@ -38,7 +38,7 @@ "t_step_start": 0, "t_step_stop": Nt, "t_step_save": int(Nt / 100), - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 2, "model_eqns": 2, "alt_soundspeed": "F", @@ -58,14 +58,14 @@ "bc_x%end": -8, "bc_y%beg": -6, "bc_y%end": -6, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "T", "omega_wrt(3)": "T", "fd_order": 2, - # Patch 1 ================================================================== + # Patch 1 "patch_icpp(1)%geometry": 3, "patch_icpp(1)%x_centroid": 0, "patch_icpp(1)%y_centroid": 0, @@ -76,7 +76,7 @@ "patch_icpp(1)%pres": 101325, "patch_icpp(1)%alpha_rho(1)": 1, "patch_icpp(1)%alpha(1)": 1.0, - # Patch 2 ================================================================== + # Patch 2 "patch_icpp(2)%geometry": 2, "patch_icpp(2)%x_centroid": 0, "patch_icpp(2)%y_centroid": 0, @@ -87,7 +87,7 @@ "patch_icpp(2)%alpha_rho(1)": f"{rho_inf}*(1 - 0.5*({gam} - 1)*({Mv} / {M_inf})**2*exp(0.5*(1 - sqrt(x**2 + y**2))))**(1 / ({gam} - 1))", "patch_icpp(2)%alpha(1)": 1.0, "patch_icpp(2)%alter_patch(1)": "T", - # CBC Inflow / Outflow ======================================== + # CBC Inflow / Outflow "bc_x%grcbc_in": "T", "bc_x%grcbc_out": "T", "bc_x%grcbc_vel_out": "T", @@ -101,7 +101,7 @@ "bc_x%vel_out(2)": 0, "bc_x%vel_out(3)": 0, "bc_x%pres_out": p_inf, - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (gam - 1.0e00), "fluid_pp(1)%pi_inf": 0.0, } diff --git a/examples/3D_TaylorGreenVortex/case.py b/examples/3D_TaylorGreenVortex/case.py index c883eca721..de440980cb 100644 --- a/examples/3D_TaylorGreenVortex/case.py +++ b/examples/3D_TaylorGreenVortex/case.py @@ -27,9 +27,9 @@ print( json.dumps( { - # Logistics ================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================== + # Computational Domain Parameters "x_domain%beg": -math.pi * L, "x_domain%end": math.pi * L, "y_domain%beg": -math.pi * L, @@ -44,7 +44,7 @@ "t_step_start": 13529, "t_step_stop": Nt, "t_step_save": int(Nt / 100), - # Simulation Algorithm Parameters ========================== + # Simulation Algorithm Parameters "num_patches": 1, "model_eqns": 2, "alt_soundspeed": "F", @@ -66,7 +66,7 @@ "bc_z%beg": -1, "bc_z%end": -1, "viscous": "T", - # Formatted Database Files Structure Parameters ============ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, # 'prim_vars_wrt' :'T', @@ -77,7 +77,7 @@ "fd_order": 4, "parallel_io": "T", # I will use 1 for WATER properties, and 2 for AIR properties - # Patch 1: Background (AIR - 2) ============================= + # Patch 1: Background (AIR - 2) "patch_icpp(1)%geometry": 9, "patch_icpp(1)%x_centroid": 0, "patch_icpp(1)%y_centroid": 0, @@ -91,7 +91,7 @@ "patch_icpp(1)%pres": f"{P0} + ({rho0}*{V0}**2/16)*(cos(2*x/{L}) + cos(2*y/{L}))*(cos(2*z/{L}) + 2)", "patch_icpp(1)%alpha_rho(1)": 1, "patch_icpp(1)%alpha(1)": 1, - # Fluids Physical Parameters =============================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (1.4 - 1), "fluid_pp(1)%pi_inf": 0, "fluid_pp(1)%Re(1)": 1 / mu, diff --git a/examples/3D_acoustic_support11/case.py b/examples/3D_acoustic_support11/case.py index 76a34033e9..047fb9b37b 100644 --- a/examples/3D_acoustic_support11/case.py +++ b/examples/3D_acoustic_support11/case.py @@ -5,9 +5,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": 0, "x_domain%end": 0.001, "y_domain%beg": 0, @@ -21,7 +21,7 @@ "t_step_start": 0, "t_step_stop": 200, "t_step_save": 10, - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 1, "model_eqns": 2, "alt_soundspeed": "F", @@ -44,12 +44,12 @@ "bc_y%end": -6, "bc_z%beg": -6, "bc_z%end": -6, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "T", - # Patch 1 Liquid =========================================================== + # Patch 1 Liquid "patch_icpp(1)%geometry": 9, "patch_icpp(1)%x_centroid": 0.0005, "patch_icpp(1)%y_centroid": 0.0005, @@ -63,7 +63,7 @@ "patch_icpp(1)%pres": 1e05, "patch_icpp(1)%alpha_rho(1)": 1100, "patch_icpp(1)%alpha(1)": 1.0, - # Acoustic source ========================================================== + # Acoustic source "acoustic_source": "T", "num_source": 2, "acoustic(1)%support": 11, @@ -96,7 +96,7 @@ "acoustic(2)%element_on": 0, "acoustic(2)%rotate_angle": math.pi / 12, "acoustic(2)%delay": 1e-7, - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (4.4e00 - 1.0e00), "fluid_pp(1)%pi_inf": 4.4e00 * 5.57e08 / (4.4e00 - 1.0e00), } diff --git a/examples/3D_acoustic_support3/case.py b/examples/3D_acoustic_support3/case.py index cf45b0c297..98be752cfd 100644 --- a/examples/3D_acoustic_support3/case.py +++ b/examples/3D_acoustic_support3/case.py @@ -5,9 +5,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": 0, "x_domain%end": 0.001, "y_domain%beg": 0, @@ -21,7 +21,7 @@ "t_step_start": 0, "t_step_stop": 50, "t_step_save": 5, - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 1, "model_eqns": 2, "alt_soundspeed": "F", @@ -44,12 +44,12 @@ "bc_y%end": -6, "bc_z%beg": -6, "bc_z%end": -6, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "T", - # Patch 1 Liquid =========================================================== + # Patch 1 Liquid "patch_icpp(1)%geometry": 9, "patch_icpp(1)%x_centroid": 0.0005, "patch_icpp(1)%y_centroid": 0.0005, @@ -63,7 +63,7 @@ "patch_icpp(1)%pres": 1e05, "patch_icpp(1)%alpha_rho(1)": 1100, "patch_icpp(1)%alpha(1)": 1.0, - # Acoustic source ========================================================== + # Acoustic source "acoustic_source": "T", "num_source": 1, "acoustic(1)%support": 3, @@ -77,7 +77,7 @@ "acoustic(1)%mag": 1.0, "acoustic(1)%gauss_sigma_time": 2e-8, "acoustic(1)%delay": 1e-7, - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (4.4e00 - 1.0e00), "fluid_pp(1)%pi_inf": 4.4e00 * 5.57e08 / (4.4e00 - 1.0e00), } diff --git a/examples/3D_acoustic_support7/case.py b/examples/3D_acoustic_support7/case.py index d08c720637..ca856ebe17 100644 --- a/examples/3D_acoustic_support7/case.py +++ b/examples/3D_acoustic_support7/case.py @@ -5,9 +5,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": 0, "x_domain%end": 0.001, "y_domain%beg": 0, @@ -21,7 +21,7 @@ "t_step_start": 0, "t_step_stop": 100, "t_step_save": 5, - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 1, "model_eqns": 2, "alt_soundspeed": "F", @@ -44,12 +44,12 @@ "bc_y%end": -6, "bc_z%beg": -6, "bc_z%end": -6, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "T", - # Patch 1 Liquid =========================================================== + # Patch 1 Liquid "patch_icpp(1)%geometry": 9, "patch_icpp(1)%x_centroid": 0.0005, "patch_icpp(1)%y_centroid": 0.0005, @@ -63,7 +63,7 @@ "patch_icpp(1)%pres": 1e05, "patch_icpp(1)%alpha_rho(1)": 1100, "patch_icpp(1)%alpha(1)": 1.0, - # Acoustic source ========================================================== + # Acoustic source "acoustic_source": "T", "num_source": 1, "acoustic(1)%support": 7, @@ -77,7 +77,7 @@ "acoustic(1)%foc_length": 0.00054, "acoustic(1)%aperture": 0.0008, "acoustic(1)%delay": 1e-7, - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (4.4e00 - 1.0e00), "fluid_pp(1)%pi_inf": 4.4e00 * 5.57e08 / (4.4e00 - 1.0e00), } diff --git a/examples/3D_ibm_bowshock/case.py b/examples/3D_ibm_bowshock/case.py index 8499802d3d..bd54f07f05 100644 --- a/examples/3D_ibm_bowshock/case.py +++ b/examples/3D_ibm_bowshock/case.py @@ -10,9 +10,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters # x direction "x_domain%beg": -5 * D, "x_domain%end": 5.0 * D, @@ -30,7 +30,7 @@ "t_step_start": 0, "t_step_stop": 3000, # 3000 "t_step_save": 300, # 10 - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters # Only one patches are necessary, the air tube "num_patches": 1, # Use the 5 equation model @@ -68,13 +68,13 @@ "ib": "T", "num_ibs": 1, "viscous": "T", - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "E_wrt": "T", "parallel_io": "T", - # Patch: Constant Tube filled with air ===================================== + # Patch: Constant Tube filled with air # Specify the cylindrical air tube grid geometry "patch_icpp(1)%geometry": 9, "patch_icpp(1)%x_centroid": 0.0, @@ -91,14 +91,14 @@ "patch_icpp(1)%pres": 10918.2549, "patch_icpp(1)%alpha_rho(1)": 0.2199, "patch_icpp(1)%alpha(1)": 1.0e00, - # Patch: Sphere Immersed Boundary ======================================== + # Patch: Sphere Immersed Boundary "patch_ib(1)%geometry": 8, "patch_ib(1)%x_centroid": -3.0e-3, "patch_ib(1)%y_centroid": 0.0, "patch_ib(1)%z_centroid": 0.0, "patch_ib(1)%radius": D / 2, "patch_ib(1)%slip": "T", - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (gam_a - 1.0e00), # 2.50(Not 1.40) "fluid_pp(1)%pi_inf": 0, "fluid_pp(1)%Re(1)": 7535533.2, diff --git a/examples/3D_ibm_stl_ellipsoid/case.py b/examples/3D_ibm_stl_ellipsoid/case.py index 2aa133ef83..408ffe4ec7 100644 --- a/examples/3D_ibm_stl_ellipsoid/case.py +++ b/examples/3D_ibm_stl_ellipsoid/case.py @@ -10,9 +10,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": -4 * D, "x_domain%end": 4.0 * D, # y direction @@ -29,7 +29,7 @@ "t_step_start": 0, "t_step_stop": 1000, "t_step_save": 10, - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 1, "model_eqns": 2, "alt_soundspeed": "F", @@ -56,7 +56,7 @@ "bc_z%end": -3, "ib": "T", "num_ibs": 1, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", @@ -66,7 +66,7 @@ "omega_wrt(3)": "T", "parallel_io": "T", "fd_order": 2, - # Patch: Constant filled with air ========================================== + # Patch: Constant filled with air "patch_icpp(1)%geometry": 9, "patch_icpp(1)%x_centroid": 0.0, "patch_icpp(1)%y_centroid": 0.0, @@ -80,7 +80,7 @@ "patch_icpp(1)%pres": 10918.2549, "patch_icpp(1)%alpha_rho(1)": (1.0) * rho1, "patch_icpp(1)%alpha(1)": 1.0e00, - # Patch: Model Immersed Boundary =========================================== + # Patch: Model Immersed Boundary "patch_ib(1)%geometry": 12, "patch_ib(1)%model_filepath": "Ellipsoid_IBM.stl", "patch_ib(1)%model_translate(1)": -0.02056, @@ -89,7 +89,7 @@ "patch_ib(1)%model_spc": 20, "patch_ib(1)%model_threshold": 0.01, "patch_ib(1)%slip": "F", - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (gam_a - 1.0e00), "fluid_pp(1)%pi_inf": 0, "fluid_pp(1)%Re(1)": 7535533.2, diff --git a/examples/3D_ibm_stl_pyramid/case.py b/examples/3D_ibm_stl_pyramid/case.py index cf0010091f..220f6c88e6 100644 --- a/examples/3D_ibm_stl_pyramid/case.py +++ b/examples/3D_ibm_stl_pyramid/case.py @@ -10,9 +10,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": -1.5 * D, "x_domain%end": 1.5 * D, # y direction @@ -29,7 +29,7 @@ "t_step_start": 0, "t_step_stop": 1500, "t_step_save": 30, - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 1, "model_eqns": 2, "alt_soundspeed": "F", @@ -56,7 +56,7 @@ "bc_z%end": -3, "ib": "T", "num_ibs": 1, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", @@ -66,7 +66,7 @@ "omega_wrt(3)": "T", "parallel_io": "T", "fd_order": 2, - # Patch: Constant filled with air ========================================== + # Patch: Constant filled with air "patch_icpp(1)%geometry": 9, "patch_icpp(1)%x_centroid": 0.0, "patch_icpp(1)%y_centroid": 0.0, @@ -80,7 +80,7 @@ "patch_icpp(1)%pres": 10918.2549, "patch_icpp(1)%alpha_rho(1)": (1.0) * rho1, "patch_icpp(1)%alpha(1)": 1.0e00, - # Patch: Model Immersed Boundary =========================================== + # Patch: Model Immersed Boundary "patch_ib(1)%geometry": 12, "patch_ib(1)%model_filepath": "3DPyramid_IBM.stl", "patch_ib(1)%model_translate(1)": -0.0500000984, @@ -89,7 +89,7 @@ "patch_ib(1)%model_spc": 100, "patch_ib(1)%model_threshold": 0.95, "patch_ib(1)%slip": "F", - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (gam_a - 1.0e00), "fluid_pp(1)%pi_inf": 0, "fluid_pp(1)%Re(1)": 7535533.2, diff --git a/examples/3D_ibm_stl_test/case.py b/examples/3D_ibm_stl_test/case.py index ee8b3c48d0..8ae6334e10 100644 --- a/examples/3D_ibm_stl_test/case.py +++ b/examples/3D_ibm_stl_test/case.py @@ -10,9 +10,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": -4 * D, "x_domain%end": 4.0 * D, # y direction @@ -29,7 +29,7 @@ "t_step_start": 0, "t_step_stop": 1000, "t_step_save": 10, - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 1, "model_eqns": 2, "alt_soundspeed": "F", @@ -56,7 +56,7 @@ "bc_z%end": -3, "ib": "T", "num_ibs": 1, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", @@ -66,7 +66,7 @@ "omega_wrt(3)": "T", "parallel_io": "T", "fd_order": 2, - # Patch: Constant filled with air ========================================== + # Patch: Constant filled with air "patch_icpp(1)%geometry": 9, "patch_icpp(1)%x_centroid": 0.0, "patch_icpp(1)%y_centroid": 0.0, @@ -80,7 +80,7 @@ "patch_icpp(1)%pres": 100000, "patch_icpp(1)%alpha_rho(1)": (1.0) * rho1, "patch_icpp(1)%alpha(1)": 1.0e00, - # Patch: Model Immersed Boundary =========================================== + # Patch: Model Immersed Boundary "patch_ib(1)%geometry": 12, "patch_ib(1)%model_filepath": "Cube_IBM.stl", "patch_ib(1)%model_translate(1)": 0, @@ -89,7 +89,7 @@ "patch_ib(1)%model_spc": 100, "patch_ib(1)%model_threshold": 0.95, "patch_ib(1)%slip": "F", - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (gam_a - 1.0e00), "fluid_pp(1)%pi_inf": 0, } diff --git a/examples/3D_lagrange_bubblescreen/case.py b/examples/3D_lagrange_bubblescreen/case.py index 566768c999..1e0d81b81b 100644 --- a/examples/3D_lagrange_bubblescreen/case.py +++ b/examples/3D_lagrange_bubblescreen/case.py @@ -62,9 +62,9 @@ print( json.dumps( { - # Logistics ================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================== + # Computational Domain Parameters "x_domain%beg": xb / x0, "x_domain%end": xe / x0, "y_domain%beg": yb / x0, @@ -81,7 +81,7 @@ "t_step_start": 0, "t_step_stop": 3000, "t_step_save": 500, - # Simulation Algorithm Parameters ========================== + # Simulation Algorithm Parameters "model_eqns": 2, "time_stepper": 3, "num_fluids": 2, @@ -100,7 +100,7 @@ "bc_y%end": -1, "bc_z%beg": -1, "bc_z%end": -1, - # Acoustic source ========================================== + # Acoustic source "acoustic_source": "T", "num_source": 1, "acoustic(1)%support": 3, @@ -115,12 +115,12 @@ "acoustic(1)%loc(3)": 0.0, "acoustic(1)%dir": 0.0, "acoustic(1)%delay": 0.0, - # Formatted Database Files Structure Parameters ============ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "T", - # Patch 1: Water (left) ==================================== + # Patch 1: Water (left) "patch_icpp(1)%geometry": 9, "patch_icpp(1)%x_centroid": 0.0, "patch_icpp(1)%y_centroid": 0.0, @@ -136,7 +136,7 @@ "patch_icpp(1)%alpha_rho(2)": 0.0, "patch_icpp(1)%alpha(1)": 1.0, "patch_icpp(1)%alpha(2)": 0.0, - # Lagrangian Bubbles =========================== + # Lagrangian Bubbles "bubbles_lagrange": "T", "bubble_model": 2, # Keller-Miksis model "lag_params%nBubs_glb": 1194, # Number of bubbles @@ -156,7 +156,7 @@ "lag_params%x0": x0, "lag_params%diffcoefvap": diffVapor, "lag_params%Thost": T_host, - # Fluids Physical Parameters =============================== + # Fluids Physical Parameters # Host medium "fluid_pp(1)%gamma": 1.0 / (gamma_host - 1.0), "fluid_pp(1)%pi_inf": gamma_host * (pi_inf_host / p0) / (gamma_host - 1.0), diff --git a/examples/3D_lagrange_shbubcollapse/case.py b/examples/3D_lagrange_shbubcollapse/case.py index ff3c24dd82..d22117bf8b 100644 --- a/examples/3D_lagrange_shbubcollapse/case.py +++ b/examples/3D_lagrange_shbubcollapse/case.py @@ -64,9 +64,9 @@ print( json.dumps( { - # Logistics ================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================== + # Computational Domain Parameters "x_domain%beg": xb / x0, "x_domain%end": xe / x0, "y_domain%beg": yb / x0, @@ -83,7 +83,7 @@ "n_start": 0, "t_save": saveTime * (c0 / x0), "t_stop": stopTime * (c0 / x0), - # Simulation Algorithm Parameters ========================== + # Simulation Algorithm Parameters "model_eqns": 2, "num_fluids": 2, "num_patches": 1, @@ -102,12 +102,12 @@ "bc_y%end": -6, "bc_z%beg": -6, "bc_z%end": -6, - # Formatted Database Files Structure Parameters ============ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "T", - # Patch 1: Water (left) ==================================== + # Patch 1: Water (left) "patch_icpp(1)%geometry": 9, "patch_icpp(1)%x_centroid": 0.0, "patch_icpp(1)%y_centroid": 0.0, @@ -123,7 +123,7 @@ "patch_icpp(1)%alpha_rho(2)": 0.0, "patch_icpp(1)%alpha(1)": 1.0, "patch_icpp(1)%alpha(2)": 0.0, - # Acoustic source ========================================== + # Acoustic source "acoustic_source": "T", "num_source": 1, "acoustic(1)%support": 3, @@ -138,7 +138,7 @@ "acoustic(1)%loc(3)": 0.0, "acoustic(1)%dir": 0.0, "acoustic(1)%delay": 0.0, - # Lagrangian Bubbles =========================== + # Lagrangian Bubbles "bubbles_lagrange": "T", "bubble_model": 2, # Keller-Miksis model "rkck_adap_dt": "T", # Activate adaptive time stepper @@ -160,7 +160,7 @@ "lag_params%x0": x0, "lag_params%diffcoefvap": diffVapor, "lag_params%Thost": T_host, - # Fluids Physical Parameters =============================== + # Fluids Physical Parameters # Host medium "fluid_pp(1)%gamma": 1.0 / (gamma_host - 1.0), "fluid_pp(1)%pi_inf": gamma_host * (pi_inf_host / p0) / (gamma_host - 1.0), diff --git a/examples/3D_lungwave/arc_case.py b/examples/3D_lungwave/arc_case.py index a51cca177c..617e9be233 100644 --- a/examples/3D_lungwave/arc_case.py +++ b/examples/3D_lungwave/arc_case.py @@ -86,10 +86,10 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", #'sim_data' : 'T', - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": -dlengx / 2.0, "x_domain%end": dlengx / 2.0, "y_domain%beg": 0.0, @@ -108,7 +108,7 @@ "t_step_start": tstart, "t_step_stop": tstop, "t_step_save": tsave, - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 2, "model_eqns": 3, "alt_soundspeed": "F", @@ -132,15 +132,15 @@ "bc_y%end": -1, "bc_z%beg": -1, "bc_z%end": -1, - # Turning on Hypoelasticity ================================================ + # Turning on Hypoelasticity #'hypoelasticity' : 'T', "hyperelasticity": "F", - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "T", - # acoustics setting ========================================================= + # acoustics setting "acoustic_source": "T", "num_source": 1, "acoustic(1)%support": 3, @@ -154,7 +154,7 @@ "acoustic(1)%length": dlengy, # length of the place ??? "acoustic(1)%height": dlengz, "acoustic(1)%dir": -math.pi, - # Patch 1: Background ====================================================== + # Patch 1: Background "patch_icpp(1)%geometry": 9, "patch_icpp(1)%x_centroid": 0.0, "patch_icpp(1)%y_centroid": dlengy / 2.0, @@ -171,7 +171,7 @@ "patch_icpp(1)%alpha(1)": alphal_back, "patch_icpp(1)%alpha(2)": alphag_back, #'patch_icpp(1)%tau_e(1)' : 0.0, - # Patch 2: Lung ============================================================ + # Patch 2: Lung "patch_icpp(2)%geometry": 13, "patch_icpp(2)%hcid": 301, #'patch_icpp(2)%geometry' : 9, @@ -191,7 +191,7 @@ "patch_icpp(2)%alpha_rho(2)": rhog_n * alphag_lung, "patch_icpp(2)%alpha(1)": alphal_lung, "patch_icpp(2)%alpha(2)": alphag_lung, - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (gammal - 1.0e00), "fluid_pp(1)%pi_inf": gammal * Bl_n / (gammal - 1.0e00), "fluid_pp(1)%G": G_l_n, diff --git a/examples/3D_lungwave/case.py b/examples/3D_lungwave/case.py index 87d107dea6..060bc829d2 100644 --- a/examples/3D_lungwave/case.py +++ b/examples/3D_lungwave/case.py @@ -86,10 +86,10 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", #'sim_data' : 'T', - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": -dlengx / 2.0, "x_domain%end": dlengx / 2.0, "y_domain%beg": 0.0, @@ -107,7 +107,7 @@ "t_step_start": tstart, "t_step_stop": tstop, "t_step_save": tsave, - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 2, "model_eqns": 3, "alt_soundspeed": "F", @@ -131,15 +131,15 @@ "bc_y%end": -1, "bc_z%beg": -1, "bc_z%end": -1, - # Turning on Hypoelasticity ================================================ + # Turning on Hypoelasticity #'hypoelasticity' : 'T', "hyperelasticity": "F", - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "T", - # acoustics setting ========================================================= + # acoustics setting "acoustic_source": "T", "num_source": 1, "acoustic(1)%support": 3, @@ -153,7 +153,7 @@ "acoustic(1)%length": dlengy, # length of the place ??? "acoustic(1)%height": dlengz, "acoustic(1)%dir": -math.pi, - # Patch 1: Background ====================================================== + # Patch 1: Background "patch_icpp(1)%geometry": 9, "patch_icpp(1)%x_centroid": 0.0, "patch_icpp(1)%y_centroid": dlengy / 2.0, @@ -170,7 +170,7 @@ "patch_icpp(1)%alpha(1)": alphal_back, "patch_icpp(1)%alpha(2)": alphag_back, #'patch_icpp(1)%tau_e(1)' : 0.0, - # Patch 2: Lung ============================================================ + # Patch 2: Lung "patch_icpp(2)%geometry": 13, "patch_icpp(2)%hcid": 301, #'patch_icpp(2)%geometry' : 9, @@ -190,7 +190,7 @@ "patch_icpp(2)%alpha_rho(2)": rhog_n * alphag_lung, "patch_icpp(2)%alpha(1)": alphal_lung, "patch_icpp(2)%alpha(2)": alphag_lung, - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (gammal - 1.0e00), "fluid_pp(1)%pi_inf": gammal * Bl_n / (gammal - 1.0e00), "fluid_pp(1)%G": G_l_n, diff --git a/examples/3D_performance_test/case.py b/examples/3D_performance_test/case.py index 0156be6cf7..4d4a4dc4b5 100644 --- a/examples/3D_performance_test/case.py +++ b/examples/3D_performance_test/case.py @@ -5,9 +5,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": 0.0e00, "x_domain%end": 4.0e-03 / 1.0e-03, "y_domain%beg": 0.0e00, @@ -34,7 +34,7 @@ "t_step_start": 0, "t_step_stop": 30, "t_step_save": 30, - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 2, "model_eqns": 2, "alt_soundspeed": "F", @@ -58,12 +58,12 @@ "bc_y%end": -6, "bc_z%beg": -2, "bc_z%end": -6, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "T", - # Patch 1: High pressured water ============================================ + # Patch 1: High pressured water "patch_icpp(1)%geometry": 9, "patch_icpp(1)%x_centroid": 80.0e-03 / 1.0e-03, "patch_icpp(1)%y_centroid": 80.0e-03 / 1.0e-03, @@ -79,7 +79,7 @@ "patch_icpp(1)%alpha_rho(2)": 0.1e00, "patch_icpp(1)%alpha(1)": 0.9e00, "patch_icpp(1)%alpha(2)": 0.1e00, - # Patch 3: Air bubble ====================================================== + # Patch 3: Air bubble "patch_icpp(2)%geometry": 8, "patch_icpp(2)%smoothen": "T", "patch_icpp(2)%smooth_patch_id": 1, @@ -97,7 +97,7 @@ "patch_icpp(2)%alpha_rho(2)": 0.9e00, "patch_icpp(2)%alpha(1)": 0.1e00, "patch_icpp(2)%alpha(2)": 0.9e00, - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (4.4e00 - 1.0e00), "fluid_pp(1)%pi_inf": 4.4e00 * 6.0e08 / (4.4e00 - 1.0e00), "fluid_pp(2)%gamma": 1.0e00 / (1.4e00 - 1.0e00), diff --git a/examples/3D_phasechange_bubble/case.py b/examples/3D_phasechange_bubble/case.py index cff5c23a22..09c5b29ebf 100644 --- a/examples/3D_phasechange_bubble/case.py +++ b/examples/3D_phasechange_bubble/case.py @@ -171,13 +171,13 @@ # Total physical time # tend = Nt * dt -# Configuring case dictionary ================================================== +# Configuring case dictionary print( json.dumps( { - # Logistics ================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================== + # Computational Domain Parameters "x_domain%beg": xb, "x_domain%end": xe, "y_domain%beg": yb, @@ -207,7 +207,7 @@ "t_step_start": 0, "t_step_stop": Nt, "t_step_save": AS, - # Simulation Algorithm Parameters ========================== + # Simulation Algorithm Parameters "num_patches": 2, "model_eqns": 3, "num_fluids": 3, @@ -234,12 +234,12 @@ "bc_y%end": -6, "bc_z%beg": -2, "bc_z%end": -6, - # Formatted Database Files Structure Parameters ============ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "T", - # Patch 1: High pressured water ============================ + # Patch 1: High pressured water # Specify the cubic water background grid geometry "patch_icpp(1)%geometry": 9, "patch_icpp(1)%x_centroid": (xe + xb) * 500000 / 100, @@ -258,7 +258,7 @@ "patch_icpp(1)%alpha(1)": awl1, "patch_icpp(1)%alpha(2)": awv1, "patch_icpp(1)%alpha(3)": aa1, - # Patch 2: (Vapor) Bubble ================================== + # Patch 2: (Vapor) Bubble "patch_icpp(2)%geometry": 8, "patch_icpp(2)%x_centroid": xb, "patch_icpp(2)%y_centroid": yb, @@ -275,7 +275,7 @@ "patch_icpp(2)%alpha(2)": awv2, "patch_icpp(2)%alpha(3)": aa2, "patch_icpp(2)%alter_patch(1)": "T", - # Fluids Physical Parameters =============================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (gamwl - 1), "fluid_pp(1)%pi_inf": gamwl * piwl / (gamwl - 1), "fluid_pp(1)%cv": cvwl, diff --git a/examples/3D_rayleigh_taylor/case.py b/examples/3D_rayleigh_taylor/case.py index 996f6e57bd..35b0ecef24 100644 --- a/examples/3D_rayleigh_taylor/case.py +++ b/examples/3D_rayleigh_taylor/case.py @@ -31,9 +31,9 @@ # Configuration case dictionary data = { - # Logistics ============================= + # Logistics "run_time_info": "T", - # Computational Domain ================== + # Computational Domain "x_domain%beg": x0, "x_domain%end": x1, "y_domain%beg": y0, @@ -48,7 +48,7 @@ "t_step_start": 0, "t_step_stop": Nt, "t_step_save": Ns, - # Simulation Algorithm ================== + # Simulation Algorithm "model_eqns": 2, "alt_soundspeed": "F", "mixture_err": "T", @@ -72,26 +72,26 @@ "num_patches": 1, "num_fluids": 2, "viscous": "T", - # Database Structure Parameters ========= + # Database Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "T", - # Fluid Parameters (Heavy Gas) ========== + # Fluid Parameters (Heavy Gas) "fluid_pp(1)%gamma": 1.0e00 / (1.4e00 - 1.0e00), "fluid_pp(1)%pi_inf": 0.0e00, "fluid_pp(1)%Re(1)": 1 / 0.0219, - # Fluid Parameters (Light Gas) ========== + # Fluid Parameters (Light Gas) "fluid_pp(2)%gamma": 1.0e00 / (1.4e00 - 1.0e00), "fluid_pp(2)%pi_inf": 0.0e00, "fluid_pp(2)%Re(1)": 1 / 0.0073, - # Body Forces =========================== + # Body Forces "bf_y": "T", "k_y": 0.0, "w_y": 0.0, "p_y": 0.0, "g_y": -98.1, - # Water Patch ========================== + # Water Patch "patch_icpp(1)%geometry": 13, "patch_icpp(1)%hcid": 300, "patch_icpp(1)%x_centroid": 0, diff --git a/examples/3D_recovering_sphere/case.py b/examples/3D_recovering_sphere/case.py index ad23891480..33898c3c0b 100644 --- a/examples/3D_recovering_sphere/case.py +++ b/examples/3D_recovering_sphere/case.py @@ -27,9 +27,9 @@ # Configuration case dictionary data = { - # Logistics ============================= + # Logistics "run_time_info": "T", - # Computational Domain ================== + # Computational Domain "x_domain%beg": x0, "x_domain%end": x1, "y_domain%beg": y0, @@ -46,7 +46,7 @@ "t_step_save": 2000, #'t_step_stop' : 100, #'t_step_save' : 100, - # Simulation Algorithm ================== + # Simulation Algorithm "model_eqns": 3, "alt_soundspeed": "F", "mixture_err": "T", @@ -71,7 +71,7 @@ "num_fluids": 2, "weno_avg": "T", "surface_tension": "T", - # Database Structure Parameters ========= + # Database Structure Parameters "format": 1, "precision": 2, "alpha_wrt(1)": "T", @@ -79,13 +79,13 @@ "cf_wrt": "T", "parallel_io": "T", "sigma": 8.0, - # Fluid Parameters (Water) ============== + # Fluid Parameters (Water) "fluid_pp(1)%gamma": 1.0e00 / (2.1e00 - 1.0e00), "fluid_pp(1)%pi_inf": 2.1e00 * 1.0e06 / (2.1e00 - 1.0e00), - # Fluid Parameters (Gas) ================ + # Fluid Parameters (Gas) "fluid_pp(2)%gamma": 1.0e00 / (1.4e00 - 1.0e00), "fluid_pp(2)%pi_inf": 0.0e00, - # Air Patch ========================== + # Air Patch "patch_icpp(1)%geometry": 9, "patch_icpp(1)%x_centroid": 0, "patch_icpp(1)%y_centroid": 0, @@ -102,7 +102,7 @@ "patch_icpp(1)%alpha(1)": eps, "patch_icpp(1)%alpha(2)": 1 - eps, "patch_icpp(1)%cf_val": 0, - # Water Patch ======================== + # Water Patch "patch_icpp(2)%alter_patch(1)": "T", "patch_icpp(2)%geometry": 9, "patch_icpp(2)%x_centroid": 0, diff --git a/examples/3D_shockdroplet/case.py b/examples/3D_shockdroplet/case.py index 77f4f7cd2e..9063b2d495 100644 --- a/examples/3D_shockdroplet/case.py +++ b/examples/3D_shockdroplet/case.py @@ -162,9 +162,9 @@ print( json.dumps( { - # Logistics ================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================== + # Computational Domain Parameters "x_domain%beg": xb, "x_domain%end": xe, "y_domain%beg": yb, @@ -191,7 +191,7 @@ "t_step_start": 0, "t_step_stop": 50000, "t_step_save": 100, - # Simulation Algorithm Parameters ========================== + # Simulation Algorithm Parameters "num_patches": 3, "model_eqns": 2, "alt_soundspeed": "F", @@ -213,13 +213,13 @@ "bc_y%end": -3, "bc_z%beg": -2, "bc_z%end": -3, - # Formatted Database Files Structure Parameters ============ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "T", # I will use 1 for WATER properties, and 2 for AIR properties - # Patch 1: Background (AIR - 2) ============================= + # Patch 1: Background (AIR - 2) "patch_icpp(1)%geometry": 9, "patch_icpp(1)%x_centroid": (xb + xe) / 2 * StF, "patch_icpp(1)%y_centroid": (yb + ye) / 2 * StF, @@ -235,7 +235,7 @@ "patch_icpp(1)%alpha_rho(2)": rho0a, "patch_icpp(1)%alpha(1)": 0.0e00, "patch_icpp(1)%alpha(2)": 1.0e00, - # Patch 2: Shocked state (AIR - 2) ========================= + # Patch 2: Shocked state (AIR - 2) "patch_icpp(2)%geometry": 9, "patch_icpp(2)%alter_patch(1)": "T", "patch_icpp(2)%x_centroid": -ISD - (xe - xb) / 2 * StF, @@ -252,7 +252,7 @@ "patch_icpp(2)%alpha_rho(2)": rhos, "patch_icpp(2)%alpha(1)": 0.0e00, "patch_icpp(2)%alpha(2)": 1.0e00, - # Patch 3: Droplet (WATER - 1) ============================= + # Patch 3: Droplet (WATER - 1) "patch_icpp(3)%geometry": 8, "patch_icpp(3)%x_centroid": 0.0e00, "patch_icpp(3)%y_centroid": 0.0e00, @@ -267,7 +267,7 @@ "patch_icpp(3)%alpha_rho(2)": 0.0e00, "patch_icpp(3)%alpha(1)": 1.0e00, "patch_icpp(3)%alpha(2)": 0.0e00, - # Fluids Physical Parameters =============================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (gamw - 1), "fluid_pp(1)%pi_inf": gamw * piw / (gamw - 1), "fluid_pp(2)%gamma": 1.0e00 / (gama - 1), diff --git a/examples/3D_sphbubcollapse/case.py b/examples/3D_sphbubcollapse/case.py index a1b6eb9295..d22975494b 100644 --- a/examples/3D_sphbubcollapse/case.py +++ b/examples/3D_sphbubcollapse/case.py @@ -5,9 +5,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters # For these computations, the bubble is placed at the (0,0,0) # domain origin. Only one octant of a full spherical bubble is # used, with reflecting BC's at octant boundaries acting @@ -41,7 +41,7 @@ "t_step_start": 0, "t_step_stop": 133300, "t_step_save": 100, - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters # Only two patches are necessary, the background liquid and the # gas bubble "num_patches": 2, @@ -78,14 +78,14 @@ "bc_y%end": -6, "bc_z%beg": -2, "bc_z%end": -6, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters # Export primitive variables in double precision with parallel # I/O to minimize I/O computational time during large simulations "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "T", - # Patch 1: High pressured water ============================================ + # Patch 1: High pressured water # Specify the cubic water background grid geometry "patch_icpp(1)%geometry": 9, "patch_icpp(1)%x_centroid": 80.0e-03 / 1.0e-03, @@ -103,7 +103,7 @@ "patch_icpp(1)%alpha_rho(2)": 0.1e00, "patch_icpp(1)%alpha(1)": 0.9e00, "patch_icpp(1)%alpha(2)": 0.1e00, - # Patch 3: Air bubble ====================================================== + # Patch 3: Air bubble # Specify the spherical gas bubble grid geometry "patch_icpp(2)%geometry": 8, "patch_icpp(2)%smoothen": "T", @@ -123,7 +123,7 @@ "patch_icpp(2)%alpha_rho(2)": 0.9e00, "patch_icpp(2)%alpha(1)": 0.1e00, "patch_icpp(2)%alpha(2)": 0.9e00, - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (4.4e00 - 1.0e00), "fluid_pp(1)%pi_inf": 4.4e00 * 6.0e08 / (4.4e00 - 1.0e00), "fluid_pp(2)%gamma": 1.0e00 / (1.4e00 - 1.0e00), diff --git a/examples/3D_turb_mixing/case.py b/examples/3D_turb_mixing/case.py index 8e9de7f05b..386ed621cf 100644 --- a/examples/3D_turb_mixing/case.py +++ b/examples/3D_turb_mixing/case.py @@ -2,7 +2,7 @@ import math import json -# SURROUNDING FLOW ============================================================= +# SURROUNDING FLOW # Nondimensional parameters Re0 = 50.0 # Reynolds number M0 = 0.2 # Mach number @@ -46,9 +46,9 @@ print( json.dumps( { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": 0.0, "x_domain%end": Lx, "y_domain%beg": -Ly / 2.0, @@ -62,7 +62,7 @@ "t_step_start": t_step_start, "t_step_stop": t_step_stop, "t_step_save": t_save, - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "num_patches": 1, "model_eqns": 2, "num_fluids": 1, @@ -82,7 +82,7 @@ "bc_z%beg": -1, "bc_z%end": -1, "viscous": "T", - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "cons_vars_wrt": "T", @@ -93,7 +93,7 @@ "omega_wrt(2)": "T", "omega_wrt(3)": "T", "qm_wrt": "T", - # Patch 1 ================================================================== + # Patch 1 "patch_icpp(1)%geometry": 9, "patch_icpp(1)%x_centroid": Lx / 2.0, "patch_icpp(1)%y_centroid": 0.0, @@ -107,12 +107,12 @@ "patch_icpp(1)%vel(2)": 0.0, "patch_icpp(1)%vel(3)": 0.0, "patch_icpp(1)%pres": pres0, - # Mixing layer === ========================================================= + # Mixing layer "mixlayer_vel_profile": "T", "mixlayer_vel_coef": 1.0, "mixlayer_domain": 1.0, "mixlayer_perturb": "T", - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters # Surrounding liquid "fluid_pp(1)%gamma": 1.0 / (gamma - 1.0), "fluid_pp(1)%pi_inf": 0.0, diff --git a/examples/nD_perfect_reactor/case.py b/examples/nD_perfect_reactor/case.py index 09d4ad891d..9d1e61fcba 100644 --- a/examples/nD_perfect_reactor/case.py +++ b/examples/nD_perfect_reactor/case.py @@ -42,9 +42,9 @@ NS = NT // SAVE_COUNT case = { - # Logistics ================================================================ + # Logistics "run_time_info": "T", - # Computational Domain Parameters ========================================== + # Computational Domain Parameters "x_domain%beg": -s / 2, "x_domain%end": +s / 2, "y_domain%beg": -s / 2, @@ -60,7 +60,7 @@ "t_step_save": NS, "t_step_print": NS, "parallel_io": "T" if args.ndim > 1 and args.mfc.get("mpi", True) else "F", - # Simulation Algorithm Parameters ========================================== + # Simulation Algorithm Parameters "model_eqns": 2, "num_fluids": 1, "num_patches": 1, @@ -81,12 +81,12 @@ "bc_y%end": -1, "bc_z%beg": -1, "bc_z%end": -1, - # Formatted Database Files Structure Parameters ============================ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "chem_wrt_T": "T", - # Patch 1 ================================================================== + # Patch 1 "patch_icpp(1)%geometry": 3 ** (args.ndim - 1), "patch_icpp(1)%x_centroid": 0, "patch_icpp(1)%y_centroid": 0, @@ -100,7 +100,7 @@ "patch_icpp(1)%pres": sol.P, "patch_icpp(1)%alpha(1)": 1, "patch_icpp(1)%alpha_rho(1)": sol.density, - # Fluids Physical Parameters =============================================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (4.4e00 - 1.0e00), "fluid_pp(1)%pi_inf": 0, } @@ -108,7 +108,7 @@ if args.chemistry: case.update( { - # Chemistry ============================================================ + # Chemistry "chemistry": "T", "chem_params%diffusion": "F", "chem_params%reactions": "T", diff --git a/examples/scaling/case.py b/examples/scaling/case.py index d175ddf7f1..465015fed4 100644 --- a/examples/scaling/case.py +++ b/examples/scaling/case.py @@ -215,10 +215,10 @@ def nxyz_from_ncells(ncells: float) -> typing.Tuple[int, int, int]: print( json.dumps( { - # Logistics ================================================ + # Logistics "run_time_info": "T", "rdma_mpi": args.rdma_mpi, - # Computational Domain Parameters ========================== + # Computational Domain Parameters "x_domain%beg": xb, "x_domain%end": xe, "y_domain%beg": yb, @@ -233,7 +233,7 @@ def nxyz_from_ncells(ncells: float) -> typing.Tuple[int, int, int]: "t_step_start": 0, "t_step_stop": Nt, "t_step_save": SF, - # Simulation Algorithm Parameters ========================== + # Simulation Algorithm Parameters "num_patches": 3, "model_eqns": 2, "alt_soundspeed": "F", @@ -255,13 +255,13 @@ def nxyz_from_ncells(ncells: float) -> typing.Tuple[int, int, int]: "bc_y%end": -3, "bc_z%beg": -2, "bc_z%end": -3, - # Formatted Database Files Structure Parameters ============ + # Formatted Database Files Structure Parameters "format": 1, "precision": 2, "prim_vars_wrt": "T", "parallel_io": "T", # I will use 1 for WATER properties, and 2 for AIR properties - # Patch 1: Background (AIR - 2) ============================= + # Patch 1: Background (AIR - 2) "patch_icpp(1)%geometry": 9, "patch_icpp(1)%x_centroid": (xb + xe) / 2 * StF, "patch_icpp(1)%y_centroid": (yb + ye) / 2 * StF, @@ -277,7 +277,7 @@ def nxyz_from_ncells(ncells: float) -> typing.Tuple[int, int, int]: "patch_icpp(1)%alpha_rho(2)": rho0a, "patch_icpp(1)%alpha(1)": 0.0e00, "patch_icpp(1)%alpha(2)": 1.0e00, - # Patch 2: Shocked state (AIR - 2) ========================= + # Patch 2: Shocked state (AIR - 2) "patch_icpp(2)%geometry": 9, "patch_icpp(2)%alter_patch(1)": "T", "patch_icpp(2)%x_centroid": -ISD - (xe - xb) / 2 * StF, @@ -294,7 +294,7 @@ def nxyz_from_ncells(ncells: float) -> typing.Tuple[int, int, int]: "patch_icpp(2)%alpha_rho(2)": rhos, "patch_icpp(2)%alpha(1)": 0.0e00, "patch_icpp(2)%alpha(2)": 1.0e00, - # Patch 3: Droplet (WATER - 1) ============================= + # Patch 3: Droplet (WATER - 1) "patch_icpp(3)%geometry": 8, "patch_icpp(3)%x_centroid": 0.0e00, "patch_icpp(3)%y_centroid": 0.0e00, @@ -309,7 +309,7 @@ def nxyz_from_ncells(ncells: float) -> typing.Tuple[int, int, int]: "patch_icpp(3)%alpha_rho(2)": 0.0e00, "patch_icpp(3)%alpha(1)": 1.0e00, "patch_icpp(3)%alpha(2)": 0.0e00, - # Fluids Physical Parameters =============================== + # Fluids Physical Parameters "fluid_pp(1)%gamma": 1.0e00 / (gamw - 1), "fluid_pp(1)%pi_inf": gamw * piw / (gamw - 1), "fluid_pp(2)%gamma": 1.0e00 / (gama - 1), diff --git a/misc/f_binary_reader.m b/misc/f_binary_reader.m index 15749c25ca..886b5382f2 100755 --- a/misc/f_binary_reader.m +++ b/misc/f_binary_reader.m @@ -22,7 +22,7 @@ dbfile = fopen(file_loc, 'r', byte_order); - % Input and Output of the Binary Database Structure Information ============ + % Input and Output of the Binary Database Structure Information % Reading in, respectively, cell-numbers in the x-, y- and z-directions and % the total number of flow variables located in the database @@ -38,10 +38,7 @@ mat_struct.('n') = n; mat_struct.('p') = p; - % ========================================================================== - - - % Input and Output of the Grid Data ======================================== + % Input and Output of the Grid Data % Reading in the cell-boundary locations in the x-direction fread(dbfile, 1, 'real*4', byte_order); @@ -86,10 +83,7 @@ % Discarding the footer of the grid data record fread(dbfile, 1, 'real*4', byte_order); - % ========================================================================== - - - % Input and Output of the Flow Variables =================================== + % Input and Output of the Flow Variables for j = 1:dbvars % Reading in a flow variable from the database @@ -102,11 +96,8 @@ mat_struct.(varname) = q_fp; end - % ========================================================================== - % Closing the binary database file fclose(dbfile); - -% END: function f_mfc_binary_reader ============================================ +% END: function f_mfc_binary_reader diff --git a/src/common/include/case.fypp b/src/common/include/case.fypp new file mode 100644 index 0000000000..4216c0a7d2 --- /dev/null +++ b/src/common/include/case.fypp @@ -0,0 +1,7 @@ +! This file exists so that Fypp can be run without generating case.fypp files for +! each target. This is useful when generating documentation, for example. This +! should also let MFC be built with CMake directly, without invoking mfc.sh. + +! For pre-process. +#:def analytical() +#:enddef diff --git a/toolchain/mfc/args.py b/toolchain/mfc/args.py index 848868bdd0..ecbf36e350 100644 --- a/toolchain/mfc/args.py +++ b/toolchain/mfc/args.py @@ -64,12 +64,12 @@ def add_common_arguments(p, mask = None): if "g" not in mask: p.add_argument("-g", "--gpus", nargs="+", type=int, default=None, help="(Optional GPU override) List of GPU #s to use (environment default if unspecified).") - # === BUILD === + # BUILD add_common_arguments(build, "g") build.add_argument("-i", "--input", type=str, default=None, help="(GPU Optimization) Build a version of MFC optimized for a case.") build.add_argument("--case-optimization", action="store_true", default=False, help="(GPU Optimization) Compile MFC targets with some case parameters hard-coded (requires --input).") - # === TEST === + # TEST test_cases = list_cases() add_common_arguments(test, "t") @@ -90,7 +90,7 @@ def add_common_arguments(p, mask = None): test_meg.add_argument("--add-new-variables", action="store_true", default=False, help="(Test Generation) If new variables are found in D/ when running tests, add them to the golden files.") test_meg.add_argument("--remove-old-tests", action="store_true", default=False, help="(Test Generation) Delete tests directories that are no longer.") - # === RUN === + # RUN add_common_arguments(run) run.add_argument("input", metavar="INPUT", type=str, help="Input file to run.") run.add_argument("-e", "--engine", choices=["interactive", "batch"], type=str, default="interactive", help="Job execution/submission engine choice.") @@ -116,20 +116,20 @@ def add_common_arguments(p, mask = None): run.add_argument("--omni", nargs=argparse.REMAINDER, type=str, help="Profile with ROCM omniperf.") run.add_argument("--roc", nargs=argparse.REMAINDER, type=str, help="Profile with ROCM rocprof.") - # === BENCH === + # BENCH add_common_arguments(bench) bench.add_argument("-o", "--output", metavar="OUTPUT", default=None, type=str, required="True", help="Path to the YAML output file to write the results to.") bench.add_argument("-m", "--mem", metavar="MEM", default=1, type=int, help="Memory per task for benchmarking cases") - # === BENCH_DIFF === + # BENCH_DIFF add_common_arguments(bench_diff, "t") bench_diff.add_argument("lhs", metavar="LHS", type=str, help="Path to a benchmark result YAML file.") bench_diff.add_argument("rhs", metavar="RHS", type=str, help="Path to a benchmark result YAML file.") - # === COUNT === + # COUNT add_common_arguments(count, "g") - # === COUNT === + # COUNT add_common_arguments(count_diff, "g") try: From c540add2448e9170bfc358814a992b8e22d4b65f Mon Sep 17 00:00:00 2001 From: Spencer Bryngelson Date: Wed, 1 Jan 2025 10:52:11 -0500 Subject: [PATCH 2/8] remove --- src/common/include/case.fypp | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 src/common/include/case.fypp diff --git a/src/common/include/case.fypp b/src/common/include/case.fypp deleted file mode 100644 index 4216c0a7d2..0000000000 --- a/src/common/include/case.fypp +++ /dev/null @@ -1,7 +0,0 @@ -! This file exists so that Fypp can be run without generating case.fypp files for -! each target. This is useful when generating documentation, for example. This -! should also let MFC be built with CMake directly, without invoking mfc.sh. - -! For pre-process. -#:def analytical() -#:enddef From c390d057daf95847255b53f0d543de43d2b5080a Mon Sep 17 00:00:00 2001 From: Spencer Bryngelson Date: Wed, 1 Jan 2025 10:55:44 -0500 Subject: [PATCH 3/8] add to CI --- toolchain/bootstrap/format.sh | 6 ++++++ toolchain/bootstrap/lint.sh | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/toolchain/bootstrap/format.sh b/toolchain/bootstrap/format.sh index f4baea506a..f4c18fe723 100644 --- a/toolchain/bootstrap/format.sh +++ b/toolchain/bootstrap/format.sh @@ -29,4 +29,10 @@ if ! find ${@:-examples} -type f | grep -E '\.(py)$' \ exit 1 fi +if ! find ${@:-benchmarks} -type f | grep -E '\.(py)$' \ + | xargs -L 1 -P ${JOBS:-1} $SHELL toolchain/bootstrap/format_python.sh; then + error "Formatting MFC examples failed." + exit 1 +fi + ok "Done. MFC has been formatted." diff --git a/toolchain/bootstrap/lint.sh b/toolchain/bootstrap/lint.sh index 20247713ea..0c3d2a1fd5 100644 --- a/toolchain/bootstrap/lint.sh +++ b/toolchain/bootstrap/lint.sh @@ -10,4 +10,8 @@ log "(venv) Running$MAGENTA pylint$COLOR_RESET on$MAGENTA MFC$COLOR_RESET's $MAG pylint -d C0103,C0114,C0301,R0801,C0410,W0611,W1514,E0401,C0115,C0116,C0200,W1309,W0401,E0602,R1720,W0614,E1101 $(pwd)/examples/*/case.py +log "(venv) Running$MAGENTA pylint$COLOR_RESET on$MAGENTA MFC$COLOR_RESET's $MAGENTA""benchmarks$COLOR_RESET." + +pylint -d C0103,C0114,C0301,R0801,C0410,W0611,W1514,E0401,C0115,C0116,C0200,W1309,W0401,E0602,R1720,W0614,E1101 $(pwd)/benchmarks/*/case.py + exit $? From 83b303baa811db3b34ad16b344269ccb719b6682 Mon Sep 17 00:00:00 2001 From: Spencer Bryngelson Date: Wed, 1 Jan 2025 10:59:36 -0500 Subject: [PATCH 4/8] fix? --- examples/scaling/case.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/scaling/case.py b/examples/scaling/case.py index 465015fed4..855af434c2 100644 --- a/examples/scaling/case.py +++ b/examples/scaling/case.py @@ -46,7 +46,7 @@ parser.print_help() sys.exit(1) -# \approx The number of cells per GB of memory. The exact value is not important. +# approx The number of cells per GB of memory. The exact value is not important. cpg = 8000000 / 16.0 # Number of ranks. nranks = args.mfc["nodes"] * args.mfc["tasks_per_node"] From b59fa6669d1c6a13af000b1a02f7a333bf186f20 Mon Sep 17 00:00:00 2001 From: Spencer Bryngelson Date: Wed, 1 Jan 2025 11:03:38 -0500 Subject: [PATCH 5/8] lint --- .github/workflows/lint-source.yml | 6 +++++- examples/2D_lungwave/case.py | 2 +- examples/2D_lungwave_horizontal/case.py | 2 +- examples/3D_lungwave/arc_case.py | 2 +- examples/3D_lungwave/case.py | 2 +- src/common/m_phase_change.fpp | 2 +- 6 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/lint-source.yml b/.github/workflows/lint-source.yml index 346805e1de..cc6757697a 100644 --- a/.github/workflows/lint-source.yml +++ b/.github/workflows/lint-source.yml @@ -44,4 +44,8 @@ jobs: - name: Looking for junk comments in examples run: | - ! grep -R '#' ./examples/**/*.py + ! grep -R '# ===' ./benchmarks **/*.py + ! grep -R '# ===' ./examples/**/*.py + ! grep -R '===' ./benchmarks/**/*.py + ! grep -R '===' ./examples/**/*.py + diff --git a/examples/2D_lungwave/case.py b/examples/2D_lungwave/case.py index dbcc8542eb..5a60492463 100644 --- a/examples/2D_lungwave/case.py +++ b/examples/2D_lungwave/case.py @@ -22,7 +22,7 @@ c_l = 1648.7 G_l = 1e3 -# primitive vartiables +# primitive variables patmos = 101325.0 # pa # problem specific variable diff --git a/examples/2D_lungwave_horizontal/case.py b/examples/2D_lungwave_horizontal/case.py index 2f5c0db058..235de7154f 100644 --- a/examples/2D_lungwave_horizontal/case.py +++ b/examples/2D_lungwave_horizontal/case.py @@ -21,7 +21,7 @@ c_l = 1648.7 G_l = 1e3 -# primitive vartiables +# primitive variables patmos = 101325.0 # pa # problem specific variable diff --git a/examples/3D_lungwave/arc_case.py b/examples/3D_lungwave/arc_case.py index 617e9be233..22720bdda1 100644 --- a/examples/3D_lungwave/arc_case.py +++ b/examples/3D_lungwave/arc_case.py @@ -22,7 +22,7 @@ G_l = 1e06 -# primitive vartiables +# primitive variables patmos = 101325.0 # pa # problem specific variable diff --git a/examples/3D_lungwave/case.py b/examples/3D_lungwave/case.py index 060bc829d2..4164b92f5e 100644 --- a/examples/3D_lungwave/case.py +++ b/examples/3D_lungwave/case.py @@ -22,7 +22,7 @@ G_l = 1e06 -# primitive vartiables +# primitive variables patmos = 101325.0 # pa # problem specific variable diff --git a/src/common/m_phase_change.fpp b/src/common/m_phase_change.fpp index f6a0e16665..6fbd24ec2d 100644 --- a/src/common/m_phase_change.fpp +++ b/src/common/m_phase_change.fpp @@ -118,7 +118,7 @@ contains ! throughout the phase-change process. rM = q_cons_vf(lp + contxb - 1)%sf(j, k, l) + q_cons_vf(vp + contxb - 1)%sf(j, k, l) - ! correcting negative (recating) mass fraction values in case they happen + ! correcting negative (reacting) mass fraction values in case they happen call s_correct_partial_densities(MCT, q_cons_vf, rM, j, k, l) ! fixing m1 and m2 AFTER correcting the partial densities. Note that these values must be stored for the phase From 7c067e3ebf18d7338b4efec28ab476002f5f95d8 Mon Sep 17 00:00:00 2001 From: Spencer Bryngelson Date: Wed, 1 Jan 2025 12:20:07 -0500 Subject: [PATCH 6/8] codeowners as well --- .github/CODEOWNERS | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index b7ee1e26cf..bbd1ca2447 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -2,16 +2,10 @@ # default owner of all files in the repository. * @sbryngelson -# Henry Le Berre (henryleberre) -docs/ @sbryngelson @henryleberre -toolchain/ @sbryngelson @henryleberre -tests/ @sbryngelson @henryleberre -mfc.sh @sbryngelson @henryleberre -mfc.bat @sbryngelson @henryleberre -CMakeLists.txt @sbryngelson @henryleberre -.gitlab-ci.yml @sbryngelson @henryleberre -.vscode/ @sbryngelson @henryleberre -.github/workflows/ @sbryngelson @henryleberre - -# Spencer H. Bryngelson & Ben Wilfong -.typos.toml @sbryngelson @wilfonba +# Henry Le Berre (henryleberre) and Ben Wilfong (wilfonba) +src/ @sbryngelson @henryleberre @wilfonba +docs/ @sbryngelson @henryleberre @wilfonba +toolchain/ @sbryngelson @henryleberre @wilfonba +tests/ @sbryngelson @henryleberre @wilfonba +mfc.sh @sbryngelson @henryleberre @wilfonba +CMakeLists.txt @sbryngelson @henryleberre @wilfonba From 7ceb7bde5c0e03eb29f50a33a748256744e3c40d Mon Sep 17 00:00:00 2001 From: Spencer Bryngelson Date: Wed, 1 Jan 2025 12:30:23 -0500 Subject: [PATCH 7/8] codeowners --- .github/CODEOWNERS | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index bbd1ca2447..dc7729d1e3 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -2,10 +2,14 @@ # default owner of all files in the repository. * @sbryngelson -# Henry Le Berre (henryleberre) and Ben Wilfong (wilfonba) -src/ @sbryngelson @henryleberre @wilfonba -docs/ @sbryngelson @henryleberre @wilfonba -toolchain/ @sbryngelson @henryleberre @wilfonba -tests/ @sbryngelson @henryleberre @wilfonba -mfc.sh @sbryngelson @henryleberre @wilfonba -CMakeLists.txt @sbryngelson @henryleberre @wilfonba +# @core-devs +src/ @MFlowCode/core-devs +docs/ @MFlowCode/core-devs +toolchain/ @MFlowCode/core-devs +tests/ @MFlowCode/core-devs +benchmarks/ @MFlowCode/core-devs +mfc.sh @MFlowCode/core-devs +CMakeLists.txt @MFlowCode/core-devs + +# @physics-devs +src/ @MFlowCode/physics-devs From 70f552a509f798a67dba42d1664da600a569834f Mon Sep 17 00:00:00 2001 From: Spencer Bryngelson Date: Wed, 1 Jan 2025 13:05:35 -0500 Subject: [PATCH 8/8] Discard changes to .github/CODEOWNERS --- .github/CODEOWNERS | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index dc7729d1e3..b7ee1e26cf 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -2,14 +2,16 @@ # default owner of all files in the repository. * @sbryngelson -# @core-devs -src/ @MFlowCode/core-devs -docs/ @MFlowCode/core-devs -toolchain/ @MFlowCode/core-devs -tests/ @MFlowCode/core-devs -benchmarks/ @MFlowCode/core-devs -mfc.sh @MFlowCode/core-devs -CMakeLists.txt @MFlowCode/core-devs +# Henry Le Berre (henryleberre) +docs/ @sbryngelson @henryleberre +toolchain/ @sbryngelson @henryleberre +tests/ @sbryngelson @henryleberre +mfc.sh @sbryngelson @henryleberre +mfc.bat @sbryngelson @henryleberre +CMakeLists.txt @sbryngelson @henryleberre +.gitlab-ci.yml @sbryngelson @henryleberre +.vscode/ @sbryngelson @henryleberre +.github/workflows/ @sbryngelson @henryleberre -# @physics-devs -src/ @MFlowCode/physics-devs +# Spencer H. Bryngelson & Ben Wilfong +.typos.toml @sbryngelson @wilfonba