File failed to load: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/extensions/ams.js
ALMaSS  1.2 (after EcoStack, March 2024)
The Animal, Landscape and Man Simulation System
All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PollenNectar.cpp File Reference
#include <fstream>
#include "./Configurator.h"
#include "./MapErrorMsg.h"
#include "./ls.h"

Functions

PollenNectarDevelopmentDataCreatePollenNectarDevelopmentData ()
 

Variables

TTypesOfPopulation g_Species
 
CfgBool cfg_pollen_nectar_on
 Flag to determine whether nectar and pollen models are used - should be set to true for pollinator models! More...
 
static CfgStr l_map_tov_nectarpollen ("MAP_TOV_NECTARPOLLEN_FILE", CFG_CUSTOM, "tovALMaSSNectarPollenInput.txt")
 
static CfgStr l_map_nectarpollen ("MAP_NECTARPOLLEN_FILE", CFG_CUSTOM, "species_production_curves.csv")
 
static CfgStr l_flower_number_crops ("FLOWER_NUMBER_CROPS_FILE", CFG_CUSTOM, "crop_stacks.csv")
 
CfgArray_Double cfg_FloweringPeriodPhasesProportionArray ("FLOWERING_PERIOD_PHASES_PROPORTION_ARRAY", CFG_CUSTOM, 3, vector< double >{0.15, 0.7, 0.15})
 Vector to store the proportions for flowering period phases, for now there are three phases; beginning, complete, end. More...
 
CfgArray_Double cfg_FloweringPeriodPhasesLengthArray ("FLOWERING_PERIOD_PHASES_LENGTH_ARRAY", CFG_CUSTOM, 3, vector< double >{0.275, 0.45, 0.275})
 Vector to store the length proportion for flowering period phases. More...
 
CfgFloat cfg_GeneralMaxFloweringPeriod ("GENERAL_MAX_FLOWERING_PERIOD", CFG_CUSTOM, 60.0)
 The general max flowering period when there is no data in the input file. More...
 
CfgFloat cfg_GeneralColdWeatherAdjustFlower ("GENERAL_COLD_WEATHER_ADJUST_FLOWER", CFG_CUSTOM, 3)
 Adjust of the base development for colder weather in colder areas, for flower development in natural habitats. More...
 
CfgFloat cfg_GeneralColdWeatherThresholdFlower ("GENERAL_COLD_WEATHER_THRESHOLD_FLOWER", CFG_CUSTOM, 2800)
 The threshold of ending accumulated degrees for colder weather. More...
 
CfgFloat cfg_FlowerPollenNectarScaler {"FLOWER_POLLEN_NECTAR_SCALER", CFG_CUSTOM, 0.1}
 The scalear to reduce flower resource, default 1 which means no reduction. More...
 

Function Documentation

◆ CreatePollenNectarDevelopmentData()

PollenNectarDevelopmentData* CreatePollenNectarDevelopmentData ( )
295 {
296  if (g_nectarpollen == NULL)
297  {
299  }
300  return g_nectarpollen;
301 }

References g_nectarpollen.

Referenced by main().

Variable Documentation

◆ cfg_FloweringPeriodPhasesLengthArray

CfgArray_Double cfg_FloweringPeriodPhasesLengthArray("FLOWERING_PERIOD_PHASES_LENGTH_ARRAY", CFG_CUSTOM, 3, vector< double >{0.275, 0.45, 0.275})

◆ cfg_FloweringPeriodPhasesProportionArray

CfgArray_Double cfg_FloweringPeriodPhasesProportionArray("FLOWERING_PERIOD_PHASES_PROPORTION_ARRAY", CFG_CUSTOM, 3, vector< double >{0.15, 0.7, 0.15})

Vector to store the proportions for flowering period phases, for now there are three phases; beginning, complete, end.

Referenced by LE::CalculateFlowerResourceForCrop(), VegElement::DoDevelopment(), LE::SetPollenNectarType(), and PollenNectarDevelopmentCurveSet::UpdateFlowerResource().

◆ cfg_FlowerPollenNectarScaler

CfgFloat cfg_FlowerPollenNectarScaler {"FLOWER_POLLEN_NECTAR_SCALER", CFG_CUSTOM, 0.1}

The scalear to reduce flower resource, default 1 which means no reduction.

Referenced by PollenNectarDevelopmentData::PollenNectarDevelopmentData().

◆ cfg_GeneralColdWeatherAdjustFlower

CfgFloat cfg_GeneralColdWeatherAdjustFlower("GENERAL_COLD_WEATHER_ADJUST_FLOWER", CFG_CUSTOM, 3)

Adjust of the base development for colder weather in colder areas, for flower development in natural habitats.

Referenced by PollenNectarDevelopmentData::PollenNectarDevelopmentData().

◆ cfg_GeneralColdWeatherThresholdFlower

CfgFloat cfg_GeneralColdWeatherThresholdFlower("GENERAL_COLD_WEATHER_THRESHOLD_FLOWER", CFG_CUSTOM, 2800)

The threshold of ending accumulated degrees for colder weather.

◆ cfg_GeneralMaxFloweringPeriod

CfgFloat cfg_GeneralMaxFloweringPeriod("GENERAL_MAX_FLOWERING_PERIOD", CFG_CUSTOM, 60.0)

The general max flowering period when there is no data in the input file.

◆ cfg_pollen_nectar_on

CfgBool cfg_pollen_nectar_on

Flag to determine whether nectar and pollen models are used - should be set to true for pollinator models!

Referenced by PollenNectarDevelopmentData::PollenNectarDevelopmentData(), VegElement::RecalculateBugsNStuff(), VegElement::SetSpeciesFunction(), and VegElement::VegElement().

◆ g_Species

◆ l_flower_number_crops

CfgStr l_flower_number_crops("FLOWER_NUMBER_CROPS_FILE", CFG_CUSTOM, "crop_stacks.csv")
static

◆ l_map_nectarpollen

CfgStr l_map_nectarpollen("MAP_NECTARPOLLEN_FILE", CFG_CUSTOM, "species_production_curves.csv")
static

◆ l_map_tov_nectarpollen

CfgStr l_map_tov_nectarpollen("MAP_TOV_NECTARPOLLEN_FILE", CFG_CUSTOM, "tovALMaSSNectarPollenInput.txt")
static
g_nectarpollen
class PollenNectarDevelopmentData * g_nectarpollen
Definition: Plants.cpp:41
PollenNectarDevelopmentData
A class to manage a range of pollen and nectar development curves based on indexed rates.
Definition: PollenNectar.h:174