Exchange bias of patterned systems: Model and numerical simulation