Skip to main content

This is the module of surface/airfoil modeling

Project description

# cst-modeling

Surface and curve modeling via CST (class shape transformation) method

The curves, e.g., foil’s upper and lower surface, are constructed via CST method.

The multi-section surface is interpolated from several control sections.

## Modules

### foil

  1. Section class:

    This is a class for control sections.

    The section stores unit 2D curves of upper and lower surface (xx, yu, yl) and CST coefficients (cst_u, cst_l). The 3D curve (x, y, z) is generated from the 2D curves. It starts from the lower surface trailing edge and ends at the upper surface trailing edge. The 3D curve is still a plane curve, the leading edge location (xLE, yLE, zLE), chord length, twist angle (deg), maximum relative thickness, relative tail thickness are defined by user.

  2. Supportive functions:

    There are several functions dealing with curves.

    [curve_curvature] get curvature of a curve [transform] 2D curve’s translation, scale, rotation in z-axis [rotate] 3D curve’s rotation defined by given origin, angle and axis [stretch_fixed_point] linearly stretch a curve with certain fixed point [output_foil] output the airfoil/curve in tecplot format

### surface

  1. Surface class:

    This is a class for multi-section surface.

    [__init__] number of control sections, cst parameters of each curve must be specified immediately [read_setting] layout and cst parameters can be read in from a control file [geo] the function of generating curves and surfaces [add_sec] add sections to the surface, the new sections are interpolated from current ones [flip] mirror the surface by certain plane, or rotate 90 deg by certain axis [bend] bend the surface in x-axis and y-axis, also can rotate sections in x-axis [smooth] smooth the surface [toCylinder] convert the plane curves to curves on cylinders (for turbomachinery) [fromCylinder] convert curves on cylinder to plane curves [plot] show the surface [output_tecplot] output surface in tecplot format [output_plot3d] output surface in plot3d format

Project details


Release history Release notifications

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for cst-modeling3d, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size cst_modeling3d-0.1-py3-none-any.whl (15.6 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size cst_modeling3d-0.1.tar.gz (14.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page