I don't think that this needs to live on the class, and if it does it doesn't need to be static.  Maybe I don't understand fluka enough, but this seems like it could be an argument that is passed into the write fluka member function. In any case it shouldn't be called `mat_id`.  That is a very generic name for something that is specific to fluka.