Reference documentation for deal.II version 9.2.0
GridGenerator::Airfoil Namespace Reference

## Functions

template<int dim>

template<int dim>
void create_triangulation (Triangulation< dim, dim > &tria, std::vector< GridTools::PeriodicFacePair< typename Triangulation< dim, dim >::cell_iterator >> &periodic_faces, const AdditionalData &additional_data=AdditionalData())

## Detailed Description

Namespace Airfoil contains classes and functions in order to create a C-type mesh for the (flow) field around Joukowski or NACA airfoils.

## ◆ create_triangulation() [1/2]

template<int dim>
 void GridGenerator::Airfoil::create_triangulation ( Triangulation< dim, dim > & tria, const AdditionalData & additional_data = AdditionalData() )

Initialize the given triangulation with a flow field around an airfoil, i.e., a mesh of C-Type approximating Joukowski or NACA (4 digit) airfoils.

The user can specify the airfoil geometry and the mesh setup by providing input parameters for the struct AdditionalData. Thereby, the user can choose among different types of Joukowski or NACA airfoils with variable chord length, far field size and mesh density.

Note
This function creates a refined mesh (number of global refinements can be specified by the user). No manifold is attached. The vertices in the final mesh are moved by this function to the right position.
This function is currently only implemented for 2D but the mesh can of course be extruded into the third dimension using GridGenerator::extrude().
Parameters
 [out] tria The triangulation to be created. It needs to be empty upon calling this function. [in] additional_data Configuration of the mesh.

## ◆ create_triangulation() [2/2]

template<int dim>
 void GridGenerator::Airfoil::create_triangulation ( Triangulation< dim, dim > & tria, std::vector< GridTools::PeriodicFacePair< typename Triangulation< dim, dim >::cell_iterator >> & periodic_faces, const AdditionalData & additional_data = AdditionalData() )

The same as above but periodic boundary conditions on the upper and lower faces of the far field are applied.

Note
This function is currently only implemented for 2D.
Parameters
 [out] tria The triangulation to be created. It needs to be empty upon calling this function. [out] periodic_faces Periodic faces at upper and lower horizontal boundaries. [in] additional_data Configuration of the mesh.