
Set outflow data for a Simstrat-AED2 simulation directory
Source:R/set_simstrat_outflows.R
set_simstrat_outflows.RdThin, aeme-free wrapper around the internal outflow writer used by
build_aeme(). Writes a combined Qout.dat into path_simstrat. All
outflows are summed into a single series at a single representative
withdrawal elevation, matching make_wdr_simstrat()'s existing
behaviour.
Usage
set_simstrat_outflows(
path_simstrat,
outf,
heights_wdr,
surface_elev,
outf_factor = 1,
ref_year = NULL,
par_file = file.path(path_simstrat, "simstrat.par")
)Arguments
- path_simstrat
filepath; to Simstrat-AED2 directory
- outf
named list of data.frames, one per outflow, each with a
Datecolumn and aHYD_flowcolumn – seeadd_outflows()for the expected schema.- heights_wdr
named numeric vector; withdrawal elevation (m, absolute – the same datum as
hyps$elev/surface_elev) for each name inoutf.- surface_elev
numeric; the lake surface elevation (m) that this Simstrat-AED2 configuration was built with – the zero-point for
Bathymetry.dat/InitialConditions.dat/inflow-outflow depths (seemake_stg_simstrat()). Unlike GLM's nml, Simstrat's own files only store depths already relative to this elevation, so it cannot be recovered frompath_simstratalone and must be supplied.- outf_factor
numeric; scaling factor applied to all outflow flow rates. Default is
1.- ref_year
integer; Simstrat's
Simulation.Reference year. Defaults to the value already insimstrat.par.- par_file
filepath; path to the
simstrat.parfile to readuse_bgc/ref_yeardefaults from. Defaults tosimstrat.parinpath_simstrat.