Simulation of the d.c. critical current in superconducting sintered ceramics