Skip to contents

Main simulation function that executes the complete FB4 model day by day. Handles different consumption methods and optional daily output. Performs basic validation of critical parameters.

Usage

run_fb4_simulation(
  consumption_method,
  processed_simulation_data,
  oxycal = 13560,
  output_daily = TRUE,
  verbose = FALSE
)

Arguments

consumption_method

List with method type and value

processed_simulation_data

Complete processed simulation data from prepare_simulation_data()

oxycal

Oxycalorific coefficient (J/g O2), default 13560

output_daily

Whether to save daily outputs, default TRUE

verbose

Whether to show progress messages, default FALSE

Value

List with simulation results