Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 5.27 KB

CONTRIBUTING.md

File metadata and controls

39 lines (27 loc) · 5.27 KB

There are many ways you can contribute to this project. It is not all about developing the source code, we also need people willing to design and perform many different tests. If you want to give us a hand, then maybe it is better if you start by mailing us.

If you are good in programming and you want to bring improvements to the source code, follow the next steps:

  • Download and install Visual Studio 2015 Community (or later version) in your computer
  • Add the GitHub plugin to VS and sign in.
  • Fork this project to a local repository (download the source code into a local folder in your computer).
  • Read the quick introduction to the source code.
  • Commit to an issue from the list (or submit a new issue).
  • Start working on the code.
  • When you think the job is done (after you have tested it at least a couple of times and it seems to work), create a new pull request (https://help.github.com/articles/using-pull-requests/).
  • Discuss with the group members about possible issues or corrections (code styling, comments, bugs, etc.).
  • Solve possible issues.
  • Waint until a member with push access merges your changes in the main branch.

Quick introduction to the source code

The Open VOGEL solution comprises three main projects: the AeroTools class library, the MathTools class library and the OpenVOGEL winforms project.

AeroTools

In the AeroTools library you will find the core definitions divided in two parts: the visual model and the calculation model. The VisualModel namespace (folder) contains all the objects users intercact with while designing a model and the components of the graphical user interface. This library avoids any method related to the analysis, and it only holds the global information that needs to be provided by the user (geometry, structural properties, polars, etc.). The CalculationModel namespace, on the other hand, is a more abstract part of the library that houses the whole calculation core. It is divided in an aerodynamic part, and a structural part. This library deals with the aerodynamic and structural methods, containing a collection of calculation algorithms and precise definitions of the calculation data (vortex rings, lattices, structural elements, etc.).

In OpenVOGEL the GUI and the calculation core are split (they are contained in different classes). When you start the calculation, the design model is converted into a calculation model, and when the calculation finishes, the calculation core is loaded into a container that will represent the results. The calculation core is also kept in memory after calculation (or when reloading results) so that the user can still compute the velocity field and the global airloads.

The design model contains a collection of Surface objects. The Surface class is a must-inherit class that is common to all design models (lifting surfaces, fuselages, nacelles, ext.), providing the basic common features we need to handle them. These features are mainly: a mesh, a description of the position and orientation, the visual properties (colors and visibility), an overridable method to generate the mesh, and an overridable method to represent the model in an OpenGL container. This means that you can easly introduce a new type of surface by inheriting the Surface class and implementing your own meshing procedure. Of course that if you do that, you will also need to create the forms required to edit the data and the conversion algorithms to put the model in the calculation core.

MathTools

The MathTools library contains important basic definitions that have been created to solve several vector and matrix problems that can be found all over the solution. The most important library here is probably the one under the EuclideanSpace namespace, since it contains basic vector algebra (2D and 3D vectors).

Othe important namespaces in this library are EigenValues and Integration, the former used to solve generalized eigen value problems (Kx = lMx), and the last one used to solve ODEs. Both libraries are used by the aeroelastic solver.

The OpenVOGEL winforms project and the GUI

The winforms project is actually quite small, as it only contains the main form and the splash screen. Instead of dropping all GUI controls in the main form, OpenVOGEL keeps the GUI components in specific user controls and forms that are dynamically loaded during runtime. This means that when you open the MainForm in Visual Studio, you will not be able to do much from the designer. If you want to modify the layout or the behavior of some GUI component, then you have to go to that specific form or user control. Working this way results in a tidy program structure, because you can provide a form or user control with only the information it will handle, which is most of the times sealed in a specific class. Just to give an example, the WingControl panel only loads and handles the information contained in a single LiftingSurface object, and it may additionally access the polar database.

The main form contains a SharpGL control for the 3D representation of the models and a MainRibbon control that is in charge of the topmost administrative job. This last component is part of the AeroTools class library and allows users to handle the unique instance to the ProjectRoot class, which holds all of the information in the software.