This is not a function that should be part of the Material class.  It is not a Material operation but is a Volume/Region operation.  By convention, it should be in a fluka.py or fluka.cpp.