Reference documentation for deal.II version GIT 75f1417c0d 2023-02-03 16:10:02+00:00

#include <deal.II/grid/grid_generator.h>

## Public Member Functions

void add_parameters (ParameterHandler &prm)

## Public Attributes

std::string airfoil_type

std::string naca_id

Point< 2, doublejoukowski_center

double airfoil_length

double height

double length_b2

double incline_factor

double bias_factor

unsigned int refinements

unsigned int n_subdivision_x_0

unsigned int n_subdivision_x_1

unsigned int n_subdivision_x_2

unsigned int n_subdivision_y

unsigned int airfoil_sampling_factor

## Detailed Description

AdditionalData collects all settings that are required to generate a airfoil triangulation with the functions Airfoil::create_triangulation().

Definition at line 2299 of file grid_generator.h.

Constructor.

## Member Function Documentation

 void GridGenerator::Airfoil::AdditionalData::add_parameters ( ParameterHandler & prm )

This function adds the ParameterHandler entries.

Parameters
 [in] prm Parameter handler.

## ◆ airfoil_type

Type of the airfoil: either "NACA" or "Joukowksi" to choose airfoil geometry among NACA and Joukowski airfoil.

Definition at line 2305 of file grid_generator.h.

## ◆ naca_id

NACA serial number defining the airfoil shape.

Note
Currently serial numbers with length 4 are supported. A good overview of NACA serial numbers is presented in Wikipedia (https://en.wikipedia.org/wiki/NACA_airfoil)

Definition at line 2314 of file grid_generator.h.

## ◆ joukowski_center

Center of Joukowski circle.

Note
A center on the x-axis leads to a symmetrical airfoil.

Definition at line 2321 of file grid_generator.h.

## ◆ airfoil_length

Chord length of the airfoil, i.e. distance from leading to trailing edge.

Definition at line 2327 of file grid_generator.h.

## ◆ height

Vertical distance from airfoil chord to upper boundary of the mesh i.e. half of the total mesh height.

Definition at line 2333 of file grid_generator.h.

## ◆ length_b2

Length of mesh from the airfoil trailing edge to outflow boundary.

Definition at line 2338 of file grid_generator.h.

## ◆ incline_factor

Factor defining the inclination HG of the coarse grid The figure shows the upper coarse grid with two different inclinations

• incline_factor = 0 --> face HG
• incline_factor = 0.5 --> face HG' Coordinate of point G' is defined by incline_factor after interpolation G'(0) = G(0) + incline_factor * (K(0) - G(0)) with incline_factor in [0,1).
         o-----G---G'--K
/  |     |  /    |
/    o     | /     |
/    /    \  |/      |
o----o         H-------o


Definition at line 2355 of file grid_generator.h.

## ◆ bias_factor

Factor to receive a finer mesh around the airfoil by increasing bias_factor b. Bias function: f(x) = tanh(bx) / tanh(x) with x in [0,1], leads to a compression of values close to x = 1.

Definition at line 2363 of file grid_generator.h.

## ◆ refinements

Number of global refinements.

Definition at line 2368 of file grid_generator.h.

## ◆ n_subdivision_x_0

Number of subdivisions along the airfoil in left block.

Definition at line 2373 of file grid_generator.h.

## ◆ n_subdivision_x_1

Number of subdivisions along the airfoil in middle block.

Definition at line 2378 of file grid_generator.h.

## ◆ n_subdivision_x_2

Number of subdivisions in block right of the airfoil.

Definition at line 2383 of file grid_generator.h.

## ◆ n_subdivision_y

Number of subdivisions normal to the airfoil contour.

Definition at line 2388 of file grid_generator.h.