Numerical calculation of surface scattering
Project description
Mesh2scattering is based on Mesh2HRTF and is an open-source project aiming an easy-to-use software package for the numerical calculation of scattering pattern and scattering and diffusion coefficients of any surface. In a nutshell, Mesh2scattering consists of three parts:
input: prepares geometrical data and acoustic parameters for the simulation,
numcalc: based on the input from input, it calculates the corresponding sound field
output: processes the output from NumCalc to scattering pattern.
process: processes the output to scattering and/or diffusion coefficients.
utils: helping functions.
Please notice that this project does not support HRTF post processing, use Mesh2HRTF instead.
Getting Started
Check out the examples folder for a tour of the most important mesh2scattering functionality and read the docs for the complete documentation.
Installation
Use pip to install mesh2scattering
$ pip install mesh2scattering
$ pip install git+https://github.com/pyfar/imkar.git@scattering-freefield
(Requires Python 3.8 or higher)
Note that NumCalc need to be build on Linux and MacOS. For Windows it can be downloaded.
for Linux:
Install the C++ build essentials by running
$ sudo apt-get install build-essential
Go into the NumCalc directory by running
$ cd path/to/your/Mesh2scattering/mesh2scattering/numcalc/src
Compile NumCalc by running make. It is now located in the folder mesh2scattering/numcalc/bin
$ make
Copy NumCalc to a folder in your program path: in the same directory run
$ sudo cp NumCalc /usr/local/bin/
Now NumCalc can be used by running NumCalc (don’t do this yet).
for MacOS:
Install the C++ build essentials by installing xcode
Go into the numcalc/src directory by running
$ cd path/to/your/Mesh2scattering/mesh2scattering/numcalc/src
Compile NumCalc by running make. It is now located in the folder mesh2scattering/numcalc/bin
$ make
Now NumCalc can be used by running path/to/mesh2scattering/numcalc/bin/NumCalc (don’t do this yet)
$ path/to/mesh2scattering/numcalc/bin/NumCalc
for Windows:
download the executable from the release.
Contributing
Refer to the contribution guidelines for more information.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mesh2scattering-0.1.4.tar.gz
.
File metadata
- Download URL: mesh2scattering-0.1.4.tar.gz
- Upload date:
- Size: 35.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b923dd52da350fe9a22aeceefcc3ce63273f36f93c8cc11a8fc14bc4ae173b30 |
|
MD5 | dfbbd3d92567f9521e19d2515f7b3d28 |
|
BLAKE2b-256 | b9a8e65b055d93e717ac685548ce6c33c857908b6b3608f4fc2578cc9bd98801 |
File details
Details for the file mesh2scattering-0.1.4-py2.py3-none-any.whl
.
File metadata
- Download URL: mesh2scattering-0.1.4-py2.py3-none-any.whl
- Upload date:
- Size: 37.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18b21baad4a558bb4a6c9b32d6541b57698ad6c1319a82b087fb725878ef1820 |
|
MD5 | efcee463ba5522ba5f2f1aeb14fda5c5 |
|
BLAKE2b-256 | 7a2483cf44391ccf23cbd061b74693d3b0097e96c83199f576eacb42b1c07fcb |