---
# System prepended metadata

title: 2023-NotesAT

---

# Notes of Acoustic Toolbox

## Preperation
1. Check your interpreter (eg. gfortran)
    ```
    $ gfortran --version
    GNU Fortran (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
    Copyright (C) 2021 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    ```
2. Check your system (eg. Ubuntu)
    ```
    $ lsb_release -a
    No LSB modules are available.
    Distributor ID:	Ubuntu
    Description:	Ubuntu 22.04.3 LTS
    Release:	22.04
    Codename:	jammy
    ```
3. Download here: http://oalib.hlsresearch.com/AcousticsToolbox/
    ![](https://hackmd.io/_uploads/HJxI6B0T3.png)

4. Extract (test_at)
    ![](https://hackmd.io/_uploads/SJARYS0T2.png)
    
## Makefile and test
1. Since the Makefile defaults to choosing gfortran, we simply need to execute it.
    ```
    $ make
    ...
    ...
    ***********************************
    ***** Acoustics Toolbox built *****
    ***********************************
    ```
    If you see the same output, it signifies the successful generation of executable files.

2. To make things clear, I will make a new folder test_at/at_mytest, and put all necessary files in it.
![](https://hackmd.io/_uploads/HJjlCS06n.png)
    
3. Now it's time to do the test. Open a terminal and type 
    ```
    $ ./bellhop.exe MunkB_Coh
    ```
4. Two files are generated, a prt file and an shd file. They are the output files for the test problem.
    ![](https://hackmd.io/_uploads/BJDPCHCT3.png)
    
5. Open MATLAB and go to the same path to plot the results.
    ![](https://hackmd.io/_uploads/B1e11LCTn.png)
