Skip to content

Commit

Permalink
adjust description and template
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobEliasWagner committed Jan 10, 2024
1 parent fea06ba commit a108991
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
3 changes: 3 additions & 0 deletions src/data/helmholtz/domain_properties/description.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ class Description:
right_width: float = dataclasses.field(init=False)

def __post_init__(self):
self.update_derived_properties()

def update_derived_properties(self):
self.height = self.crystal_description.n_y * self.crystal_description.grid_size
self.width = self.crystal_description.n_x * self.crystal_description.grid_size
self.wave_lengths = self.c / self.frequencies
Expand Down
20 changes: 10 additions & 10 deletions src/data/helmholtz/domain_properties/input_file_template.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
sample_type = frequency
# linspace, uniform
# (start, end, num, strategy)
samples = (2000, 4000, 10, linspace)
samples = (4000, 12000, 10, linspace)

rho = 1.25
c = 343.
Expand All @@ -25,24 +25,24 @@ excitation_index = 9000
depth = 3.
round_trip = 1e-6
on_right = True
on_top = False
on_bottom = False
cell_index_start = 20000
on_top = True
on_bottom = True
cell_index = 20000

[CRYSTAL]
# type can be None, Cylindrical, C-Shaped
type = C-Shaped
type = Cylindrical
# keep const. for now
grid_size = 2
n_x = 4
n_y = 4
grid_size = 22e-3
n_x = 10
n_y = 10
# when the crystal is not cut from the domain the wave number is modified accordingly
cut = True
cut = False
ref_index = -1
cell_index = 3000
[CRYSTAL-NONE]
[CRYSTAL-CYLINDRICAL]
radius = (1., 1.5, 3, linspace)
radius = (6.5e-3, -1, 1, linspace)
[CRYSTAL-C-SHAPED]
outer_radius = (0.6, 0.75, 3, linspace)
# in relation to outer radius (1. is exactly outer radius)
Expand Down

0 comments on commit a108991

Please sign in to comment.