BioCro  0.92
 All Data Structures Files Functions Variables Typedefs Macros
assignManagement.c File Reference
#include <R.h>
#include <math.h>
#include <Rmath.h>
#include <Rinternals.h>
#include "crocent.h"
+ Include dependency graph for assignManagement.c:

Go to the source code of this file.

Functions

void assignManagement (struct management *management)
 
void updateafterharvest (struct miscanthus *miscanthus, struct management *management)
 
void updateafteremergence (struct miscanthus *miscanthus, struct management *management)
 

Function Documentation

void assignManagement ( struct management *  management)
8 {
9 management->harvestparms.harvestdoy=300;
10 management->harvestparms.frleaf=1.0;
11 management->harvestparms.frleaflitter=0.0;
12 management->harvestparms.frstem=1.0;
13 management->harvestparms.frstemlitter=0.0;
14 management->harvestparms.frdeadroot=0.0;
15 management->harvestparms.frdeadrhizome=0.0;
16 
17 management->emergenceparms.minimumdoy=90;
18 management->emergenceparms.emergenceTemp=6.0;
19 management->emergenceparms.StoragetoLeaffraction=0.02;
20 management->emergenceparms.StemtoLeaffraction=0.02;
21 management->emergenceparms.plantingrate=20;
22 return;
23 }
int minimumdoy
Definition: crocent.h:779
double StoragetoLeaffraction
Definition: crocent.h:781
double frstem
Definition: crocent.h:772
double frstemlitter
Definition: crocent.h:772
struct management::emergenceparms emergenceparms
double frdeadrhizome
Definition: crocent.h:774
double plantingrate
Definition: crocent.h:783
double frleaflitter
Definition: crocent.h:771
struct management::harvestparms harvestparms
double emergenceTemp
Definition: crocent.h:780
int harvestdoy
Definition: crocent.h:770
double StemtoLeaffraction
Definition: crocent.h:782
double frleaf
Definition: crocent.h:771
double frdeadroot
Definition: crocent.h:773
void updateafteremergence ( struct miscanthus *  miscanthus,
struct management *  management 
)
42 {
43  miscanthus->leaf.biomass=(management->emergenceparms.StoragetoLeaffraction)* miscanthus->rhizome.biomass;
44  miscanthus->rhizome.biomass= miscanthus->rhizome.biomass - miscanthus->leaf.biomass;
45  return;
46 }
double StoragetoLeaffraction
Definition: crocent.h:781
double biomass
Definition: crocent.h:642
struct management::emergenceparms emergenceparms
struct leaf leaf
Definition: crocent.h:677
double biomass
Definition: crocent.h:630
struct rhizome rhizome
Definition: crocent.h:679
void updateafterharvest ( struct miscanthus *  miscanthus,
struct management *  management 
)
26 {
27  miscanthus->leaf.biomass=(1-management->harvestparms.frleaf)*miscanthus->leaf.biomass;
28  miscanthus->leaf.litter=(1-management->harvestparms.frleaflitter)*miscanthus->leaf.litter;
29 
30  miscanthus->stem.biomass=(1-management->harvestparms.frstem)*miscanthus->stem.biomass;
31  miscanthus->stem.litter=(1-management->harvestparms.frstemlitter)*miscanthus->stem.litter;
32 
33  miscanthus->root.biomass=(1-management->harvestparms.frdeadroot)*miscanthus->root.biomass;
34  miscanthus->root.litter=management->harvestparms.frdeadroot*miscanthus->root.biomass;
35 
36  miscanthus->rhizome.biomass=(1-management->harvestparms.frdeadrhizome)*miscanthus->rhizome.biomass;
37  miscanthus->rhizome.litter=management->harvestparms.frdeadrhizome*miscanthus->rhizome.biomass;
38  return;
39 }
double frstem
Definition: crocent.h:772
double frstemlitter
Definition: crocent.h:772
double biomass
Definition: crocent.h:642
double litter
Definition: crocent.h:642
struct leaf leaf
Definition: crocent.h:677
double biomass
Definition: crocent.h:649
double litter
Definition: crocent.h:649
double frdeadrhizome
Definition: crocent.h:774
struct root root
Definition: crocent.h:680
double litter
Definition: crocent.h:630
double litter
Definition: crocent.h:636
double frleaflitter
Definition: crocent.h:771
struct management::harvestparms harvestparms
double biomass
Definition: crocent.h:630
struct rhizome rhizome
Definition: crocent.h:679
struct stem stem
Definition: crocent.h:678
double biomass
Definition: crocent.h:636
double frleaf
Definition: crocent.h:771
double frdeadroot
Definition: crocent.h:773