From a108991d634bd0a598a5f75e11dc831210a5db6f Mon Sep 17 00:00:00 2001 From: Jakob Date: Wed, 10 Jan 2024 17:16:28 +0100 Subject: [PATCH] adjust description and template --- .../domain_properties/description.py | 3 +++ .../domain_properties/input_file_template.ini | 20 +++++++++---------- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/src/data/helmholtz/domain_properties/description.py b/src/data/helmholtz/domain_properties/description.py index a95f0ae6..52200739 100644 --- a/src/data/helmholtz/domain_properties/description.py +++ b/src/data/helmholtz/domain_properties/description.py @@ -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 diff --git a/src/data/helmholtz/domain_properties/input_file_template.ini b/src/data/helmholtz/domain_properties/input_file_template.ini index dad728a4..9e7ff4b1 100644 --- a/src/data/helmholtz/domain_properties/input_file_template.ini +++ b/src/data/helmholtz/domain_properties/input_file_template.ini @@ -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. @@ -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)