I need books and software for design a primary and secondary settling tank (decanter).

Please help.

My secondary settling tank:
IN - Water
OUT: clean water and sludge

Can anybody tell me a software name and ebooks about that.

Thanks.