Laserfiche WebLink
<br />f~' .-"'8 <br />ulhlJ(:J( <br /> <br />. <br /> <br />{ <br />if (!isValid(hydrolnflowSaltConc)) <br />hydrolnflowSaltConc = 0.0; <br /> <br />} <br />else <br />hydrolnflowSaltConc = 0.0; <br /> <br />II compute bank storage quality first because it's needed for <br />II reservoir content calculation <br /> <br />double inboundBS_SaltMass, outboundBS; <br /> <br />if (bankStorage == 0.0) <br />bankStorageSaltConc = 0.0; <br />else <br />bankStorageSaltConc = ((deltaBankStorage . reservoirSaltConc(-1)) <br />+ (bankStorage(-1) . bankStorageSaltConc(-1 ))) <br />I bankStorage; <br /> <br />II can probably dispense with use of following variables <br />II but have kept for now to be consistent with crss <br /> <br />. <br /> <br />if (deltaBankStorage < 0.0) <br />{ <br />inboundBS_SaltMass = deltaBankStorage . bankStorageSaltConc; <br />outboundBS = 0.0; <br />} <br />else <br />{ <br />inboundBS_SaltMass = 0.0; <br />outboundBS = deltaBankStorage; <br />} <br /> <br />II compute reservoir salt concentration <br /> <br />double in_vol, ouCvol, Un_vol, hy-vol, rf_vol, div_vol; <br />double weighting_factor = 1.0; <br /> <br />UnitConv 'unitConverter = PrsymSystem->getUnitConvO; <br />unitConverter->convert( totallnflows, 1.0, FLOW, <br />Un_vol, 1.0, VOLUME, getStepSeconds()); <br />unitConverter->convert( inflow, 1.0, FLOW, <br />in_vol, 1.0, VOLUME, getStepSeconds()); <br />unitConverter->convert( outflow, 1.0, FLOW, <br />ouCvol, 1.0, VOLUME, getStepSeconds()); <br />. unitConverter->convert( hydrologiclnflow, 1.0, FLOW, <br />