![]() ![]() ![]() Interactive shapes can be viewed by clicking the shape hyperlinks however, as produced by the PythonOCC x3dom renderer. All renderings are static images here, but represent interactive renderings when run as an IPython notebook available here. LEPoint = ChordLength = 1 Rotation = 0 Twist = 0 AirfoilSeligName = 'dae11' # Instantiate class to set up a generic airfoil with these basic parameters Af = primitives.airfoil(lepoint, ChordLength, Rotation, Twist, SeligProfile=AirfoilSeligName) Finally, display the curve and chord line display.displayshape(af.curve, update=true) display.displayshape(af.chordline, update=true) start_display() 3Ĩ 1.2 Transonic Airliner In this example, the transonic airliner geometry example from the Rhinoceros Airconics plugin is shown. Note: This class also supports construction of NACA 4 digit profiles using input keyword NACA4Profile. In this example, we ll use the SeligProfile type airfoil, leading edge point in origin, unit chord along x axis, no rotation around the x or y axes. First import the primitives module in which the Airfoil class is contained and the pythonocc-core Qt viewer: from airconics import primitives # Visualisation with Python-OCC (ensure plot windows are set to qt) from import init_display display, start_display, add_menu, add_function_to_menu = init_display() Next, define the inputs to Airfoil class. Enjoy occ_airconics! Contents: Contents 1ħ CHAPTER 1 Examples 1.1 Airfoil This example on building an airfoil NURBS curve with occ_airconics is included in the occ_airconics core Qt viewer examples. Contributions are welcome, and developers should refer to the Open CASCADE and pythonocc API documentation for guidelines on manipulation of underlying geometry kernel. Refer to the examples and API reference for a demonstration of the usage of occ_airconics. Installation of occ_airconics requires a recent version of PythonOCC, and is compatible with the latest version, 0.17, available from the conda package - see Installation for more information. In particular, the base classes AirconicsShape and AirconicsCollection are added (see API reference for details). Users of the original AirCONICS software should be aware however that the functionality of the original API has changed in occ_airconics to fit with the environments and ideologies of CPython and pythonocc. occ_airconics offers a fully cross platform and open source porting of core classes from the popular AirCONICS (A ircraft CON figuration through I ntegrated C rossdisciplinary S cripting) plug-in for Rhinoceros 3D. One of the key advantages of occ_airconics is that it benefits from being built on the open-source full CAD kernel Open CASCADE available through PythonOCC, and therefore has access to an extensive and well-supported library of fast geometry manipulation tools including NURBS (Non-Uniform Rational B-Spline) curves and surfaces. An example of this functionality lies in the built-in transonic airliner model, capable of producing a range of conventional geometries (see above) and a box-wing style aircraft. Primary aims of occ_airconics are to provide one such implementation through generic aircraft primitives, such as the Airfoil, LiftingSurface, Engine and Fuselage classes, with a view that they will be used in configuration-level geometry parametrisation and optimisation. While the majority of detailed aircraft design is performed by expert users of high-level Computer Aided Drawing (CAD) software, the bottom-up construction philosophy aircraft geometry as computer code has recently amassed interest in vehicle concept design and multidisciplinary optimisation. 5 occ_airconics implements a scripted aircraft geometry package for Python, powered by Open CASCADE and PythonOCC.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |