title: Best way to store material properties in Python material calculator?
body: <p>I'm about to program a calculator for engineers that allows to calculate some structure's properties based on what material it is built of.</p>
  
  <p>I have a bunch of materials and each of them has the same set properties (strength, density etc.)</p>
  
  <p>The user will input some structure-specific properties (size, position etc.) and based on that and the materials properties, the calculator will output the structure's properties (eg. various stresses, pressures etc.)</p>
  
  <p>What is the best way to store the material properties? For now I think I will use a module with a bunch of classes in it:</p>
  
  <pre><code>class Concrete_1:
        strength=1
        hardness=1.5
  class Concrete_2:
        strength=3
        hardness=7
  </code></pre>
  
  <p>that way In all the calculations I can use simple way of referring to each material property, eg:</p>
  
  <pre><code>StructureProperty=properties.Concrete_1.strength*UserInput
  </code></pre>
  
  <p>Do you think it is a good way? I am not aiming for a masterpiece of code, but also I want to make sure that this is not a dumb idea. What are smart ways of dealing with such thing.</p>