Skip to content

Farm and Weather#

This page gives the models of the farm: the crops, the soil water, the weather and the farm traffic.

Sources: Game/Source/Acres/AcresFarmModel.h (crops and soil water), AcresFarmRuntime.h (the runtime of the game), AcresEnvironmentModel.h (weather, sky and clock), AcresNpc.h (farm traffic). Parameters: Game/Content/Simulation/farm.json and environment.json.

Crops#

Each field has one crop: corn, soybean or potato. The crop map of the season is ACRE/crops_2026.json (-CropSeason=). Map/game_crops.py writes it from the 2026 crop map and the daily temperatures of the Purdue Mesonet station ACRE. A field with no confident crop call keeps its default crop. The crop grows with growing degree days:

Crop growth model: the weather gives the daily low and high temperature, the degree-days and the water stress give the degree-days of each field, the growth fraction sets the plant height, wheels, the vehicle body and the cutter set the sample bits of the crop patches, and the changes go into the totals and the event logs. Crop growth, crush and harvest Soil water field mean θ and pond Weather model day low and high, 10 s farm steps Degree-days modified method, base and cap Water stress factor 0 to 1, half when the field ponds Field degree-days one sum for each of the 59 fields Growth G sum / maturity, limits 0 and 1 height and harvest gate Crop patches 1.52 m × 1 m, 16 samples each Stamp samples in the footprint rectangle Sample masks crushed bits, harvested bits Totals crushed area, bunker mass Events farm-events.csv, episode log Wheels and body pressure above 10 kPa, plant above clearance Cutter mature crop only, bunker has room
The weather and the water stress give the degree days of each field. The wheels, the body and the cutter change the crop patches. Open the diagram
\[ \mathit{GDD}_{day} = \max\left(0,\ \frac{\min(T_{max}, T_{cap}) + \max(T_{min}, T_{base})}{2} - T_{base}\right) \]
\[ g = \operatorname{clamp}\left(\frac{\sum \mathit{GDD}}{\mathit{GDD}_{maturity}},\ 0,\ 1\right) \]

Source: DegreeDays and Growth in AcresFarmModel.cpp.

Crop \(T_{base}\) \(T_{cap}\) \(\mathit{GDD}_{maturity}\) Yield
Corn 10 °C 30 °C 1400 °C·day 1.1 kg/m²
Soybean 10 °C 30 °C 1100 °C·day 0.35 kg/m²
Potato 7 °C 29 °C 1300 °C·day 4.0 kg/m²

Source of the values: the block crops of farm.json.

The start growth is mature by default. -CropStage=date gives each field the degree days from its planting date to the session date. -FarmInitialGrowth=X gives a fixed growth. A wheel or the body of a vehicle crushes the crop that it passes over. The harvester header cuts it.

The marks of the farm (tillage, seeding, spraying, ruts and crop damage) stay from one episode to the next. The game saves them with the session (farm-*.json).

Soil Water#

Water balance of one 4 m grid cell: rain fills the pond, the pond infiltrates into the surface layer, the surface layer drains into the subsoil, the subsoil drains by deep percolation and tile drains, the pond flows to the neighbour cells, and the tyre-soil model reads the result. Water balance of one grid cell (4 m) Weather model rain rate, potential evaporation rain evaporation Pond h Surface layer, 0.3 m water content θ wetting front Subsoil, 1.2 m water content θ₂ infiltration redistribution above field capacity deep percolation, limit of the drainage class Neighbour pond Manning flow of the water above the detention depth Neighbour pond Free outflow at the grid edge Wheel stamp rut depth, compaction Compaction lowers Ks. Ruts add pond storage. soils.json SSURGO unit of the cell: Ks, ψ, θs, θfc, θwp snapshot Tyre-soil model θ, wetness and pond depth at each wheel contact Tile drain 9.525 mm/day, drained fields
Rain, infiltration, drainage, evaporation and overland flow of one grid cell. The tire-soil model reads the result. Open the diagram

The water model is WaterGrid: a 2D grid of two-layer soil columns of 4 m. The grid of the tile has 382 x 382 cells (ACRE/field-grid.json). The soil units come from SSURGO (ACRE/soil_units.u8, ACRE/soils.json).

Process Model
Layers A surface layer of 0.3 m over the subsoil to 1.5 m.
Infiltration Green-Ampt. Bare and row-crop cells infiltrate at most at a sealed rate (rain crust). Grass and woodland use the SSURGO rate.
Drainage Deep percolation with a cap from the drainage class. Tile drains at 9.525 mm/day on poorly and somewhat poorly drained cropped cells.
Evaporation 0.35 of the Priestley-Taylor potential evaporation (evaporation_factor).
Run-off Diffusive-wave overland flow, at most 1.5 m/s.
Wheels A fine sub-grid of 0.25 m in the cells that wheels crossed.

Source of the values: the block hydrology of farm.json. The game runs the water grid on the thread AcresWater. The start water is halfway between the wilting point and the field capacity (-FarmInitialTheta= changes it).

The wheels read the water of the grid. Thus rain makes the soil under a wheel wetter and softer.

In ACRES Core, the soil water of the tile comes from the condition set of the environment (Batch.set_conditions). The regional ground has soil-water columns only after Batch.set_weather.

Weather and Clock#

AcresEnv::Model turns a settings block into a state at each step. The state has the sun position, the irradiance, the air temperature, the dew point and the humidity. It also has the wind, the rain, the visibility, the evaporation and the water film on the surface.

Quantity Model
Sun position NOAA solar position
Clear-sky irradiance Haurwitz (1945)
Cloud transmission Kasten and Czeplak (1980)
Diurnal temperature Parton and Logan (1981)
Humidity Magnus (Alduchov and Eskridge 1996)
Evaporation Priestley-Taylor with FAO-56 constants
Visibility Koschmieder
Variability Ornstein-Uhlenbeck updates from a seeded SplitMix64 generator

The same seed and the same step sequence give the same weather. The site is at latitude 40.47° and longitude -86.9925° (environment.json). The default clock starts on the day of the computer's clock ("date": "today") at 10:00 local time. The UTC offset follows US Eastern time: -4 h in summer time, -5 h in winter. Set the weather with the -Env options (Game Command Line).

One step of the weather model: the clock, the rain schedule and the seeded generator drive eight calculations in a fixed sequence (sun, rain, clouds, irradiance, temperature and humidity, wind, fog and visibility, evaporation and surface film), the results go into one state snapshot, and the sky, the soil water, the crops, the sensors and the logs read the snapshot. One step of the weather model Drivers, from the settings Calculations, in this sequence Users of the state Clock start hour + scaled time Rain schedule window, total, manual rate Seeded generator SplitMix64, Box-Muller, 5 random processes Settings environment.json, then the -Env* options 1 Sun position NOAA series: elevation, azimuth, sunrise 2 Rain rate Beta(1.6, 3) storm shape, exact total 3 Clouds preset, convection, storm weight 4 Irradiance Haurwitz clear sky, cloud transmission 5 Temperature and humidity Parton-Logan curve, Magnus formula 6 Wind day mixing, gust front, log profile 7 Fog and visibility radiation fog, Koschmieder law 8 Evaporation and surface film Priestley-Taylor, 0.3 mm store State snapshot Sky and lights sun, exposure, clouds, fog, rain particles, work lights Soil water rain rate, evaporation, surface film Crops low and high temperature of the day Sensors LiDAR: rain and fog, cameras: the rendered sky Logs session log, episode log, HUD
The clock, the rain schedule and the seeded generator drive the calculations. The sky, the soil water, the crops and the sensors read the state. Open the diagram
  • With temperature.normals set to true, the low and the high of each day are the 1991-2020 normals of Lafayette (LAF). -EnvLowC= and -EnvHighC= set fixed values.
  • With utc_offset_h set to "us_eastern", the offset is -4 h from the second Sunday of March to the first Sunday of November, else -5 h.
  • A weather replay file is an environment file for one real day at ACRE. Data/Weather/ground_conditions.py writes them into Results/Weather/Replay/env_<date>.json from the record of the Mesonet station. A replay file does not set the soil water.
  • The deciduous trees follow the day of the year. Leaf-out is from 15 April to 10 May, fall color from 25 September to 25 October, leaf fall from 20 October to 15 November. These dates are assumed typical dates for central Indiana. The conifers keep their needles.

Snow and Ice#

-EnvSnow=MM and -EnvIce=MM put snow and glaze ice on the ground at the start (mm of water). -EnvFrozenSoil (or snow.frozen_soil in environment.json) makes the soil frozen for the session. The model has one snowpack for the site. The wheels of the game and of ACRES Core use one rule (AcresSim::ApplyWinter and PrepareWheel in Game/Source/Acres/AcresVehicleModel.cpp). Core gets the winter of an episode from set_winter (snow depth and density, ice share, frozen soil).

Process Model
Rain or snow Snow share \(s = 1 / (1 + \exp((T - 1.0)/0.5))\). The threshold 1.0 °C is from Jennings et al. (2018). The spread 0.5 °C is an assumption.
Snowpack New snow has the density of Hedstrom and Pomeroy (1998). The pack settles toward 300 kg/m³ (450 kg/m³ when it melts). It melts at 3 mm of water for each °C and day above 0 °C, plus the heat of rain.
Glaze ice Below 0 °C the surface film freezes. The ice share is \(\min(1, w_{ice}/0.5\ \text{mm})\).
Snow on each surface Asphalt, concrete and gravel roads and yards are plowed: a film of 2 mm stays (an assumption). Grass lanes and dirt tracks carry traffic: their snow is packed to the critical density 550 kg/m³ (CRREL Report 95-1: four passes in one track). Fields, grass and the regional ground keep the undisturbed pack.
Grip on snow CRREL Report 95-1 (Richmond, Shoop and Blaisdell 1995), gross traction over the load at the contact pressure \(p\) (kPa, 10 to 250): undisturbed snow \(0.851\,p^{-0.177}\) (eq 2), packed snow \(0.321\,p^{-0.03}\) (eq 12), undisturbed snow over ice \(0.127\,p^{0.06}\) (eq 11). The snow is the interface from 1 cm of depth. Below 1 cm the grip goes linearly from the ground's to the snow's (an assumption).
Grip on ice 0.1 on the share that the ice covers (CRREL 95-1 eq 13, and Wong 2008, Theory of Ground Vehicles, 4th ed., Table 1.2: ice, peak 0.1, sliding 0.07).
Resistance of snow Undisturbed snow, each wheel: \(R = 68.083\,(\rho_0\,b\,a)^{0.9135}\) N (CRREL 95-1 eq 3). \(\rho_0\) is in kg/m³, \(b\) is the tyre width and \(a\) the arc of the tyre in the snow, in m. Sinkage \(z = h\,(1 - \rho_0/\rho_f)\) (eq 4), \(\rho_f\) 500 kg/m³ up to 210 kPa, 550, 600 and 650 above 210, 350 and 700 kPa. \(a = r \arccos((r - z)/r)\) (eq 5). Packed snow and ice: no resistance (the report).
Frozen soil No sinkage and no ruts (CRREL 95-1: frozen soil has a rating cone index above 100). The grip of a dry earth road, 0.68 (Wong 2008, Table 1.2). The report says that few traction data exist for frozen ground and that it generally helps traction: the value is an assumption. The model has no frost depth and no thaw.

On 10 cm of settled snow (250 kg/m³) the Polaris has a rolling resistance of 0.24 of its weight (0.03 on dry gravel), and the Maxxum 0.18 (Results/Fast/winter_fit.json).

The fast simulator has no tires. vehicle.on_grip(params, surface, kind) gives each kind the limits of ACRES Core's tyres on "snow" (10 cm, 250 kg/m³), "packed" (the same at 550 kg/m³) and "ice". The limits are the net acceleration and deceleration, the snow's drag (it acts while the vehicle moves) and the lateral grip (a turn that asks more is driven wider). Fast/Tools/winter_fit.py measures them on Core and writes Results/Fast/winter_fit.json. vehicle.WINTER keeps the values.

Tests/Fast/agreement/test_winter.py compares 40 s drives. The fast simulator has no snowpack by place: a scene has one surface.

Farm Traffic#

-NpcVehicles adds pickups and tractors on the farm roads. -NpcWorkers adds workers who walk and scout the crops. -NpcTraffic=N sets the number of cars on US 52 (16 with -NpcVehicles).

  • The vehicles are kinematic. They move along planned paths with a simple bicycle model. They do not use the tractor physics. They affect the player only through their collision boxes.
  • A worker plays walk, idle and inspect animations. When the vehicle hits a worker faster than walking pace, the worker becomes a ragdoll, the HUD shows a banner and npc-events.csv gets the incident.
  • With a scenario file (-PathObjects=), the farm traffic is off.

A scenario puts actors (person, truck, tractor, car) on the route of a mission with a pattern: static, temporary, crossing, along, walk, stand, emerge, headland, back_out, lead or pull_out. Config/path_objects.json gives the distances, the speeds and the kinds of each pattern. acres_fleet.scenarios.generate(route, patterns, seed=...) makes a scenario, and the same seed gives the same actors. scenarios.save writes the file that the game reads with -PathObjects=. ACRES Core takes it with Skills.set_scenario.

Limits#

  • ACRES Core sets the crop growth when it loads the world. The crop does not grow during a Core episode. The game adds the degree days of each step during a session, with a water-stress factor.
  • The evaporation factor comes from a fit to one station under mown grass (Validation Results).
  • The default weather values are climate estimates for the middle of July, not station data.
  • The farm traffic does not sink, slip or use fuel.