-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from tobanteAudio/cuda-support
Cuda support
- Loading branch information
Showing
104 changed files
with
4,296 additions
and
4,081 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# SPDX-License-Identifier: MIT | ||
# SPDX-FileCopyrightText: 2024 Tobias Hienzsch | ||
|
||
name: REUSE Compliance Check | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
lfs: true | ||
|
||
- name: REUSE Compliance Check | ||
uses: fsfe/reuse-action@v4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# SPDX-License-Identifier: MIT | ||
# SPDX-FileCopyrightText: 2021 Brian Hamilton | ||
"""This shows a simple setup with Cartesian scheme, for a single-precision GPU run (<2GB VRAM) | ||
""" | ||
|
||
from pffdtd.sim3d.setup import Setup3D | ||
|
||
|
||
class CTK_Church(Setup3D): | ||
"""Christ the King (CTK) Church | ||
""" | ||
model_file = 'model_export.json' | ||
mat_folder = '../../materials' | ||
source_index = 1 | ||
source_signal = 'impulse' | ||
diff_source = True | ||
materials = { | ||
'AcousticPanel': 'ctk_acoustic_panel.h5', | ||
'Altar': 'ctk_altar.h5', | ||
'Carpet': 'ctk_carpet.h5', | ||
'Ceiling': 'ctk_ceiling.h5', | ||
'Glass': 'ctk_window.h5', | ||
'PlushChair': 'ctk_chair.h5', | ||
'Tile': 'ctk_tile.h5', | ||
'Walls': 'ctk_walls.h5', | ||
} | ||
duration = 3.0 | ||
Tc = 20 | ||
rh = 50 | ||
fcc = False | ||
ppw = 10.5 | ||
fmax = 800.0 | ||
save_folder = '../../sim_data/CTK_Church/cpu' | ||
save_folder_gpu = '../../sim_data/CTK_Church/gpu' | ||
compress = 0 | ||
draw_vox = True | ||
draw_backend = 'polyscope' |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,4 +79,4 @@ | |
"name":"" | ||
}], | ||
"export_datetime":"2021-07-25 08:25:11 +0100" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# SPDX-License-Identifier: MIT | ||
# SPDX-FileCopyrightText: 2024 Tobias Hienzsch | ||
import json | ||
|
||
from pffdtd.sim3d.setup import Setup3D | ||
|
||
|
||
class InfiniteBaffle(Setup3D): | ||
"""Point source on infinite baffle in an anechoic chamber | ||
""" | ||
fmax = 2000 | ||
ppw = 10.5 | ||
fcc = False | ||
model_file = 'model.json' | ||
mat_folder = '../../materials', | ||
duration = 0.3 | ||
source_index = 1 | ||
source_signal = 'impulse' | ||
Tc = 20 | ||
rh = 50 | ||
save_folder = '../../sim_data/InfiniteBaffle/cpu' | ||
save_folder_gpu = '../../sim_data/InfiniteBaffle/gpu' | ||
draw_vox = True | ||
draw_backend = 'polyscope' | ||
compress = 0 | ||
rot_az_el = [0, 0] | ||
bmax = [17.15, 2.0, 17.15] | ||
bmin = [0, 0, 0] | ||
|
||
def generate_model(self, constants): | ||
mul = 3.0 if self.fcc else 2.0 | ||
offset = constants.h * mul | ||
|
||
width = self.bmax[0] | ||
length = self.bmax[1] | ||
height = self.bmax[2] | ||
|
||
model = { | ||
'mats_hash': { | ||
'_RIGID': { | ||
'tris': [ | ||
[0, 2, 1], | ||
[0, 3, 2], | ||
[1, 5, 4], | ||
[1, 3, 5] | ||
], | ||
'pts': [ | ||
[0.0, length, 0.0], | ||
[width/2, length, 0.0], | ||
[width/2, length, height], | ||
[0.0, length, height], | ||
[width, length, 0.0], | ||
[width, length, height] | ||
], | ||
'color': [255, 255, 255], | ||
'sides': [0, 0, 0, 0] | ||
} | ||
}, | ||
'sources': [ | ||
{'name': 'S1', 'xyz': [width/2, length-offset, height/2]}, | ||
], | ||
'receivers': [ | ||
{'name': 'R1', 'xyz': [width/2, offset, height/2 - 0.75]}, | ||
{'name': 'R2', 'xyz': [width/2, offset, height/2 - 0.25]}, | ||
{'name': 'R3', 'xyz': [width/2, offset, height/2 + 0.00]}, | ||
{'name': 'R4', 'xyz': [width/2, offset, height/2 + 0.25]}, | ||
{'name': 'R5', 'xyz': [width/2, offset, height/2 + 0.75]}, | ||
] | ||
} | ||
|
||
with open(self.model_file, 'w') as file: | ||
json.dump(model, file) | ||
print('', file=file) |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.