# Wing Geometry There are two ways we can set up the wings, one using the *generic* wing setup, which is fine for simple aircraft or aircraft with conventional wing configurations, or using the *modern geometry* wing setup, which permits non-standard wing configurations. For example, with the modern geometry you can easily create a biplane like the [Acro Sport II](https://en.wikipedia.org/wiki/Acro_Sport_II), or even something more experimental like the [DARPA "SMUT" Model 33](http://stargazer2006.online.fr/aircraft/pages/smut.htm).   For both wing setups, certain CFG parameters are used in both cases, and we'll cover these shared parameters first in the sections below. Note that you can adjust the required parameters and then *save* in the [SimObject editor](../../../../devmode/editors/simobject-editor/the-simobject-editor/), and the position of the different surface markers will change to reflect the new values. These markers are actually the sampling positions that are used by the flight model to determine how the aircraft will fly, and the goal (with the wings) is to have the *front* row of markers align with the **leading edge** of the wing, and the *back* row of markers to follow approximately the **center** of the wing. It's unlikely that these align right now, so we need to continue and define the parameters correctly. {{< callout context="note" title="NOTE" icon="outline/bulb" >}} You can enable [Live Edition](../../../../devmode/editors/simobject-editor/the-simobject-editor/#edition-info) and then select [Auto Resync On Changes](../../../../devmode/editors/simobject-editor/menus/#auto-resync) to see any changes that are made in the editor reflected in the simulation in real-time without the need to save first. {{< /callout >}}   If the aircraft requires more than the standard left and right wing setup, then you should still go ahead and setup the parameters below for the "main" set of wings first. If the aircraft is entirely unconventional, then you should still try to set up these parameters to "best fit" values where possible, and then modify them using the advanced geometry options.     ### Basic Wing Shape We'll start by setting the wing **Area** and **Span** in the [`[AIRPLANE_GEOMETRY]`](../../../../content-configuration/cfg-files/flight_model.cfg/#airplane_geometry) section of the SimObject Editor, which correspond to the parameters [`wing_area`](../../../../content-configuration/cfg-files/flight_model.cfg/#wing_area) and [`wing_span`](../../../../content-configuration/cfg-files/flight_model.cfg/#wing_span) in the `flight_model.cfg`. {{< image-center src="images/7_Samples_Tutorials/Tutorials/Define_Flight_Model/geometry/wings/wings_1_areaspan.png" alt="The Area And Span Parameters For The Wings in The SimObject Editor" >}}   Next you can set the **Thickness Ratio** of the wing in the Geometry panel. This is a ratio of the wing size and most wings are between 2% and 5% thick. In the CFG file, this is the [`wing_thickness_ratio`](../../../../content-configuration/cfg-files/flight_model.cfg/#wing_thickness_ratio) parameter . {{< image-center src="images/7_Samples_Tutorials/Tutorials/Define_Flight_Model/geometry/wings/wings_2_thickness.png" alt="The Wing Thickness Parameter in The SimObject Editor" >}}   The calculation for this is as follows: $$\textrm{Local thickness} = \textrm{local_chord(x)} \times \textrm{wing_thickness_ratio}, x = \textrm{lateral_coord}$$     ### Wing Positioning And Angles At this point you need to set the **Sweep** ([`wing_sweep`](../../../../content-configuration/cfg-files/flight_model.cfg/#wing_sweep)) in the Geometry panel and the **Aero Center Lift** (longitudinal position - [`aero_center_lift`](../../../../content-configuration/cfg-files/flight_model.cfg/#aero_center_lift)) at the top of the **Aerodynamics** panel. This second one requires that **Compute Aero Center** ([`compute_aero_center`](../../../../content-configuration/cfg-files/flight_model.cfg/#compute_aero_center)) is *unchecked* (false): ![The Sweep Parameter in The SimObject Editor](images/7_Samples_Tutorials/Tutorials/Define_Flight_Model/geometry/wings/wings_3_sweep.png) ![The Longitudinal Position Parameter in The SimObject Editor](images/7_Samples_Tutorials/Tutorials/Define_Flight_Model/geometry/wings/wings_4_aerocenter.png)   Next, you need to position the wing vertically using **Pos Apex Vert** ([`wing_pos_apex_vert`](../../../../content-configuration/cfg-files/flight_model.cfg/#wing_pos_apex_vert)) and fine tune the shape using the **Root [Chord](../geometry/#)** ([`wing_root_chord`](../../../../content-configuration/cfg-files/flight_model.cfg/#wing_root_chord)), both measured in {{< glossterm >}}ft{{< /glossterm >}}: {{< image-center src="images/7_Samples_Tutorials/Tutorials/Define_Flight_Model/geometry/wings/wings_5_chord.png" alt="The Chord and Vertical Position Parameters in The SimObject Editor" >}}   Finally you can set the wing **[Dihedral](../geometry/#)** ([`wing_dihedral`](../../../../content-configuration/cfg-files/flight_model.cfg/#wing_dihedral) - in degrees): {{< image-center src="images/7_Samples_Tutorials/Tutorials/Define_Flight_Model/geometry/wings/wings_6_dihedral.png" alt="The Dihedral Parameter in The SimObject Editor" >}} {{< image-center src="images/7_Samples_Tutorials/Tutorials/Define_Flight_Model/geometry/wings/wings_7_dihedralimage.png" alt="Wing Dihedral/Anhedral" >}}   At this stage, when seen from the top and the front, you should see that the front line of surface sensors for the wing surfaces are aligned along the leading edge of the wing, and the rear line of surface sensors are aligned along the approximate middle of the wing (this way, the sum of the aerodynamics forces will be aligned at 25% [MAC](../geometry/#)), and the top and bottom surface sensors "sandwich" the wing: {{< image-center src="images/7_Samples_Tutorials/Tutorials/Define_Flight_Model/geometry/wings/wings_8_sensors.png" alt="The Wing Surface Sensors Aligned Correctly After Editing" >}}   It's worth noting that even if you don't have the exact measurements or values required for the above listed parameters, you can still use the visual debugging to get a very close approximation based on the aircraft model. Simply tweak the values until you get the surface sensors in the appropriate position.     ### Advanced Wings Generic wings assume that the aircraft has the standard two wing (left/right) configuration, but it may be that your aircraft is non-conventional and has additional wings or canards. These can now be added using the [`[OBJ_AIRGEO_WING.N]`](../../../../content-configuration/cfg-files/flight_model.cfg/#OBJ_AIRGEO_WING.N) section of the [flight\_model.cfg](../../../../content-configuration/cfg-files/flight_model.cfg/). However before getting to that section you first have to decide whether the generic wings are going to be used *as well as* additional wings, or whether you want *all* wings to use the advanced geometry options. By default, any additional wings will be added **along with the generic ones**, but you can disable this by *unchecking* the [`enable_aircraft_geometry_wing`](../../../../content-configuration/cfg-files/flight_model.cfg/#enable_aircraft_geometry_wing) option: {{< image-center src="images/7_Samples_Tutorials/Tutorials/Define_Flight_Model/geometry/wings/wings_9_enablegeo.png" alt="Enable / Disable Generic Wing Geometry" >}}   For this example, we'll be keeping the generic wing setup, and adding an extra canard "wing" surface to the nose of the DA62, so no changes need to be made to the section above as we'll be keeping the generic wing definitions. Since this is purely for illustration purposes, all we've done is duplicated the wing models of the DA62 using the [attached\_objects.cfg](../../../../content-configuration/cfg-files/attached_objects.cfg/) to position and scale them: {{< image-center src="images/7_Samples_Tutorials/Tutorials/Define_Flight_Model/geometry/wings/wings_10_canard.png" alt="Adding A Canard model To The DA62" >}}   To set up the physics for this canard surface, we need to go to the [`[OBJ_AIRGEO_WING.N]`](../../../../content-configuration/cfg-files/flight_model.cfg/#OBJ_AIRGEO_WING.N) section and add a new wing geometry object. We'll give it a name, and also set its approximate position (easily done using the [The Edition Gizmo](../../../../devmode/the-edition-gizmo/) tool), and you'll notice that it has the same default shape as the "generic" wing: {{< image-center src="images/7_Samples_Tutorials/Tutorials/Define_Flight_Model/geometry/wings/wings_11_addgeo.png" alt="Adding A New Wing Geometry Object" >}}   The initial shape will use all the [`[AIRPLANE_GEOMETRY]`](../../../../content-configuration/cfg-files/flight_model.cfg/#airplane_geometry) parameters by default, but these can be overridden by setting the appropriate parameters in the wing geometry object (span, area, sweep, etc...). The process here is the same as that for generic wings, ie: change the values to those that you have from the plane data, or - at worse - tweak them such that the surface points are as close as possible to where they should be.