ADflow  v1.0
ADflow is a finite volume RANS solver tailored for gradient-based aerodynamic design optimization.
section.f90
Go to the documentation of this file.
1 module section
2 !
3 ! This module contains the definition of the derived data type
4 ! sectionType, which stores the information of a section of the
5 ! grid. It also contains the array to store the info of all the
6 ! sections.
7 !
8  use constants, only: inttype, realtype
9  implicit none
10  save
11 !
12 ! The definition of the derived data type sectionType.
13 !
15 
16  ! periodic: Whether or not the section is periodic.
17  ! rotating: Whether or not the section is rotating.
18  ! nSlices: Number of periodic slices to obtain
19  ! a full rotation.
20  ! timePeriod: The physical time of one period.
21  ! rotCenter(3): Cartesian coordinates of the rotation center.
22  ! rotMatrix(3,3): Rotation matrix of the periodic
23  ! transformation.
24  ! translation(3): Translation vector of the periodic
25  ! transformation.
26  ! rotAxis(3): The rotation axis.
27  ! rotRate(3): The rotation rate of the section.
28 
29  logical :: periodic, rotating
30 
31  integer(kind=intType) :: nslices
32 
33  real(kind=realtype) :: timeperiod
34 
35  real(kind=realtype), dimension(3) :: rotcenter, translation
36  real(kind=realtype), dimension(3) :: rotaxis, rotrate
37  real(kind=realtype), dimension(3, 3) :: rotmatrix
38 
39  end type sectiontype
40 
41  ! nSections: Number of different sections in the grid.
42  ! sections(nSections): The info of the corresponding sections.
43 
44  integer(kind=intType) :: nsections
45 
46  type(sectiontype), dimension(:), allocatable :: sections
47 
48 end module section
integer(kind=inttype) nsections
Definition: section.f90:44
type(sectiontype), dimension(:), allocatable sections
Definition: section.f90:46