libSUFR
a LIBrary of Some Useful Fortran Routines
Loading...
Searching...
No Matches
sufr_sports Module Reference

Procedures related to sports. More...

Functions/Subroutines

pure subroutine cycling_power (mass, slope, vair, vgr, pwr_mech, pwr_air, pwr_climb)
 Compute the power used for cycling. Add the three components to get the total power.
 
pure subroutine cycling_power_sp (mass, slope, vair, vgr, pwr_mech, pwr_air, pwr_climb)
 Compute the power used for cycling, single-precision wrapper for cycling_power.
 
subroutine heartrate2power (gender, age, mass, hr, power, dpower)
 Convert heart rate to body power + uncertainty.
 

Detailed Description

Procedures related to sports.

Function/Subroutine Documentation

◆ cycling_power()

pure subroutine sufr_sports::cycling_power ( real(double), intent(in) mass,
real(double), intent(in) slope,
real(double), intent(in) vair,
real(double), intent(in) vgr,
real(double), intent(out) pwr_mech,
real(double), intent(out) pwr_air,
real(double), intent(out) pwr_climb )

Compute the power used for cycling. Add the three components to get the total power.

Parameters
massMass of the rider + bike (kg)
slopeSlope of the road, fraction
vairAir speed of the rider (m/s)
vgrGround speed of the rider (m/s)
pwr_mechPower to overcome mechanical resistance (of a typical bike, W) (output)
pwr_airPower to overcome air resistance (W) (output)
pwr_climbPower to climb a given slope (W) (output)
See also

Definition at line 48 of file sports.f90.

References sufr_weather::air_density(), and sufr_kinds::double.

Referenced by cycling_power_sp().

Here is the call graph for this function:

◆ cycling_power_sp()

pure subroutine sufr_sports::cycling_power_sp ( real, intent(in) mass,
real, intent(in) slope,
real, intent(in) vair,
real, intent(in) vgr,
real, intent(out) pwr_mech,
real, intent(out) pwr_air,
real, intent(out) pwr_climb )

Compute the power used for cycling, single-precision wrapper for cycling_power.

Parameters
massMass of the rider + bike (kg)
slopeSlope of the road, fraction
vairAir speed of the rider (m/s)
vgrGround speed of the rider (m/s)
pwr_mechPower to overcome mechanical resistance (of a typical bike, W) (output)
pwr_airPower to overcome air resistance (W) (output)
pwr_climbPower to climb a given slope (W) (output)
See also

Definition at line 98 of file sports.f90.

References cycling_power(), and sufr_kinds::double.

Here is the call graph for this function:

◆ heartrate2power()

subroutine sufr_sports::heartrate2power ( character, intent(in) gender,
real(double), intent(in) age,
real(double), intent(in) mass,
real(double), intent(in) hr,
real(double), intent(out) power,
real(double), intent(out) dpower )

Convert heart rate to body power + uncertainty.

Parameters
genderAthlete's gender: f(emale) or m(ale)
ageAthlete's age (years)
massAthlete's body mass (kg)
HRHeart rate (beats per minute)
powerBody power (W) (output)
dpowerUncertainty in body power (W) (output)
See also
Keytel et al., Prediction of energy expenditure from heart rate monitoring during submaximal exercise, JSS 23:3, 289 (2005)

Definition at line 134 of file sports.f90.

References sufr_kinds::double, and sufr_system::quit_program_error().

Here is the call graph for this function: