this.addScript(function addConstraints() {
material = this.get("material"),
structures = this.get("structures");
material.coefficients = {
Aluminium: 23.1 / 1000000,
material.coefficient = 1 / 1000000;
bbb.defaultSolvers = [new Relax()];
[F,C,L0,cm,inch,material,structures].each(function(ea){disconnectAll(ea); bbb.unconstrainAll(ea)});
[F,C,L0,cm,inch].each(function(ea) {
connect(ea, "savedTextString", ea, "value", function(v) { return Math.round(parseFloat(v) * 100) / 100 });
connect(ea, "value", ea, "textString", function(v) { return v + "" });
connect(material, "selection", material, "coefficient", function(v) { return this.sourceObj.coefficients[v] });
connect(structures, "selection", L0, "savedTextString", function(v) { return String(parseFloat(v)) * 100 });
C.value >= -273.15 && C.value <= Math.pow(2, 28)
F.value - 32 == 1.8 * C.value
inch.value * 2.54 == cm.value
cm.value == ro(L0.value) * ro(material.coefficient) * C.value + ro(L0.value)