cpacspy
is a Python package which could be used to read, write and analyse CPACS aerodynamics data. It simplify the handling of AeroMaps.
CPACS is a Common Parametric Aircraft Configuration Schema. It is a data definition for the air transportation system which is developed by the German Aerospace Center DLR. CPACS enables engineers to exchange information between their tools.
AeroMaps contains aerodynamic coefficients and derivatives for a specific set of aerodynamic and configurative boundary conditions.
cpacspy
depend mainly in DLR libraries TIXI and TIGL, they must be installed on your computer to use cpacspy
. The easiest way to do so, is to use a Conda environment, to create one:
-
Install Anaconda or Miniconda if you don't already have one of them installed.
-
Clone this repository and create a Conda environment with the following commands:
git clone https://github.com/cfsengineering/cpacspy.git
cd cpacspy
conda env create -f environment.yml
conda activate cpacspy_env
- When it is done or if you already have TIXI and TIGL install on your computer:
pip install cpacspy
To see how to use this module, check out:
- Python file with examples of useage: cpacspy_use.py
- Jupyter Notebook with examples of useage: cpacspy_use.ipynb
cd cpacspy
python -m build
pip install --user .
cd cpacspy
./run_ci.sh
It should run:
- Black
- Flake8
- Pytest
- Codecov
License: Apache-2.0