Categories, AllPages, GoogleSearch, WikiSearch
News, About Us, Licensing, Downloads, Documentation, Forum, Bugs&Tasks, Publications, Links.
Admin Links


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 = rain5



 



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 rain3 >= 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.rain3



 

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

 

sample.accum.parameters



accum_variables = rain10, runoff5

 

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.inistandard

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.parsample



module = Screen  accum.parsample



 



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












Phone +61 7 4688 1596
Fax +61 7 4688 1193
Email apsim@dpi.qld.gov.au
Website www.apsim.info
Address 203 Tor Street
PO Box 102, Toowoomba
QLD 4350
The APSIM Initiative is an unincorporated joint venture between:
Commonwealth Scientific and Industrial Research Organisation (CSIRO) and
The State of Queensland through its,
Department of Employment, Economic Development and Innovation (DEEDI);
The University of Queensland (UQ);

ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam.