Hi.
Thanks for your query, nicely put together.
Read and understood that you had morning erection, not touched due to religious reasons.
Then the right testicle started to turn, hurt and swollen.
This is most probably due to the
testicular torsion as the muscle of the lower abdominal wall must have gone into spam and caused this or can be due to obstruction to the outflow of the part of semen.
Then you had ejaculation, thick yellow semen came out in 3-4 times the quantity and the pain gone away.
I would advise you the following:
Immediate
ultrasonography and color doppler examination of the abdomen and
scrotum and to see where is the problems.get a diagnosis and get the proper treatment n the form of medicines and/or surgery depending upon the reports.
There may be associated
prostatitis.
Also get the tests of the blood, urine and semen. '