Skip to content

Commit 99048e6

Browse files
Cleanup module names
1 parent 0eee98c commit 99048e6

20 files changed

+14
-25
lines changed

run_2d.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ engine_exe="$root_dir/$build_dir/src/cpp/main_2d/pffdtd_2d"
1010
sim_name="Diffusor"
1111
sim_dir="$root_dir/data/sim_data/$sim_name/cpu"
1212

13-
fmax=1000
13+
fmax=1600
1414
duration=0.06
1515

1616
# Delete old sim
1717
rm -rf "$sim_dir"
1818

1919
# Generate model
2020
cd "$python_dir"
21-
python -m fdtd2.fdtd --save --video --data_dir="$sim_dir" --duration="$duration" --fmax="$fmax"
21+
python -m sim2d.fdtd --save --video --data_dir="$sim_dir" --duration="$duration" --fmax="$fmax"
2222

2323
# Run sim
24-
DPCPP_CPU_PLACES=cores DPCPP_CPU_CU_AFFINITY=spread DPCPP_CPU_NUM_CUS=16 "$engine_exe" "$sim_dir/diffusor.h5"
24+
# DPCPP_CPU_PLACES=cores DPCPP_CPU_CU_AFFINITY=spread DPCPP_CPU_NUM_CUS=16 "$engine_exe" "$sim_dir/diffusor.h5"

run_3d.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ $engine_exe
3434

3535
# Post-process
3636
cd "$python_dir"
37-
python -m fdtd.process_outputs --data_dir="$sim_dir" --fcut_lowpass "$fmax" --N_order_lowpass=8 --symmetric --fcut_lowcut 20.0 --N_order_lowcut=4 --air_abs_filter="stokes" --save_wav --plot
37+
python -m sim3d.process_outputs --data_dir="$sim_dir" --fcut_lowpass "$fmax" --N_order_lowpass=8 --symmetric --fcut_lowcut 20.0 --N_order_lowcut=4 --air_abs_filter="stokes" --save_wav --plot
3838
python -m analysis.t60 --data_dir="$sim_dir" --fmin=20 --fmax="$fmax"
3939
python -m analysis.room_modes --data_dir="$sim_dir"

src/cpp/main_2d/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ WARNINGS=-Wall -Wno-deprecated-declarations
1414
# source /opt/intel/oneapi/setvars.sh
1515

1616
all:
17-
${CXX} ${FLAGS} ${LIBS} ${WARNINGS} fdtd.cpp
17+
${CXX} ${FLAGS} ${LIBS} ${WARNINGS} main.cpp
1818
```
1919

2020
```sh

src/python/CTK_gpu.py

-5
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,3 @@
4040
save_folder_gpu='../../data/sim_data/ctk_cart/gpu',
4141
compress=0,
4242
)
43-
# then from '../../data/sim_data/ctk_cart/gpu' folder, run (relative path for default folder structure):
44-
# ../../../../src/fdtd_main_gpu_single.x
45-
46-
# then post-process with something like:
47-
# python -m fdtd.process_outputs --data_dir='../../data/sim_data/ctk_cart/gpu/' --fcut_lowpass 1400.0 --N_order_lowpass=8 --symmetric --fcut_lowcut 10.0 --N_order_lowcut=4 --save_wav --plot

src/python/CTK_viz.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@
4343
)
4444

4545
# then run with python and 3D visualization:
46-
# python3 -m fdtd.sim_fdtd --data_dir='../../data/sim_data/ctk_cart/viz' --plot --draw_backend='mayavi' --json_model='../../data/models/CTK_Church/model_export.json'
46+
# python3 -m sim3d.sim_fdtd --data_dir='../../data/sim_data/ctk_cart/viz' --plot --draw_backend='mayavi' --json_model='../../data/models/CTK_Church/model_export.json'

src/python/LivingRoom_viz.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@
2828
)
2929

3030
# then run with python and 3D visualization:
31-
# python3 -m fdtd.sim_fdtd --data_dir='../../data/sim_data/LivingRoom/viz' --plot --draw_backend='mayavi' --json_model='../../data/models/LivingRoom/model.json'
31+
# python3 -m sim3d.sim_fdtd --data_dir='../../data/sim_data/LivingRoom/viz' --plot --draw_backend='mayavi' --json_model='../../data/models/LivingRoom/model.json'

src/python/MV_gpu.py

-6
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,3 @@
3737
save_folder_gpu='../../data/sim_data/mv_fcc/gpu',
3838
compress=3, # apply level-3 GZIP compression to larger h5 files
3939
)
40-
41-
# then from '../../data/sim_data/mv_fcc/gpu' folder, run (relative path for default folder structure):
42-
# ../../../../src/fdtd_main_gpu_single.x
43-
44-
# then post-process with something like:
45-
# python -m fdtd.process_outputs --data_dir='../../data/sim_data/mv_fcc/gpu/' --fcut_lowpass 2500.0 --N_order_lowpass=8 --symmetric --fcut_lowcut 10.0 --N_order_lowcut=4 --air_abs_filter='stokes' --save_wav --plot

src/python/MV_viz.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@
4040
)
4141

4242
# then run with python and 3D visualization:
43-
# python3 -m fdtd.sim_fdtd --data_dir='../../data/sim_data/mv_fcc/viz' --plot --draw_backend='mayavi' --json_model='../../data/models/Musikverein_ConcertHall/model_export.json'
43+
# python3 -m sim3d.sim_fdtd --data_dir='../../data/sim_data/mv_fcc/viz' --plot --draw_backend='mayavi' --json_model='../../data/models/Musikverein_ConcertHall/model_export.json'

src/python/Studio_viz.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@
2929
)
3030

3131
# then run with python and 3D visualization:
32-
# python3 -m fdtd.sim_fdtd --data_dir='../../data/sim_data/Studio/viz' --plot --draw_backend='mayavi' --json_model='../../data/models/Studio/model.json'
32+
# python3 -m sim3d.sim_fdtd --data_dir='../../data/sim_data/Studio/viz' --plot --draw_backend='mayavi' --json_model='../../data/models/Studio/model.json'
File renamed without changes.

src/python/fdtd2/fdtd.py src/python/sim2d/fdtd.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def main():
159159
if add_dome:
160160
in_mask[(X - 0.5 * Bx)**2 + (Y - By)**2 < R_dome**2] = True
161161

162-
in_mask = add_diffusor(dx*5, 0.4, in_mask, X, Y)
162+
in_mask = add_diffusor(dx*2, 0.8, in_mask, X, Y)
163163

164164
angles = np.linspace(0.0, 180.0, 180, endpoint=True)
165165
out_ixy = []
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/python/sim_setup.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
from voxelizer.cart_grid import CartGrid
2121
from voxelizer.vox_grid import VoxGrid
2222
from voxelizer.vox_scene import VoxScene
23-
from fdtd.sim_comms import SimComms
24-
from fdtd.sim_consts import SimConsts
25-
from fdtd.sim_mats import SimMats
26-
from fdtd.rotate_sim_data import rotate_sim_data,sort_sim_data,copy_sim_data,fold_fcc_sim_data
23+
from sim3d.sim_comms import SimComms
24+
from sim3d.sim_consts import SimConsts
25+
from sim3d.sim_mats import SimMats
26+
from sim3d.rotate_sim_data import rotate_sim_data,sort_sim_data,copy_sim_data,fold_fcc_sim_data
2727
from air_abs.get_air_absorption import get_air_absorption
2828

2929
def sim_setup(

0 commit comments

Comments
 (0)