It has long been a Catholic understanding that when circumstances prevent one from receiving Holy Communion, it is possible to make an Act of Spiritual Communion, where we unite ourselves to God through prayer. It is a beautiful way to express to God our desire to be united with him when we are unable to complete that union in the reception of Holy Communion.
Spiritual Communion Prayer
My Jesus, I believe that you are present in the Most Holy Sacrament.
I love you above all things and I desire to receive you in my soul.
Since I cannot at this moment receive you sacramentally,
Come at least spiritually into my heart.
I embrace you as if you were already there
And unite myself wholly to you.
Never permit me to be separated from you.