Behavior of graphite under heat load and in contact with a hydrogen plasma