3D View: Add -> Mesh -> Ico Sphere
)Subdivisions: 6
Size: 100
Location: 0, 0, 0
Rotation: 0, 0, 0
Export files for the numerical calculation (Info: File -> Export -> NumCalc (.inp)
)
If you cannot find the export option, go to the 'Mesh2Input' Section and just follow the 'Installation' section
Choose or create an export folder, e.g., /Users/JDoe/Simulations/RigidSpherePointSource
CAUTION: Before you click on 'Export Mesh2HRTF' you have to adjust the following settings accordingly!
Title: Scattering from a rigid sphere by a point source
Ear: none
Pictures: False
Point Source: 0 0.2 0
Reciprocity: False
c: 343.18
rho: 1.1839
Unit: mm
Ev.Grid1: HPlane
Ev.Grid2: none
Ev.Grid3: none
Ev.Grid4: none
Ev.Grid5: none
NF-Calc.: False
Freq step: 1000
Freq max: 16000
Freq.-dep.: False
Method: ML-FMM BEM
CPU (first): depends on your setup
CPU (last): depends on your setup
Num. of used cores: depends on your setup
Using the scripts at ARI
- Start the numerical calculation by using the startNumCalc script, e.g., by entering startNumCalc /Users/JDoe/Simulations/RigidSpherePointSource
into the terminal on Mac OS X
Using the scripts elsewhere (you personal computer)
- Copy the contents of the NumCalc source-folder (Makefile, NC_Main,...) into each CPU_Core folder (NumCalc\CPU_1_Core_1,...)
- Execute the Makefile and run the NumCalc script in each subdirectory
When all calculation processes are done, run Output2HRTF in Matlab
If the script can't be executed or errors occur, check if you have done the Installation of the 'Output2HRTF' section correctly
Create VTK-files for visualization in Paraview by executing the following Matlab script:
Make sure that you added the directory EvalTools\Source in the source files to your Matlab path. Otherwise there might be an error!
if ~exist('Visualization','dir')
mkdir('Visualization');
end
if exist('ObjectMesh.mat','file')
load('ObjectMesh.mat')
if ~exist(['Visualization' filesep 'ObjectMesh'],'dir')
mkdir(['Visualization' filesep 'ObjectMesh'])
end
EvalTools_export2VTK(['Visualization' filesep 'ObjectMesh' filesep],nodes{1}(:,2:end),elements{1}(:,2:end),20*log10(abs(element_data{1})/0.00002),'amp')
end
Start Paraview
Visualization\ObjectMesh
within your project folderWhen you click on 'Apply' the visualization should look like this:
3D View: Add -> Mesh -> Ico Sphere
)Subdivisions: 6
Size: 100
Location: 0, 0, 0
Rotation: 0, 0, 0
Skin
,Left ear
,Right ear
)3D View: Object Mode -> Edit mode
)Skin
to all Left ear
to this elementExport files for the numerical calculation (Info: File -> Export -> NumCalc (.inp)
)
If you cannot find the export option, go to the 'Mesh2Input' Section and just follow the 'Installation' section
Choose or create an export folder, e.g., /Users/JDoe/Simulations/RigidSphereVibratingElement
CAUTION: Before you click on 'Export Mesh2HRTF' you have to adjust the following settings accordingly!
Title: Radiation from a active vibrating element in a sphere
Ear: left
Pictures: False
Point Source: 0 101 0
Reciprocity: True
c: 343.18
rho: 1.1839
Unit: mm
Ev.Grid1: ARI
Ev.Grid2: none
Ev.Grid3: none
Ev.Grid4: none
Ev.Grid5: none
NF-Calc.: False
Freq step: 1000
Freq max: 16000
Freq.-dep.: False
Method: ML-FMM BEM
CPU (first): depends on your setup
CPU (last): depends on your setup
Num. of used cores: depends on your setup
Using the scripts at ARI
- Start the numerical calculation by using the startNumCalc script, e.g., by entering startNumCalc /Users/JDoe/Simulations/RigidSpherePointSource
into the terminal on Mac OS X
Using the scripts elsewhere (you personal computer)
- Copy the contents of the NumCalc source-folder (Makefile, NC_Main,...) into each CPU_Core folder (NumCalc\CPU_1_Core_1,...)
- Execute the Makefile and run the NumCalc script in each subdirectory
If the script can't be executed or errors occur, check if you have done the Installation of the 'Output2HRTF' section correctly
Create VTK-files for visualization in Paraview by executing the following Matlab script:
Make sure that you added the directory EvalTools\Source in the source files to your Matlab path. Otherwise there might be an error!
if ~exist('Visualization','dir')
mkdir('Visualization');
end
if exist('ObjectMesh.mat','file')
load('ObjectMesh.mat')
if ~exist(['Visualization' filesep 'ObjectMesh'],'dir')
mkdir(['Visualization' filesep 'ObjectMesh'])
end
EvalTools_export2VTK(['Visualization' filesep 'ObjectMesh' filesep],nodes{1}(:,2:end),elements{1}(:,2:end),20*log10(abs(element_data{1})/0.00002),'amp')
end
Start Paraview
Visualization\ObjectMesh
within your project folderWhen you click on 'Apply' the visualization should look like this:
File -> Open
or File -> Import -> ply
)0
Skin
,Left ear
,Right ear
)3D View: Object Mode -> Edit mode
)Skin
to allAssign the material Left ear
and Right ear
to elements within the ear canal. These will represent the microphones
Export files for the numerical calculation (Info: File -> Export -> NumCalc (.inp)
)
If you cannot find the export option, go to the 'Mesh2Input' Section and just follow the 'Installation' section
Choose or create an export folder, e.g., /Users/JDoe/Simulations/UniformHRTFCalculation
CAUTION: Before you click on 'Export Mesh2HRTF' you have to adjust the following settings accordingly!
Title: Uniform HRTF Calculation
Ear: both
Pictures: False
Point Source: 0 101 0
Reciprocity: True
c: 343.18
rho: 1.1839
Unit: mm
Ev.Grid1: ARI
Ev.Grid2: none
Ev.Grid3: none
Ev.Grid4: none
Ev.Grid5: none
NF-Calc.: False
Freq step: 100
Freq max: 16000
Freq.-dep.: False
Method: ML-FMM BEM
CPU (first): depends on your setup
CPU (last): depends on your setup
Num. of used cores: depends on your setup
Using the scripts at ARI
- Start the numerical calculation by using the startNumCalc script, e.g., by entering startNumCalc /Users/JDoe/Simulations/UniformHRTFCalculation
into the terminal on Mac OS X
Using the scripts elsewhere (you personal computer)
- Copy the contents of the NumCalc source-folder (Makefile, NC_Main,...) into each CPU_Core folder (NumCalc\CPU_1_Core_1,...)
- Execute the Makefile and run the NumCalc script in each subdirectory
If the script can't be executed or errors occur, check if you have done the Installation of the 'Output2HRTF' section correctly
- 'EtcHorizontal' energy-time curve in the horizontal plane (+/- 5 deg)
- 'EtcMedian' energy-time curve in the median plane (+/- 2 deg)
- 'MagHorizontal' magnitude spectra in the horizontal plane (+/- 5 deg)
- 'MagMedian' magnitude spectra in the median plane (+/- 2 deg)
- 'magspectrum' single magnitude spectrum for direction DIR in COLOR
The following image shows the energy time curve in the horzontal pane (mode = EtcHorizontal
):
File -> Open
or File -> Import -> ply
)0
Skin
,Left ear
,Right ear
)3D View: Object Mode -> Edit mode
)Skin
to allAssign the material Left ear
orRight ear
(depending which mesh you have) to elements within the ear canal. These will represent the microphones
Export files for the numerical calculation (Info: File -> Export -> NumCalc (.inp)
)
If you cannot find the export option, go to the 'Mesh2Input' Section and just follow the 'Installation' section
Choose or create an export folder, e.g., /Users/JDoe/Simulations/NonUniformHRTFCalculation
CAUTION: Before you click on 'Export Mesh2HRTF' you have to adjust the following settings accordingly!
Title: Nonuniform HRTF Calculation
Ear: both
Pictures: False
Point Source: 0 101 0
Reciprocity: True
c: 343.18
rho: 1.1839
Unit: mm
Ev.Grid1: ARI
Ev.Grid2: none
Ev.Grid3: none
Ev.Grid4: none
Ev.Grid5: none
NF-Calc.: False
Freq step: 100
Freq max: 16000
Freq.-dep.: True
Method: ML-FMM BEM
CPU (first): depends on your setup
CPU (last): depends on your setup
Num. of used cores: depends on your setup
Using the scripts at ARI
- Start the numerical calculation by using the startNumCalc script, e.g., by entering startNumCalc /Users/JDoe/Simulations/NonUniformHRTFCalculation
into the terminal on Mac OS X
Using the scripts elsewhere (you personal computer)
- Copy the contents of the NumCalc source-folder (Makefile, NC_Main,...) into each CPU_Core folder (NumCalc\CPU_1_Core_1,...)
- Execute the Makefile and run the NumCalc script in each subdirectory
If the script can't be executed or errors occur, check if you have done the Installation of the 'Output2HRTF' section correctly
- 'EtcHorizontal' energy-time curve in the horizontal plane (+/- 5 deg)
- 'EtcMedian' energy-time curve in the median plane (+/- 2 deg)
- 'MagHorizontal' magnitude spectra in the horizontal plane (+/- 5 deg)
- 'MagMedian' magnitude spectra in the median plane (+/- 2 deg)
- 'magspectrum' single magnitude spectrum for direction DIR in COLOR
The following image shows the energy time curve in the horzontal pane for the right ear (mode = EtcHorizontal
):
Ziegelwanger, H., Majdak, P., Kreuzer, W. (2015):
Numerical calculation of listener-specific head-related transfer functions and sound localization: Microphone model and mesh discretization, in: The Journal of the Acoustical Society of America