Skip to main content

A lightweight, Apache 2.0 distribution of Matthieu Ancellin`s Capytaine BEM code.

Project description

LiteBEM

A lightweight, Apache 2.0 distribution of Matthieu Ancellin's Capytaine BEM code.

Requirements

Installation for Users (Linux Only)

Recommended approach:

  • Open a conda powershell and create a new environment for the LiteBEM project (e.g. "liteBemProject")
    > conda create --name liteBemProject python
    
  • Install LiteBEM from PyPI by entering the following command within your new environment
  • > conda activate liteBemProject
    > python -m pip install LiteBEM
    

Installation for Developers (Linux Only)

Recommended approach:

  • Open a conda powershell and create a new environment for LiteBEM-related development (e.g. "liteBemDev")
    > conda create --name liteBemDev python
    
  • Install numpy (numpy's f2py is required to compile Fortran code) within your LiteBEM development environment:
    > conda activate liteBemDev
    > pip install numpy
    
  • Clone the LiteBEM repo to your preferred location (e.g. "C:/code/")
    > cd C:/code/
    > git clone https://github.com/dav-og/LiteBEM.git
    
  • Install LiteBEM as a developer!
    > cd LiteBEM
    > python setup.py build_ext
    > pip install -e .
    
  • Be sure to check setup.py => install_requires = [...] to ensure that your environment has all required packages installed. You can check your environment's packages using:
    > conda list
    
    • If any packages are missing simply install them using:
      > pip install <package name>
      

Run Tests

  • Make sure pytest is installed in your working environment:

    (liteBemDev) > conda list
    
    • if its not installed then do:
      (liteBemDev) > pip install pytest
      
  • Navigate to LiteBEM and run:

    (liteBemDev) > pytest tests/unit/preprocessor_unit_tests.py
    (liteBemDev) > pytest tests/unit/solver_unit_tests.py
    

Tutorials

  • For a tutorial on how to use LiteBEM, it is currently recommended that users utilize Capytaine's documentation, as it remains largely consistent with LiteBEM

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

LiteBEM-0.0.0.tar.gz (196.7 kB view hashes)

Uploaded Source

Built Distribution

LiteBEM-0.0.0-cp39-cp39-win_amd64.whl (370.0 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page