Skip to content

How can I calculate the relative circumference of the points of a profile or airfoil? #739

Answered by MarAlder
Mtabei asked this question in Q&A
Discussion options

You must be logged in to vote

You have a CPACS file with guide curves, I guess? Then I suggest to use TiGL's configuration manager API.

The following example provides the guide curve points of the simpleAircraft.xml example:

from tixi3 import tixi3wrapper
from tigl3 import tigl3wrapper
import tigl3.configuration
import numpy as np

# Instantiate TiXI
tixi_h = tixi3wrapper.Tixi3()

# Open the XML file
fname = 'simpleAircraft.xml'
error = tixi_h.open(fname)
if not error:
    print('CPACS data set %s opended successfully.'%fname)

tigl_h = tigl3wrapper.Tigl3()
tigl_h.open(tixi_h,'aircraftModel')

# Load config manager
mgr = tigl3.configuration.CCPACSConfigurationManager_get_instance()
aircraft_config = mgr.get_configuration

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@MarAlder
Comment options

@Mtabei
Comment options

@MarAlder
Comment options

@rainman110
Comment options

@Mtabei
Comment options

Answer selected by MarAlder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants