Skip to content

A tool to convert CPACS files to version 3

License

Notifications You must be signed in to change notification settings

MarkusZimmerDLR/cpacs2to3

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cpacs2to3

Build Status

A tool to convert CPACS files from version 2 to CPACS 3.1.

Quickstart

The simplest way to install cpacs2to3 is to use the conda package manager. The dependencies should be installed automatically and you should be ready to go:

$ conda create -n cpacs2to3 python=3.7 cpacs2to3 -c dlr-sc 

Enter the virtual environment

$ activate cpacs2to3

To convert a cpacs file, just call cpacs2to3 with the file to convert.

$ cpacs2to3 myaircraft.xml -o myaircraftv3.xml

If the output file is not specified, no file will be written, but the cpacs file will be printed to the standard out.

What is converted at the moment?

  • Adds uIDs, that are required by the new CPACS 3 definition.
  • Conversion of the guide curve geometry. CPACS 3 uses a different definition of the guide curves, where we have to convert the geometry.
  • Conversion of the wing structure, including recomputation of eta/xsi coordinates to the new definition.
  • Conversion of material stiffness properties
  • Updates the CPACS version number of the file

How does does it work?

We are using TiXI to transform the xml. This is the easy part. The hard part is the geometry conversion. To support this process, we use both the TiGL 2 and the TiGL 3 library that are able to compute the geometries for both cpacs standards.

Development

cpacs2to3 requires tigl 2 and 3 in order to perform geometry conversions. The easiest way is to create a virtual conda environment

$ conda create -n cpacs2to3_devel python=3.5 tigl3 tigl tixi3 tixi -c dlr-sc

To enter this environment, enter

$ activate cpacs2to3_devel

cpacs2to3 can then be installed into this environment using the standard python setup.py install command.

Legal stuff

Copyright © 2020, German Aerospace Center (DLR e.V.)

This software is licensed under the Apache Public License 2.0. See LICENSE for details.

About

A tool to convert CPACS files to version 3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.9%
  • Other 0.1%