/// <summary> /// Adds possibility to write into a file /// </summary> /// <returns></returns> public override string Write() { string temp = "Material:NoMass,\n"; temp += Name + ",\n"; temp += Roughness + ",\n"; temp += ThermalAbsorptance.ToString(CultureInfo.InvariantCulture) + ",\n"; temp += SolarAbsorptance.ToString(CultureInfo.InvariantCulture) + ",\n"; temp += VisibleAbsorptance.ToString(CultureInfo.InvariantCulture) + ";\n\n"; return(temp); }
public override string Write() { var temp = "Material,\n"; temp += Name + ",\n"; temp += Roughness + ",\n"; temp += Thickness.ToString(CultureInfo.InvariantCulture) + ",\n"; temp += Conductivity.ToString(CultureInfo.InvariantCulture) + ",\n"; temp += Density.ToString(CultureInfo.InvariantCulture) + ",\n"; temp += SpecificHeat.ToString(CultureInfo.InvariantCulture) + ",\n"; temp += ThermalAbsorptance.ToString(CultureInfo.InvariantCulture) + ",\n"; temp += SolarAbsorptance.ToString(CultureInfo.InvariantCulture) + ",\n"; temp += VisibleAbsorptance.ToString(CultureInfo.InvariantCulture) + ";\n\n"; return(temp); }