function handles=ddb_initializeXBeachInput(handles,id,runid,varargin)
% Initialization function for DelftDashboard-XBeach
% This function is generated automatically by ddb_xbeachsource2XML_v2
% Last update was on 14-Nov-2013 09:29:57
% Do not edit this file manually !
% Change generation in ddb_xbeachsource2XML_v2

% pick up defaults from autogen subfunction
par=getdefaultpars;
handles.model.xbeach.domain(id).grid=[];
handles.model.xbeach.domain(id).description={''};
handles.model.xbeach.domain(id).runid=runid;
handles.model.xbeach.domain(id).attname=handles.model.xbeach.domain(id).runid;
handles.model.xbeach.domain(id).ItDate=floor(now);
handles.model.xbeach.domain(id).StartTime=floor(now);
handles.model.xbeach.domain(id).StopTime=floor(now)+2;
handles.model.xbeach.domain(id).TimeStep=1;
handles.model.xbeach.domain(id).swave=1;
handles.model.xbeach.domain(id).lwave=1;
handles.model.xbeach.domain(id).flow=1;
handles.model.xbeach.domain(id).sedtrans=1;
handles.model.xbeach.domain(id).morphology=1;
handles.model.xbeach.domain(id).avalanching= par.morphology;
handles.model.xbeach.domain(id).nonh=0;
handles.model.xbeach.domain(id).gwflow=0;
handles.model.xbeach.domain(id).q3d=0;
handles.model.xbeach.domain(id).swrunup=0;
handles.model.xbeach.domain(id).ships=0;
handles.model.xbeach.domain(id).vegetation=0;
handles.model.xbeach.domain(id).snells=0;
handles.model.xbeach.domain(id).depfile= 'file';
handles.model.xbeach.domain(id).posdwn=1;
handles.model.xbeach.domain(id).nx=50;
handles.model.xbeach.domain(id).ny=2;
handles.model.xbeach.domain(id).alfa=0;
handles.model.xbeach.domain(id).vardx=0;
handles.model.xbeach.domain(id).dx=-1;
handles.model.xbeach.domain(id).dy=-1;
handles.model.xbeach.domain(id).xfile= 'file';
handles.model.xbeach.domain(id).yfile= 'file';
handles.model.xbeach.domain(id).xori=0;
handles.model.xbeach.domain(id).yori=0;
handles.model.xbeach.domain(id).thetamin=-90;
handles.model.xbeach.domain(id).thetamax=90;
handles.model.xbeach.domain(id).dtheta=0;
handles.model.xbeach.domain(id).thetanaut=0;
handles.model.xbeach.domain(id).gridform= 'xbeach';
handles.model.xbeach.domain(id).xyfile= 'file';
handles.model.xbeach.domain(id).tstop=2000;
handles.model.xbeach.domain(id).CFL=0.7;
handles.model.xbeach.domain(id).g=9.81;
handles.model.xbeach.domain(id).rho=1025;
handles.model.xbeach.domain(id).depthscale=1;
handles.model.xbeach.domain(id).zs0=0;
handles.model.xbeach.domain(id).zsinitfile= 'file';
handles.model.xbeach.domain(id).hotstartflow=0;
handles.model.xbeach.domain(id).instat= 'bichrom';
handles.model.xbeach.domain(id).taper=100;
handles.model.xbeach.domain(id).Hrms=1;
handles.model.xbeach.domain(id).Tm01=10;
handles.model.xbeach.domain(id).Trep= par.Tm01;
handles.model.xbeach.domain(id).Tlong=80;
handles.model.xbeach.domain(id).dir0=270;
handles.model.xbeach.domain(id).nmax=0.8;
handles.model.xbeach.domain(id).m=10;
handles.model.xbeach.domain(id).leftwave= 'neumann';
handles.model.xbeach.domain(id).rightwave= 'neumann';
handles.model.xbeach.domain(id).bcfile= 'file';
handles.model.xbeach.domain(id).random=1;
handles.model.xbeach.domain(id).fcutoff=0;
handles.model.xbeach.domain(id).nspr=0;
handles.model.xbeach.domain(id).trepfac=0.01;
handles.model.xbeach.domain(id).sprdthr=0;
handles.model.xbeach.domain(id).oldwbc=0;
handles.model.xbeach.domain(id).correctHm0=1;
handles.model.xbeach.domain(id).oldnyq=0;
handles.model.xbeach.domain(id).Tm01switch=0;
handles.model.xbeach.domain(id).rt= 'file';
handles.model.xbeach.domain(id).dtbc=1;
handles.model.xbeach.domain(id).dtheta_s=0;
handles.model.xbeach.domain(id).nspectrumloc=1;
handles.model.xbeach.domain(id).wbcversion=2;
handles.model.xbeach.domain(id).nonhspectrum= par.nonh;
handles.model.xbeach.domain(id).front= 'abs_2d';
handles.model.xbeach.domain(id).left= 'neumann';
handles.model.xbeach.domain(id).right= 'neumann';
handles.model.xbeach.domain(id).back= 'abs_2d';
handles.model.xbeach.domain(id).ARC=1;
handles.model.xbeach.domain(id).order=2;
handles.model.xbeach.domain(id).freewave= par.carspan;
handles.model.xbeach.domain(id).carspan=0;
handles.model.xbeach.domain(id).epsi=0;
handles.model.xbeach.domain(id).nc= par.ny+1;
handles.model.xbeach.domain(id).tidetype= 'velocity';
handles.model.xbeach.domain(id).zs0file= 'file';
handles.model.xbeach.domain(id).tideloc=0;
handles.model.xbeach.domain(id).paulrevere= 'land';
handles.model.xbeach.domain(id).ndischarge= par.ndischarge;
handles.model.xbeach.domain(id).ntdischarge= par.ntdischarge;
handles.model.xbeach.domain(id).disch_loc_file= 'file';
handles.model.xbeach.domain(id).disch_timeseries_file= 'file';
handles.model.xbeach.domain(id).break= 'baldock';
handles.model.xbeach.domain(id).gamma=0.55;
handles.model.xbeach.domain(id).gamma2=0.3;
handles.model.xbeach.domain(id).alpha=1;
handles.model.xbeach.domain(id).n=10;
handles.model.xbeach.domain(id).gammax=2;
handles.model.xbeach.domain(id).delta=0;
handles.model.xbeach.domain(id).fw=0;
handles.model.xbeach.domain(id).fwcutoff=1000;
handles.model.xbeach.domain(id).breakerdelay=1;
handles.model.xbeach.domain(id).shoaldelay=0;
handles.model.xbeach.domain(id).facsd=1;
handles.model.xbeach.domain(id).facrun=1;
handles.model.xbeach.domain(id).roller=1;
handles.model.xbeach.domain(id).beta=0.1;
handles.model.xbeach.domain(id).rfb=0;
handles.model.xbeach.domain(id).wci=0;
handles.model.xbeach.domain(id).hwci=0.1;
handles.model.xbeach.domain(id).cats=4;
handles.model.xbeach.domain(id).bedfriction= 'chezy';
handles.model.xbeach.domain(id).bedfricfile= 'file';
handles.model.xbeach.domain(id).C=55;
handles.model.xbeach.domain(id).cf=0.003;
handles.model.xbeach.domain(id).nuh=0.1;
handles.model.xbeach.domain(id).nuhfac=1;
handles.model.xbeach.domain(id).nuhv=1;
handles.model.xbeach.domain(id).smag=1;
handles.model.xbeach.domain(id).wearth=0.041667;
handles.model.xbeach.domain(id).lat=0;
handles.model.xbeach.domain(id).rhoa=1.25;
handles.model.xbeach.domain(id).Cd=0.002;
handles.model.xbeach.domain(id).windv=0;
handles.model.xbeach.domain(id).windth=270;
handles.model.xbeach.domain(id).windfile= 'file';
handles.model.xbeach.domain(id).kx=0.0001;
handles.model.xbeach.domain(id).ky= par.kx;
handles.model.xbeach.domain(id).kz= par.kx;
handles.model.xbeach.domain(id).dwetlayer=0.1;
handles.model.xbeach.domain(id).aquiferbot=-10;
handles.model.xbeach.domain(id).aquiferbotfile= 'file';
handles.model.xbeach.domain(id).gw0=0;
handles.model.xbeach.domain(id).gw0file= 'file';
handles.model.xbeach.domain(id).gwnonh=0;
handles.model.xbeach.domain(id).gwfastsolve=0;
handles.model.xbeach.domain(id).gwscheme= 'laminar';
handles.model.xbeach.domain(id).gwReturb=100;
handles.model.xbeach.domain(id).gwheadmodel= 'parabolic';
handles.model.xbeach.domain(id).gwhorinfil=0;
handles.model.xbeach.domain(id).vonkar=0.4;
handles.model.xbeach.domain(id).vicmol=1e-06;
handles.model.xbeach.domain(id).kmax=1;
handles.model.xbeach.domain(id).sigfac=1.3;
handles.model.xbeach.domain(id).solver= 'sip';
handles.model.xbeach.domain(id).solver_maxit=30;
handles.model.xbeach.domain(id).solver_acc=0.005;
handles.model.xbeach.domain(id).solver_urelax=0.92;
handles.model.xbeach.domain(id).kdmin=0;
handles.model.xbeach.domain(id).dispc=1;
handles.model.xbeach.domain(id).Topt=10;
handles.model.xbeach.domain(id).nhbreaker=0;
handles.model.xbeach.domain(id).breakviscfac=1.5;
handles.model.xbeach.domain(id).maxbrsteep=0.6;
handles.model.xbeach.domain(id).secbrsteep= 0.5d0*par.maxbrsteep;
handles.model.xbeach.domain(id).reformsteep= 0.25d0*par.maxbrsteep;
handles.model.xbeach.domain(id).breakvisclen=1;
handles.model.xbeach.domain(id).rhos=2650;
handles.model.xbeach.domain(id).ngd=1;
handles.model.xbeach.domain(id).nd=3;
handles.model.xbeach.domain(id).dzg1=0.1;
handles.model.xbeach.domain(id).dzg2= par.dzg1;
handles.model.xbeach.domain(id).dzg3= par.dzg1;
handles.model.xbeach.domain(id).por=0.4;
handles.model.xbeach.domain(id).D50=0.0002;
handles.model.xbeach.domain(id).D90=0.0003;
handles.model.xbeach.domain(id).sedcal=1;
handles.model.xbeach.domain(id).ucrcal=1;
handles.model.xbeach.domain(id).waveform= 'vanthiel';
handles.model.xbeach.domain(id).form= 'vanthiel_vanrijn';
handles.model.xbeach.domain(id).sws=1;
handles.model.xbeach.domain(id).lws=1;
handles.model.xbeach.domain(id).BRfac=1;
handles.model.xbeach.domain(id).facsl=1.6;
handles.model.xbeach.domain(id).z0=0.006;
handles.model.xbeach.domain(id).smax=-1;
handles.model.xbeach.domain(id).tsfac=0.1;
handles.model.xbeach.domain(id).facua=0.1;
handles.model.xbeach.domain(id).facSk= par.facua;
handles.model.xbeach.domain(id).facAs= par.facua;
handles.model.xbeach.domain(id).turbadv= 'none';
handles.model.xbeach.domain(id).turb= 'bore_averaged';
handles.model.xbeach.domain(id).Tbfac=1;
handles.model.xbeach.domain(id).Tsmin=0.5;
handles.model.xbeach.domain(id).lwt=0;
handles.model.xbeach.domain(id).betad=1;
handles.model.xbeach.domain(id).sus=1;
handles.model.xbeach.domain(id).bed=1;
handles.model.xbeach.domain(id).bulk=1;
handles.model.xbeach.domain(id).facDc=1;
handles.model.xbeach.domain(id).jetfac=0;
handles.model.xbeach.domain(id).morfac=1;
handles.model.xbeach.domain(id).morfacopt=1;
handles.model.xbeach.domain(id).morstart=120;
handles.model.xbeach.domain(id).morstop= par.tstop;
handles.model.xbeach.domain(id).wetslp=0.3;
handles.model.xbeach.domain(id).dryslp=1;
handles.model.xbeach.domain(id).hswitch=0.1;
handles.model.xbeach.domain(id).dzmax=0.05;
handles.model.xbeach.domain(id).struct=0;
handles.model.xbeach.domain(id).ne_layer= 'file';
handles.model.xbeach.domain(id).timings=1;
handles.model.xbeach.domain(id).tstart=1;
handles.model.xbeach.domain(id).tint=1;
handles.model.xbeach.domain(id).tintg= par.tint;
handles.model.xbeach.domain(id).tintp= par.tint;
handles.model.xbeach.domain(id).tintc= par.tint;
handles.model.xbeach.domain(id).tintm= par.tstop-par.tstart;
handles.model.xbeach.domain(id).tsglobal= 'file';
handles.model.xbeach.domain(id).tspoints= 'file';
handles.model.xbeach.domain(id).tscross= 'file';
handles.model.xbeach.domain(id).tsmean= 'file';
handles.model.xbeach.domain(id).nglobalvar=-1;
handles.model.xbeach.domain(id).nmeanvar=0;
handles.model.xbeach.domain(id).npointvar=0;
handles.model.xbeach.domain(id).npoints=0;
handles.model.xbeach.domain(id).nrugauge=0;
handles.model.xbeach.domain(id).rugdepth=0;
handles.model.xbeach.domain(id).ncross=0;
handles.model.xbeach.domain(id).outputformat= 'fortran';
handles.model.xbeach.domain(id).ncfilename= 'file';
handles.model.xbeach.domain(id).rotate=1;
handles.model.xbeach.domain(id).ndrifter= par.ndrifter;
handles.model.xbeach.domain(id).drifterfile= 'file';
handles.model.xbeach.domain(id).shipfile= 'file';
handles.model.xbeach.domain(id).vegiefile= 'file';
handles.model.xbeach.domain(id).vegiemapfile= 'file';
handles.model.xbeach.domain(id).scheme= 'upwind_2';
handles.model.xbeach.domain(id).wavint=60;
handles.model.xbeach.domain(id).maxerror=5e-05;
handles.model.xbeach.domain(id).maxiter=500;
handles.model.xbeach.domain(id).eps=0.005;
handles.model.xbeach.domain(id).eps_sd=0.5;
handles.model.xbeach.domain(id).umin=0;
handles.model.xbeach.domain(id).hmin=0.2;
handles.model.xbeach.domain(id).secorder=0;
handles.model.xbeach.domain(id).oldhu=0;
handles.model.xbeach.domain(id).thetanum=1;
handles.model.xbeach.domain(id).sourcesink=0;
handles.model.xbeach.domain(id).cmax=0.1;
handles.model.xbeach.domain(id).frac_dz=0.7;
handles.model.xbeach.domain(id).nd_var=2;
handles.model.xbeach.domain(id).split=1.01;
handles.model.xbeach.domain(id).merge=0.01;
handles.model.xbeach.domain(id).mpiboundary= 'auto';
handles.model.xbeach.domain(id).mmpi=2;
handles.model.xbeach.domain(id).nmpi=4;
handles.model.xbeach.domain(id).bchwiz=0;
handles.model.xbeach.domain(id).single_dir=0;
handles.model.xbeach.domain(id).cyclic=0;

function par=getdefaultpars
% Pick up defaults of base variables, used for defaults of other variables
% Some variables may occur more than once
% This function is generated automatically by ddb_xbeachsource2XML_v2
% Last update was on 14-Nov-2013 09:29:57
% Do not edit this file manually !
% Change generation in ddb_xbeachsource2XML_v2

par.morphology=1;
par.Tm01=10;
par.nonh=0;
par.carspan=0;
par.ny=2;
par.ndischarge=0;
par.ntdischarge=0;
par.kx=0.0001;
par.kx=0.0001;
par.maxbrsteep=0.6;
par.maxbrsteep=0.6;
par.dzg1=0.1;
par.dzg1=0.1;
par.facua=0.1;
par.facua=0.1;
par.tstop=2000;
par.tint=1;
par.tint=1;
par.tint=1;
par.tstop=2000;
par.tstart=1;
par.ndrifter=0;
