K.H.
My first question is did she know you were splitting up for those 3 years and lived with the two of you in that time? If so, she's got a lot of baggage she needs to unload. Talk to your ex and see if there is someone your daughter can talk things out with. Not him and not you. My first step would be the school psychologist. The three of you could meet together and then she can go on her own.
If she didn't know you were splitting up for those 3 years and then you waited until after the exams to spring it on her, I'd say that wasn't your best option. Depending on the way she found out, she may feel the whole thing is your fault and as a result is punishing you by excluding you.
The other thing is, what is your ex saying about you to her? Hopefully he's an honest person and accepts half the blame for the break-up. If this is the case, at some point she will come to you. You're only job in this case is to keep the door open, and to make sure she knows it is. How to do this? I'd make sure there's a card in the mail for every holiday. I'd be there for every sporting event or other performance. I'd make sure she knows that your are also there financially for her when she needs it for prom, camp, college or setting up her first apartment, etc. Don't push money on her because that will get misconstrued. But as long as she knows you still take your parenting responsibility seriously, that's enough. She will come to you when she's ready.
K.