Difference between revisions of "MemEOL"

From Desal Wiki
Line 33: Line 33:
 
    "5":[0.04]
 
    "5":[0.04]
 
};
 
};
 +
 +
    var CONST_LANDFILL = 'landfill';
 +
    var CONST_INCINERATION = 'incineration';
 +
    var CONST_SYNGAS = 'syngas';
 +
    var CONST_EAF = 'eaf';
 +
    var CONST_MAT_RECYCLE = 'material_recycling';
 +
    var CONST_CONV_TO_UF = 'conversion_to_uf';
 +
    var CONST_REUSE_RO = 'reuse_as_ro';
  
 
//create value from each iteration
 
//create value from each iteration
Line 85: Line 93:
 
             switch (i) {
 
             switch (i) {
 
                 case 0:
 
                 case 0:
                     name = "landfill";
+
                     name = CONST_LANDFILL;
 
                     break;
 
                     break;
 
                 case 1:
 
                 case 1:
                     name = "incineration";
+
                     name = CONST_INCINERATION;
 
                     break;
 
                     break;
 
                 case 2:
 
                 case 2:
                     name = "syngas";
+
                     name = CONST_SYNGAS;
 
                     break;
 
                     break;
 
                 case 3:
 
                 case 3:
                     name = "eaf";
+
                     name = CONST_EAF;
 
                     break;
 
                     break;
 
                 case 4:
 
                 case 4:
                     name = "material_recycling";
+
                     name = CONST_MAT_RECYCLE;
 
                     break;
 
                     break;
 
                 case 5:
 
                 case 5:
                     name = "conversion_to_uf";
+
                     name = CONST_CONV_TO_UF;
 
                     break;
 
                     break;
 
                 case 6:
 
                 case 6:
                     name = "reuse_as_ro";
+
                     name = CONST_REUSE_RO;
 
                     break;
 
                     break;
 
                 default:
 
                 default:
 
                     name = "";
 
                     name = "";
                     console.log('Error in switch statement. Criteria does not exist.');
+
                     console.log('Error in switch statement. Criterion does not exist.');
                     throw new Error('Error in switch statement. Criteria does not exist.');
+
                     throw new Error('Error in switch statement. Criterion does not exist.'); //break the script
 
             }
 
             }
 
             scoreObject[name]=scores[i];
 
             scoreObject[name]=scores[i];
Line 115: Line 123:
 
         return scoreObject;
 
         return scoreObject;
 
         //now that we can access the scores by name we can make the additonal calculations for reuse as RO and conversion to UF
 
         //now that we can access the scores by name we can make the additonal calculations for reuse as RO and conversion to UF
 +
    }
 +
 +
    function conversionToUFCalc(UFscore, damage){
 +
        if(scoreObject.hasOwnProperty(CONST_CONV_TO_UF)){
 +
            if(damage === 1){
 +
                UFscore = 0;
 +
            }
 +
        }
 +
        return UFscore;
 
     }
 
     }
  
Line 126: Line 143:
 
function getPhysicalDamage(){
 
function getPhysicalDamage(){
 
var result = $('input[name="damagedMembranes"]:checked').val();
 
var result = $('input[name="damagedMembranes"]:checked').val();
return result; //damagedMembranesYes damagedMembranesNo
+
        //damagedMembranesYes damagedMembranesNo
 +
        if(result === 'damagedMembranesYes'){
 +
            return 1;
 +
        } else {
 +
            return 0;
 +
        }
 
}
 
}
  
Line 157: Line 179:
 
                     }
 
                     }
 
                 }
 
                 }
 
+
                scoreObject[CONST_CONV_TO_UF] = conversionToUFCalc(scoreObject[CONST_CONV_TO_UF], getPhysicalDamage());
 
+
                for (var property in scoreObject) {
 +
                    if (scoreObject.hasOwnProperty(property)) {
 +
                        console.log(scoreObject[property]);
 +
                    }
 +
                }           
  
 
       });
 
       });

Revision as of 06:37, 9 December 2014

Introduction text

Do you suspect there is any physical damage to the membranes that would prevent them from being reused?

What is the tested permeability of your membranes (LMH/bar)?

What is the tested NaCl rejection of your membranes? (% NaCl rejection)


Please order the following criteria in the order of importance for your project (drag and drop):

  • Financial
  • Effort required
  • Environmental impact
  • Landfill impact
  • Public perception
Most important Least important