WAVEWATCH III  beta 0.0.1
m_constants Module Reference

Module for m_constants. More...

Functions/Subroutines

subroutine init_constants
 Subroutine init_constants sets constant values. More...
 

Variables

real grav
 gravitational acceleration More...
 
real sqrtg
 square root of grav More...
 
real gsq
 square of grav More...
 
real nu
 kinematic viscosity of water More...
 
real d_water
 density of water More...
 
real d_air
 density of air More...
 
real pi
 circular constant, 3.1415... More...
 
real pi2
 2*pi More...
 
real pih
 pi/2 More...
 
real dera
 conversion from degrees to radians More...
 
real rade
 conversion from radians to degrees More...
 
real expmin
 min argument for exp. More...
 
real expmax
 max argument for exp. More...
 
real sqrt2
 square root of 2 ~ 1.41 More...
 

Detailed Description

Module for m_constants.

Author
N/A
Date
N/A

Function/Subroutine Documentation

◆ init_constants()

subroutine m_constants::init_constants

Subroutine init_constants sets constant values.

Author
N/A
Date
N/A

Definition at line 49 of file mod_constants.f90.

49 !------------------------------------------------------------------------------
50 !
51 pi = 4.*atan(1.)
52 pi2 = 2.*pi
53 pih = 0.5*pi
54 dera = pi/180.
55 rade = 180./pi
56 !
57 expmin = -20.
58 expmax = 20.
59 !
60 ! physical constants
61 !
62 grav = 9.81
63 sqrtg = sqrt(grav)
64 gsq = grav*grav
65 nu = 1.e-6
66 d_air = 1.2
67 d_water = 1027
68 !

References d_air, d_water, dera, expmax, expmin, grav, gsq, nu, pi, pi2, pih, rade, and sqrtg.

Referenced by w3snl2md::insnl2().

Variable Documentation

◆ d_air

real m_constants::d_air

density of air

Definition at line 25 of file mod_constants.f90.

25 real d_air

Referenced by init_constants().

◆ d_water

real m_constants::d_water

density of water

Definition at line 24 of file mod_constants.f90.

24 real d_water

Referenced by init_constants().

◆ dera

real m_constants::dera

conversion from degrees to radians

Definition at line 32 of file mod_constants.f90.

32 real dera

Referenced by init_constants(), m_xnldata::q_init(), and m_xnldata::q_makegrid().

◆ expmax

real m_constants::expmax

max argument for exp.

function to avoid overflow

Definition at line 35 of file mod_constants.f90.

35 real expmax

Referenced by init_constants().

◆ expmin

real m_constants::expmin

min argument for exp.

function to avoid underflow

Definition at line 34 of file mod_constants.f90.

34 real expmin

Referenced by init_constants().

◆ grav

real m_constants::grav

gravitational acceleration

Definition at line 19 of file mod_constants.f90.

19 real grav

Referenced by init_constants().

◆ gsq

real m_constants::gsq

square of grav

Definition at line 21 of file mod_constants.f90.

21 real gsq

Referenced by init_constants().

◆ nu

real m_constants::nu

kinematic viscosity of water

Definition at line 22 of file mod_constants.f90.

22 real nu

Referenced by init_constants().

◆ pi

real m_constants::pi

circular constant, 3.1415...

Definition at line 29 of file mod_constants.f90.

29 real pi

Referenced by init_constants(), m_xnldata::q_cmplocus(), m_xnldata::q_init(), m_xnldata::q_locpos(), and m_xnldata::xnl_init().

◆ pi2

real m_constants::pi2

2*pi

Definition at line 30 of file mod_constants.f90.

30 real pi2

Referenced by init_constants().

◆ pih

real m_constants::pih

pi/2

Definition at line 31 of file mod_constants.f90.

31 real pih

Referenced by init_constants().

◆ rade

real m_constants::rade

conversion from radians to degrees

Definition at line 33 of file mod_constants.f90.

33 real rade

Referenced by init_constants(), and m_xnldata::q_modify().

◆ sqrt2

real m_constants::sqrt2

square root of 2 ~ 1.41

Definition at line 36 of file mod_constants.f90.

36 real sqrt2

◆ sqrtg

real m_constants::sqrtg

square root of grav

Definition at line 20 of file mod_constants.f90.

20 real sqrtg

Referenced by init_constants(), m_xnldata::q_locpos(), m_xnldata::x_flocus(), m_xnldata::x_locus1(), and m_xnldata::x_locus2().