Minor loss coefficient question

HEY I'm designing chilled water cooling system with closed loop its huge and I'm phasing some Difficulties I don't know if watercad  can handle it but I'm trying any way,  the minor loss coefficient was derived from which equation? and how should I deal with it for valves and pipes??? any help please