Plasma heating and current drive: numerical methods