ALMaSS  1.2 (after EcoStack, March 2024)
The Animal, Landscape and Man Simulation System
PollenNectarData Class Reference

A data class to store nectar or pollen data. More...

#include <PollenNectar.h>

Public Member Functions

 PollenNectarData ()
 
 PollenNectarData (double a_quantity, double a_quality)
 
double GetNectarSugarConc ()
 Returns volume of sugar in volume of nectar (vol/vol). More...
 

Public Attributes

double m_quantity = 0.0
 
double m_quality = 0.0
 

Detailed Description

A data class to store nectar or pollen data.

Constructor & Destructor Documentation

◆ PollenNectarData() [1/2]

PollenNectarData::PollenNectarData ( )
282 {
283  m_quantity = 0;
284  m_quality = 0;
285 
286 }

References m_quality, and m_quantity.

◆ PollenNectarData() [2/2]

PollenNectarData::PollenNectarData ( double  a_quantity,
double  a_quality 
)
289 {
290  m_quantity = a_quantity;
291  m_quality = a_quality;
292 }

References m_quality, and m_quantity.

Member Function Documentation

◆ GetNectarSugarConc()

double PollenNectarData::GetNectarSugarConc ( )

Returns volume of sugar in volume of nectar (vol/vol).

Bumblebee nectar quality in vol/vol of sugar to nectar.

303  {
304 
305  if(m_quality == 0 || m_quantity == 0){
306  return 0.0;
307  }
308 
309  //water
310  double w_mg_per_m2 = m_quantity - m_quality;
311 
312  //Density of sucrose and waters
313  const double s_mg_per_ul = 1.587;
314  const double w_mg_per_ul = 0.997;
315 
316  double s_ul_per_m2 = m_quality / s_mg_per_ul;
317  double w_ul_per_m2 = w_mg_per_m2 / w_mg_per_ul;
318  //nectar
319  double n_ul_per_m2 = s_ul_per_m2 + w_ul_per_m2;
320 
322  double PercSugar = 2.0 * s_ul_per_m2 / n_ul_per_m2;
323  if(PercSugar > 1.0){
324  PercSugar = 1.0;
325  }
326 
327  //double PercSugar = 0.65;
328  return(PercSugar );
329 }

References m_quality, and m_quantity.

Member Data Documentation

◆ m_quality

◆ m_quantity


The documentation for this class was generated from the following files:
PollenNectarData::m_quantity
double m_quantity
Definition: PollenNectar.h:167
PollenNectarData::m_quality
double m_quality
Definition: PollenNectar.h:168