flowfield Module

Flow field module

This module contains the flow field variables and related functions.



Variables

Type Visibility Attributes Name Initial
real(kind=rkind), public, allocatable :: Cm(:,:)

Meridional velocity

real(kind=rkind), public, allocatable :: Ct(:,:)

Tangential velocity

real(kind=rkind), public, allocatable :: Htot(:,:)

Total enthalpy

real(kind=rkind), public, allocatable :: S(:,:)

Entropy

real(kind=rkind), public, allocatable :: T(:,:)

Static temperature

real(kind=rkind), public, allocatable :: p(:,:)

Static pressure

real(kind=rkind), public, allocatable :: rho(:,:)

Density

type(boundary_conditions_t), protected :: boco

Boundary conditions

class(thermo_t), protected, allocatable :: gas

Thermodynamic properties of the gas


Functions

public function Wt(i, j) result(W)

Compute the tangential velocity. The rotating frame is taken into account for leading and trailing edge of rotors. Similarly, mirroring is taken into account for compressor stators and turbine rotors.

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: i

Quasinormal index

integer, intent(in) :: j

Streamline index

Return Value real(kind=rkind)

Tangential velocity

public function mass_flow_rate(i) result(mdot)

Compute the mass flow rate through a quasinormal

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: i

Quasinormal index

Return Value real(kind=rkind)

Mass flow rate in (kg/s)


Subroutines

public subroutine init_flowfield(table)

Initialize the flow field structure and set all fields to zero

Arguments

Type IntentOptional Attributes Name
type(toml_table), intent(inout) :: table

public subroutine save_flowfield(filename)

Save the flow field to a Matlab/Octave compatible file

Read more…

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: filename

Name of the output file