% Drinking water exposure 
% Youth, Body weight set to 67.3 kg
% Dose to reach average blood cpfos conc = 0.004 ug/L
% Cecilia Tan
% August 3, 2016

% Setting model parameters
use human_parameters_MRP
use preg_female_parameters
BWSW=1;		% Set BW to a fixed value
BWST=67.3;	 % Set BW 
PREG=0;		% Not pregnant
TSTOP=504;	%Simulation time = 21 days 

%21-day exposure
VOLUME=1.71062       % Water consumption volume in L/DAY
EVENTS=4             % Drinking frequency per day
DT = xlsRead("Drinkingwater.xls", "youth", "A2:A86") ; % Dosing Times
AMTCDOSE=xlsRead("Drinkingwater.xls", "youth", "F2:F86")*VOLUME/EVENTS; % Dose in ug/l 

prepare time rbcce
start@nocallback

prepare @clear@all
start @NoCallback
simall = [_time _rbcce _urinetcpy _cv*350.6 _cvo*334.5 _blauc*350.6 _blauco*334.5 _blaucavg*350.6 _blaucoavg*334.5];	%conc unit = ug/L

save simall @file='water_youth_cc' @format=ascii