{'fraction_non_alphanumeric': 0.025577120782578896, 'fraction_numerical': 0.021807532944951556, 'mean_word_length': 4.417721518987341, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Shape Optimization of an Open Photoacoustic Resonator

: Photoacoustic (PA) measurements with open resonators usually provide poor detection sensitivity due to signal leakage at the resonator opening. We have recently demonstrated three different approaches for modelling the photoacoustic signal of open resonators. In this work, one of the approaches is applied for the optimization of the geometry of the T-shaped resonator for improved signal strength and thus sensitivity. The results from the numerical optimization show an increase in the photoacoustic signal by a factor of approximately 7.23. They are conﬁrmed using numerical methods other than the one applied for the optimization and by experimental measurement. The measurement shows an increase in the photoacoustic signal by a factor of approximately 2.34.


Introduction
Photoacoustic spectroscopy (PAS) is a technique based on the generation of an acoustic signal after the absorption of light by molecules [1]. It has been widely applied in numerous fields ranging from evaluation of materials [2,3], agriculture [4,5], medical/biological applications [6][7][8] and environmental analysis [9][10][11]. PAS offers high detection sensitivity as low as the parts per billion (ppb) level [12] and is suitable for the measurement of optically opaque samples where traditional absorption spectroscopic methods fail. Often, acoustic resonators are employed to significantly amplify the photoacoustic signal. In a conventional experimental setup the sample is located inside a sealed resonator. However, in specific applications a closed resonator is not suitable, and an open resonator configuration is required.
Photoacoustic (PA) measurements of blood glucose levels are performed using open Tshaped resonators [13,14]. One of the resonator ends is left unsealed to prevent an increase of humidity within the resonator that is caused by skin transpiration [13]. This is because PA glucose measurements are performed using mid-infrared radiation (MIR) and water has strong absorption in the MIR region. Humidity leads to increased absorption of MIR that interferes with PA glucose measurements. Furthermore, the opening helps to improve the stability of the measurement by minimizing temperature fluctuations [13]. However, the opening deteriorates the photoacoustic (PA) signal. As a consequence, the detection sensitivity is not quite sufficient for an industrial implementation of a diagnostic sensor. Improving the sensitivity is therefore crucial for a continuation of the concept and real-life blood glucose monitoring based on that.
The strength of the PA signal is strongly dependent on the resonance amplification. Numerous studies have reported optimization strategies for PA resonators. Bijnen et al. [15] used the transmission line model to optimize the geometry of a closed cylindrical resonator with buffer volumes for maximum ratio of the PA signal to the background signal from window absorption. They established that large buffer volume radii suppress the background signal thus improving the sensitivity of the measurements. Using finite element modeling, Kost et al. [16] optimized the strength of the PA signal of an H-shaped resonator using the amplitude mode expansion (AME) method. They split the resonator into axially symmetric cones of equal length and optimized the shape of each individual cone. The optimized resonator had an hourglass shape and was experimentally confirmed to have a signal improvement of around 13% compared to the original resonator [17]. Cottrell et al. [18] optimized the geometry of a closed cylindrical resonator capped with buffer volumes for improved signal-to-background ratio (SBR). For their studies, they simulated the photoacoustic signal using the viscothermal (VT) method and verified the results with experimental measurements. They demonstrated that the signal-to-background ratio (SBR) is maximized using buffer volumes with large radii and a length that is half the length of the resonator. Later, they extended their studies to the optimization of a two-resonator PA cell used in aerosol applications. Their study concluded that the general rule of setting the buffer length to half the resonator length is not universal and varies depending on the resonator [19]. Sim et al. [20] worked on the improvement of the sensitivity of PA glucose measurements. They optimized the resonator geometry by calculating its acoustic eigenmodes and matched one of the resonances of the resonator with that of their microphone. The synergetic resonance amplification increased the signal-to-noise ratio of their measurement system 3.5 times.
In contrast to the above, in this paper we present a numerical optimization of an open PA resonator using the finite element method. We describe a procedure for optimizing the open T-shaped resonator used in PA blood glucose measurements for a maximum signal in the ultrasound range. The resonator geometry is optimized towards maximizing the PA signal at the location of the microphone.
We have previously described three different approaches for simulating the PA signal in open resonators: the viscothermal model with perfectly matched layers (VT-PML), the viscothermal model with boundary element method (VT-BEM) and the amplitude expansion model with perfectly matched layers (AME-PML) [21]. The VT-PML was demonstrated to be the most accurate of the three approaches and therefore used to calculate the PA signal in this work. The optimization results are confirmed using the VT-BEM and AME-PML approach.

Experiment
The experimental setup is illustrated in Figure 1. A distributed feedback quantum cascade laser (DFB-QCL) (Nanoplus, Nanosystems and Technologies GmbH, Gerbrunn, Germany) is selected as the source of radiation. The laser is operated using a driver (Q-MACS SC, neoplas control GmbH, Greifswald, Germany) that integrates a control system for laser current, voltage and temperature. The laser temperature is maintained at 16 • C and emits pulses of 100 ns width at a wavenumber of 1080 cm −1 to excite a carbon black sample. Carbon black is selected to ensure a constant and homogeneous absorbance over the surface and a dry atmosphere inside the resonator. The PA signal is detected using a digital micro-electro-mechanical system (MEMS) microphone (Knowles SPH0641LU4H-1). The microphone has a resonance at around 25 kHz and has a fairly flat response between 35 kHz and 65 kHz. The frequency response plot of the microphone can be found in our previous work [21]. The microphone output represents a digital pulse density modulated (PDM) signal which is send through a low-pass filter circuit for demodulation. The demodulated signal is fed into the lock-in-amplifier (DSP Lock-in Amplifier model 7265, Signal Recovery, United State of America) which exhibits a time constant of 100 ms. Two measurements are performed. A reference measurement is performed on the open T-shaped resonator usually applied for photoacoustic blood glucose measurements [13]. The resonator consists of three interconnected cylinders referred to as the cavity cylinder, absorption cylinder and resonance cylinder, respectively. They form a T-shaped resonator as illustrated in Figure 2 with the dimensions given in Table 1. A detailed description of the resonator can be found in our previous work [22].   Two measurements are performed. A reference measurement is performed on the open T-shaped resonator usually applied for photoacoustic blood glucose measurements [13]. The resonator consists of three interconnected cylinders referred to as the cavity cylinder, absorption cylinder and resonance cylinder, respectively. They form a T-shaped resonator as illustrated in Figure 2 with the dimensions given in Table 1. A detailed description of the resonator can be found in our previous work [22]. Two measurements are performed. A reference measurement is performed on the open T-shaped resonator usually applied for photoacoustic blood glucose measurements [13]. The resonator consists of three interconnected cylinders referred to as the cavity cylinder, absorption cylinder and resonance cylinder, respectively. They form a T-shaped resonator as illustrated in Figure 2 with the dimensions given in Table 1. A detailed description of the resonator can be found in our previous work [22].    PA glucose measurements utilize a resonance at approximately 50 kHz which spans a wide frequency range. Therefore, the measurement of the frequency response of the reference resonator is performed between 46 kHz and 54 kHz with 30 Hz increments.
Secondly, the frequency response of the optimized resonator is measured. It is performed between 10 kHz to 60 kHz. The dimensions of the optimized resonator are presented in the results section. The average power of the laser is recorded using a power meter (Thorlab S401C, Thorlabs, Newton, NJ, USA) at different pulse repetition rates and used to normalize the measurements to account for laser power fluctuations. For each measurement point, an average of 10 measurements were made.

Simulation
The simulation of the PA signal for the purpose of optimization is performed using the VT-PML approach since it is the most accurate of the three models. Furthermore, to verify the optimization results, the PA signal of the optimized resonator is simulated using VT-PML, VT-BEM and AME-VT approaches between 10 kHz and 60 kHz. The implementation of these simulation approaches is here briefly described and a detailed description of the method can be found in our previous work where we simulated the PA signal in the reference resonator [21]. The meshing and implementation of the PA simulations in this work are performed in a similar manner as described for the reference resonator.
The resonator is meshed with prism elements and the inside of the resonator walls is lined with boundary layers. The boundary layers accurately capture losses resulting from thermal conduction and viscosity at the resonator walls. The PML domain is meshed using a swept mesh. The generated mesh had a maximum and minimum element size of 1.2 mm and 0.481 mm respectively. A heat source term is defined at the opening where the carbon sample is located to represent the subsequent heating effect resulting from laser absorption. A sound hard boundary condition is imposed on the resonator walls, the resonator ends sealed using the sample and the microphone and the resonator's flanged edge.

Optimization
The optimization is performed using Comsol Multiphysics' optimization module [23]. A Monte Carlo algorithm is selected for the optimization as it explores the entire search space and does not get stuck at local minima. The optimality tolerance and maximum number of model evaluations are set to default values. The acoustic pressure at the location of the microphone is chosen as the objective function. The design variables are the geometric dimensions of the cavity cylinder and the resonance cylinder. Initially, a coarse parameter sweep of the variables is performed in two steps. In the first step only the resonance cylinder dimensions are varied, while in the second step only the cavity cylinder dimensions are varied. The parameter sweep is performed to study the influence of each geometric dimension on the detected PA signal. The goal is that this step can reduce the optimization search space. The photoacoustic signal during the coarse parameter sweep and the optimization is simulated using the VT-PML method.

Reference Resonator
The results of the PA measurement and of the VT-PML simulation for the reference resonator are shown in Figure 3. The experimental result has been smoothed using the Savitsky-Golay Matlab function [24] Appl. Sci. 2021, 11, x FOR PEER REVIEW 5 of 11 The experimental and numerical results are in good accordance. The measured resonance is slightly wider than the simulation. This indicates that the numerical model does not account for all loss effects contributing to the loss in the experiment. Possibly, the additional loss is due to leakage of the PA signal from the resonator end sealed with the microphone. This cylinder end is modelled as a sound hard wall. The signal-to-noise ratio of the measured 50 kHz resonance peak is approximately 23. It is calculated as the ratio of the mean to the standard deviation of the measurements.
This resonance is selected for optimization because PA glucose measurements using the open T-shaped resonator are usually performed at this frequency [13,14]. The resonance spans a relatively wide frequency range between 48 kHz to 51 kHz due to a superposition of two resonances [21]. Therefore, the PA signal is calculated in this range during the optimization.

Resonance Cylinder
A first sweep is performed by changing the resonance cylinder length ( ) and position along the cavity cylinder ( ). The length is changed from 0 mm (no resonance cylinder) to 17 mm with 1 mm step size. Since the microphone is located at the end of the resonance cylinder, also indicates the position where the PA signal is detected. The position of the resonance cylinder along the cavity cylinder is described relative to the open resonator end. The position ( ) is changed from the open end of the cavity cylinder to the end connected to the absorption cylinder by a step size of 1 mm that is between 2 mm and 14 mm. During the sweep, all other resonator dimensions are kept constant and the PA signal for all possible combinations of and is calculated between 48 kHz to 51 kHz. To evaluate the quality of the solution from each parameter combination in comparison to the reference cell, a ratio of the relative PA signal ( ) is defined and are the maximum PA signal of each parameter combination and the reference resonator, respectively.
The results of the resonance cylinder sweep are presented in Figure 4. Six peaks with of more than 1.5 are identified and the discussion is limited to these six peaks. The peaks are observed when is 1 mm, 8 mm and 15 mm while is at either 4 mm or 5 mm and at 12 mm. The resonance cylinder supports a longitudinal acoustic mode as can be seen in Figure 5. The resonance cylinder can be independently viewed as an open-closed cylindrical resonator whose resonance is analytically calculated using [25]. The experimental and numerical results are in good accordance. The measured resonance is slightly wider than the simulation. This indicates that the numerical model does not account for all loss effects contributing to the loss in the experiment. Possibly, the additional loss is due to leakage of the PA signal from the resonator end sealed with the microphone. This cylinder end is modelled as a sound hard wall. The signal-to-noise ratio of the measured 50 kHz resonance peak is approximately 23. It is calculated as the ratio of the mean to the standard deviation of the measurements.
This resonance is selected for optimization because PA glucose measurements using the open T-shaped resonator are usually performed at this frequency [13,14]. The resonance spans a relatively wide frequency range between 48 kHz to 51 kHz due to a superposition of two resonances [21]. Therefore, the PA signal is calculated in this range during the optimization.

Resonance Cylinder
A first sweep is performed by changing the resonance cylinder length (L r ) and position along the cavity cylinder (D r ). The length is changed from 0 mm (no resonance cylinder) to 17 mm with 1 mm step size. Since the microphone is located at the end of the resonance cylinder, L r also indicates the position where the PA signal is detected. The position of the resonance cylinder along the cavity cylinder is described relative to the open resonator end. The position (D r ) is changed from the open end of the cavity cylinder to the end connected to the absorption cylinder by a step size of 1 mm that is between 2 mm and 14 mm. During the sweep, all other resonator dimensions are kept constant and the PA signal for all possible combinations of L r and D r is calculated between 48 kHz to 51 kHz.
To evaluate the quality of the solution from each parameter combination in comparison to the reference cell, a ratio of the relative PA signal (ς) is defined S and S re f are the maximum PA signal of each parameter combination and the reference resonator, respectively. The results of the resonance cylinder sweep are presented in Figure 4. Six peaks with ς of more than 1.5 are identified and the discussion is limited to these six peaks. The peaks are observed when L r is 1 mm, 8 mm and 15 mm while D r is at either 4 mm or 5 mm and at 12 mm. The resonance cylinder supports a longitudinal acoustic mode as can be seen in Figure 5. The resonance cylinder can be independently viewed as an open-closed cylindrical resonator whose resonance is analytically calculated using [25].
where m = 1, 2, 3 . . .. The terms c and f are the speed of sound and the resonance frequency respectively. L is the length of the resonator together with the so-called end correction. Assuming that the resonance frequency is 50 kHz and the speed of sound is 343 m/s, the resonance cylinder length for m = 1 to m = 5 is analytically calculated as where = 1,2,3 …. The terms and are the speed of sound and the resonance frequency respectively. is the length of the resonator together with the so-called end correction. Assuming that the resonance frequency is 50 kHz and the speed of sound is 343 m/s, the resonance cylinder length for = 1 to = 5 is analytically calculated as   When is at either 4 mm or 5 mm and at 12 mm, has a value of more than 1.5. These positions represent the location of an acoustic antinode of the cavity cylinder. By placing the resonance cylinder at these positions, the antinode is coupled into the resonance cylinder and thus a strong PA signal is detected. For the same , is higher where = 1,2,3 …. The terms and are the speed of sound and the resonance frequency respectively. is the length of the resonator together with the so-called end correction. Assuming that the resonance frequency is 50 kHz and the speed of sound is 343 m/s, the resonance cylinder length for = 1 to = 5 is analytically calculated as 1.72 mm, 5.15 mm, 8.58 mm, 12.01 mm and 15.44 mm. Therefore, it can be concluded that resonance amplification is responsible for the peaks at 1 mm, 8 mm and 15 mm. For a given , is highest when is 8 mm. However, the difference to the values of at 1 mm and 15 mm is small.  When is at either 4 mm or 5 mm and at 12 mm, has a value of more than 1.5. These positions represent the location of an acoustic antinode of the cavity cylinder. By placing the resonance cylinder at these positions, the antinode is coupled into the resonance cylinder and thus a strong PA signal is detected. For the same , is higher When D r is at either 4 mm or 5 mm and at 12 mm, ς has a value of more than 1.5. These positions represent the location of an acoustic antinode of the cavity cylinder. By placing the resonance cylinder at these positions, the antinode is coupled into the resonance cylinder and thus a strong PA signal is detected. For the same L r , ς is higher when D r is 12 mm than when at either 4 mm or 5 mm. Therefore, it can be concluded that D r affects the strength of the signal more than L r .
The highest ς value of 2.2 is observed when D r is 12 mm and L r is 8 mm (highlighted in Figure 4). Since our interest is to get the largest signal, a finer sweep of D r between 11 mm and 13 mm and L r between 7 mm and 13 mm, both with 0.1 mm step size, is performed. The results of the finer sweep are presented in Figure 6. The highest ς value from the finer sweep is 2.5 when L r is 8.1 mm and D r is 12.3 mm.
. 2021, 11, x FOR PEER REVIEW 7 of 11 when is 12 mm than when at either 4 mm or 5 mm. Therefore, it can be concluded that affects the strength of the signal more than . The highest value of 2.2 is observed when is 12 mm and is 8 mm (highlighted in Figure 4). Since our interest is to get the largest signal, a finer sweep of between 11 mm and 13 mm and between 7 mm and 13 mm, both with 0.1 mm step size, is performed. The results of the finer sweep are presented in Figure 6. The highest value from the finer sweep is 2.5 when is 8.1 mm and is 12.3 mm.

Cavity Cylinder
A cavity cylinder sweep is performed by changing its length and radius . The radius is changed from 2 mm to 5 mm with 0.5 mm step size while the length is changed from 12 mm to 24 mm in 1 mm step size. Similar to the resonance cylinder sweep, the PA signal is calculated for all combinations of and with the other resonator dimensions kept constant. Figure 7 shows the relative PA signal for the cavity cylinder sweep. The values between 3.5 mm and 4.5 mm have values of more than 1 with the highest value if equals 4 mm. Outside this range, the value is less than 1. At = 4 mm, the value is highest if is between 15 mm and 17 mm. The highest value of 2.2 is observed if is 17 mm and is 4 mm (highlighted in Figure 7). The PA signal is affected considerably by .
of the reference resonator is already close to its optimum value.

Cavity Cylinder
A cavity cylinder sweep is performed by changing its length L c and radius R c . The radius is changed from 2 mm to 5 mm with 0.5 mm step size while the length is changed from 12 mm to 24 mm in 1 mm step size. Similar to the resonance cylinder sweep, the PA signal is calculated for all combinations of L c and R c with the other resonator dimensions kept constant. Figure 7 shows the relative PA signal ς for the cavity cylinder sweep. The R c values between 3.5 mm and 4.5 mm have ς values of more than 1 with the highest value if R c equals 4 mm. Outside this range, the ς value is less than 1. At R c = 4 mm, the ς value is highest if L c is between 15 mm and 17 mm. The highest ς value of 2.2 is observed if L c is 17 mm and R c is 4 mm (highlighted in Figure 7). The PA signal is affected considerably by L c . R c of the reference resonator is already close to its optimum value.
i. 2021, 11, x FOR PEER REVIEW 7 of 11 when is 12 mm than when at either 4 mm or 5 mm. Therefore, it can be concluded that affects the strength of the signal more than . The highest value of 2.2 is observed when is 12 mm and is 8 mm (highlighted in Figure 4). Since our interest is to get the largest signal, a finer sweep of between 11 mm and 13 mm and between 7 mm and 13 mm, both with 0.1 mm step size, is performed. The results of the finer sweep are presented in Figure 6. The highest value from the finer sweep is 2.5 when is 8.1 mm and is 12.3 mm.

Cavity Cylinder
A cavity cylinder sweep is performed by changing its length and radius . The radius is changed from 2 mm to 5 mm with 0.5 mm step size while the length is changed from 12 mm to 24 mm in 1 mm step size. Similar to the resonance cylinder sweep, the PA signal is calculated for all combinations of and with the other resonator dimensions kept constant. Figure 7 shows the relative PA signal for the cavity cylinder sweep. The values between 3.5 mm and 4.5 mm have values of more than 1 with the highest value if equals 4 mm. Outside this range, the value is less than 1. At = 4 mm, the value is highest if is between 15 mm and 17 mm. The highest value of 2.2 is observed if is 17 mm and is 4 mm (highlighted in Figure 7). The PA signal is affected considerably by .
of the reference resonator is already close to its optimum value. Based on the results of the parameter sweep, we conclude that the PA signal is most affected by L c and D r . A finer sweep is performed by changing L c between 16.6 mm and 17.3 mm with steps of 0.1 mm and D r between 5.5 mm and 7.0 mm with steps of 0.5 mm. The results of the sweep are shown in Figure 8. The combined sweep increased the ς value from 2.2 to 3.5 when L c is 17.1 mm and D r is 6.5 mm.

Optimization
For the optimization, , and are selected as design variables while all other dimensions are kept constant. The optimization search space of the variables , and is defined as shown in Table 2. The optimization results show that the relative PA signal ( ) of 7.23 is obtained if , and are 17.146 mm, 1.1195 mm and 6.7924 mm, respectively. The peak resonance frequency equals 49.2 kHz. Due to difficulty in resolving the superimposed resonances, we have refrained from calculating and comparing the quality factor. The pressure distribution of the optimized resonator at 49.2 kHz is shown in Figure 9. The pressure antinode is located at the position of the microphone diaphragm which is important for high detection.

Verification
The optimized resonator is manufactured for an experimental verification of the results. The production tolerance is 0.01 mm. A schematic of the resonator cross-section is shown in Figure 10.

Optimization
For the optimization, L c , L r and D r are selected as design variables while all other dimensions are kept constant. The optimization search space of the variables L c , L r and D r is defined as shown in Table 2.

Optimization Variables Range (mm)
Resonance cylinder length L r 1-8 Resonance cylinder position D r 6-8 Cavity cylinder length L c 16.9-17.2 The optimization results show that the relative PA signal (ς) of 7.23 is obtained if L c , L r and D r are 17.146 mm, 1.1195 mm and 6.7924 mm, respectively. The peak resonance frequency equals 49.2 kHz. Due to difficulty in resolving the superimposed resonances, we have refrained from calculating and comparing the quality factor. The pressure distribution of the optimized resonator at 49.2 kHz is shown in Figure 9. The pressure antinode is located at the position of the microphone diaphragm which is important for high detection.

Optimization
For the optimization, , and are selected as design variables while all other dimensions are kept constant. The optimization search space of the variables , and is defined as shown in Table 2. The optimization results show that the relative PA signal ( ) of 7.23 is obtained if , and are 17.146 mm, 1.1195 mm and 6.7924 mm, respectively. The peak resonance frequency equals 49.2 kHz. Due to difficulty in resolving the superimposed resonances, we have refrained from calculating and comparing the quality factor. The pressure distribution of the optimized resonator at 49.2 kHz is shown in Figure 9. The pressure antinode is located at the position of the microphone diaphragm which is important for high detection.

Verification
The optimized resonator is manufactured for an experimental verification of the results. The production tolerance is 0.01 mm. A schematic of the resonator cross-section is shown in Figure 10.

Verification
The optimized resonator is manufactured for an experimental verification of the results. The production tolerance is 0.01 mm. A schematic of the resonator cross-section is shown in Figure 10.

Verification
The optimized resonator is manufactured for an experimental verification of the results. The production tolerance is 0.01 mm. A schematic of the resonator cross-section is shown in Figure 10. Additionally, the frequency response of the optimized resonator is calculated using the VT-PML, VT-BEM and AME-PML approaches. The AME-PML simulation is performed with frequency intervals of 10 Hz. The VT-PML and VT-BEM simulations are performed at intervals of 300 Hz and fitted with a cubic spline. The difference in the increments is because the simulation time of the AME-PML is shorter than that of the VT-PML and VT-BEM approach [21]. In order to account for the production limits, the resonator dimensions are rounded 0.01 mm. The three simulation plots are shown in Figure 11 together with the experimental results.  Additionally, the frequency response of the optimized resonator is calculated using the VT-PML, VT-BEM and AME-PML approaches. The AME-PML simulation is performed with frequency intervals of 10 Hz. The VT-PML and VT-BEM simulations are performed at intervals of 300 Hz and fitted with a cubic spline. The difference in the increments is because the simulation time of the AME-PML is shorter than that of the VT-PML and VT-BEM approach [21]. In order to account for the production limits, the resonator dimensions are rounded 0.01 mm. The three simulation plots are shown in Figure 11 together with the experimental results.

Verification
The optimized resonator is manufactured for an experimental verification of the results. The production tolerance is 0.01 mm. A schematic of the resonator cross-section is shown in Figure 10. Additionally, the frequency response of the optimized resonator is calculated using the VT-PML, VT-BEM and AME-PML approaches. The AME-PML simulation is performed with frequency intervals of 10 Hz. The VT-PML and VT-BEM simulations are performed at intervals of 300 Hz and fitted with a cubic spline. The difference in the increments is because the simulation time of the AME-PML is shorter than that of the VT-PML and VT-BEM approach [21]. In order to account for the production limits, the resonator dimensions are rounded 0.01 mm. The three simulation plots are shown in Figure 11 together with the experimental results. Experiment and simulations consistently show that the resonance with a peak at 49 kHz has by far the highest amplitude. All simulations predict similar spectral features and show a slight shift of the peak frequency from 49.2 kHz to 49.0 kHz and a decrease of from 7.23 to 4.59. This difference can be attributed to the rounded resonator Experiment and simulations consistently show that the resonance with a peak at 49 kHz has by far the highest amplitude. All simulations predict similar spectral features and show a slight shift of the peak frequency from 49.2 kHz to 49.0 kHz and a decrease of ς from 7.23 to 4.59. This difference can be attributed to the rounded resonator dimensions, representing the production uncertainties. The new resonator represents nevertheless a significant improvement over the reference resonator.
The strongest resonance in both the measurements and the simulations spans a wide frequency range. The measured resonance frequency equals 48.3 kHz and is thus lower than the simulation results (49 kHz). This might be attributed to PA signal leakage at the microphone mount. This effect is not considered in the numerical models.
The weak resonances, recognizable in the simulations, are hard to identify in the measurement due to noise. The measured amplitude of the optimized resonator is 2.34 times larger than the amplitude of the reference resonator as seen in Figure 12.
The strongest resonance in both the measurements and the simulations spans a wide frequency range. The measured resonance frequency equals 48.3 kHz and is thus lower than the simulation results (49 kHz). This might be attributed to PA signal leakage at the microphone mount. This effect is not considered in the numerical models.
The weak resonances, recognizable in the simulations, are hard to identify in the measurement due to noise. The measured amplitude of the optimized resonator is 2.34 times larger than the amplitude of the reference resonator as seen in Figure 12.

Conclusions
We have described the optimization of an open T-shaped resonator designed for application in blood glucose measurements. The resonator geometry is optimized for strong PA signal in the ultrasound using finite element modelling. The method described here can be applied for the optimization of open PA resonators of arbitrary shape as well. The optimization procedure would be particularly suitable for optimizing complex resonators which have numerous design variables. The results from the optimization have been confirmed using both experimental measurements and other numerical methods. The PA signal experimentally increased by a factor of 2.34 compared to the reference resonator. This improvement constitutes an important step towards the development of a portable PA glucose sensor as we expect that it will significantly improve the sensitivity of PA glucose measurements. The next step is to validate the optimization by making in vitro PA measurements of glucose solutions before performing in vivo measurements.