The APSIM Accum Module (ACCUM)

 

Operation

 

The APSIM accum module enables a user to accumulate values for variables over a period of days so that they may be used for management or reporting actions.

Any variable from a module included in a simulation can be accumulated over a defined period of time.

 

Parameter file settings

 

The APSIM Accum Module requires parameters to specify the variables that are to be accumulated;

 

[sample.accum.parameters]

accum_variables = rain[5]

 

This will initialize the variable to accumulate the rain variable over a five day period. The number that can be used is arbitrary, however it can have a maximum value of 366 and a minimum of 1. This variable can then be used in management logic or be reported. Below is one example of how the accumulated variable may be used in APSIM.

 

[sample.manager.start_of_day]

if date_within(‘1-may,30-jun’) = 1 and rain[3] >= 20 then

      wheat sow cultivar = hartog, plants = 121.61,

     sowing_depth = 30 (mm)

endif

 

[sample.report.parameters]

variable = clock.day

variable = clock.year

variable = accum.rain[3]

 

To specify multiple variables to be used for the accum module the parameter setting may look like this;

 

[sample.accum.parameters]

accum_variables = rain[10], runoff[5]

 

Control file settings

 

An example control file for the above parameter settings may look like this;

 

[APSIM.treatment1]

module = clock    accum.par [sample]  

%apsuite\apsim\clock\clock.ini[standard]

module = report   accum.par [sample]

module = input(met)     

%apsuite\apsim\met\SAMPLE\DALBY.MET [weather]

module = accum    accum.par [sample]

module = manager  accum.par [sample]

module = SummaryFile  accum.par[sample]

module = Screen  accum.par[sample]

 

For a working sample of the Accum module look to the sample provided in the sample directory under Accum.