Ultrasound with Doppler imaging (ultrasound plus evaluation of blood flow in the arteries and veins) can provide additional information about blood flow of the penis and may help in the evaluation of patients prior to surgical intervention. This study is typically performed after the injection of a chemical that causes the arteries to open up, a vasodilator (prostaglandin E1), into the corpora cavernosa in order to cause dilation of blood vessels and promote blood flow into the penis. The rate of blood flow into the penis can be measured along with an evaluation of problems with compression of the veins.
When stimulated by the nerves, the spongy tissue arranges itself in such a way that more blood can be stored in the penis. The veins running through the outer sheath of the penis then compress which stops the blood from leaving the penis. As the blood is stopped from flowing out, the penis fills with blood and stretches within the outer casing, giving an erection.
Besides treating the underlying causes such as potassium deficiency or arsenic contamination of drinking water, the first line treatment of erectile dysfunction consists of a trial of PDE5 inhibitor (such as sildenafil). In some cases, treatment can involve prostaglandin tablets in the urethra, injections into the penis, a penile prosthesis, a penis pump or vascular reconstructive surgery.
Concerns that use of pornography can cause erectile dysfunction have not been substantiated in epidemiological studies according to a 2015 literature review. However, another review and case studies article maintains that use of pornography does indeed cause erectile dysfunction, and critiques the previously described literature review.
If you just got off solo, you might have to wait before you can hop into bed with your partner, says Dr. Brahmbhatt. It might have something to do with a spike in the hormone prolactin after you orgasm, according to a study published in the International Journal of Impotence Research. This hormone has been linked to difficulties maintaining an erection or even ejaculating.
For younger men, erection problems usually go hand-in-hand with anxiety. It goes something like this. He fancies you and wants to turn you on. But he’s also worried he might not get, or keep, his erection (particularly if he really likes you and/or if this has been a problem in past relationships). These worries mean that when you try and have sex he doesn’t get hard at all, or loses his erection when he tries to penetrate you.
Men who wear tight underwear may also experience the same problems. Because of the constriction, feeling may be lost, and even if unnoticed actively, the brain will notice. This is part of the complication with erectile dysfunction between the brain and the body. While you may be in the mood, if the proper electrical signals are not sent back and forth, nothing will happen.
Exercise and lifestyle modifications may improve erectile function. Weight loss may help by decreasing inflammation, increasing testosterone, and improving self-esteem. Patients should be educated to increase activity, reduce weight, and stop smoking, as these efforts can improve or restore erectile function in men without comorbidities. Precise glycemic control in diabetic patients and pharmacologic treatment of hypertension may be important in preventing or reducing sexual dysfunction. 
Several pathways have been described to explain how information travels from the hypothalamus to the sacral autonomic centers. One pathway travels from the dorsomedial hypothalamus through the dorsal and central gray matter, descends to the locus ceruleus, and projects ventrally in the mesencephalic reticular formation. Input from the brain is conveyed through the dorsal spinal columns to the thoracolumbar and sacral autonomic nuclei.
There are many effective treatments for impotence. The most popular is a class of drugs called phosphodiesterase type 5 (PDE5) inhibitors. These include sildenafil (Viagra), vardenafil (Levitra), tadalafil (Cialis) and avanafil (STENDRA). These drugs are taken in pill form. They work in most men. But they are less effective in men with neurological causes of impotence.
A meta-analysis of 36 744 men with ED in 12 prospective cohort studies found that the presence of ED significantly increased the risk of CVD, CAD, stroke and all-cause mortality, and the presence of ED was an independent risk factor for CVD. Ponholzer et al found that men with moderate to severe ED had a 65% increased relative risk for developing symptomatic CAD compared with men who did not have ED.26
Stiffy Solution: The good news is, almost all of these conditions can be successfully treated if you catch them early on. And since erectile problems may be the first side effect your dude has experienced, seeking medical treatment for his erectile problems may be the thing to get him into a doctor's office. So if your dude is a well-rested, non-drinking, non-smoking, paragon of relaxation who suddenly can't get wood, urge him to talk to his doctor — his misbehaving penis may actually be communicating something way more important than "Not tonight, honey."
As blood flows into the penis, the corpora cavernosa swell, and this swelling compresses the veins (blood vessels that drain the blood out of the penis) against the tunica albuginea. Compression of the veins prevents blood from leaving the penis. This creates a hard erection. When the amount of cGMP decreases by the action of a chemical called phosphodiesterase type 5 (PDE5), the muscles in the penis tighten, and the blood flow into the penis decreases. With less blood coming into the penis, the veins are not compressed, allowing blood to drain out of the penis, and the erection goes down.
The Latin term impotentia coeundi describes simple inability to insert the penis into the vagina; it is now mostly replaced by more precise terms, such as erectile dysfunction (ED). The study of erectile dysfunction within medicine is covered by andrology, a sub-field within urology. Research indicates that erectile dysfunction is common, and it is suggested that approximately 40% of males with erectile dysfunction or impotence, at least occasionally. The condition is also on occasion called phallic impotence. Its antonym or opposite condition is priapism.
In some cases, ED can be a warning sign of more serious disease. One study suggests ED is a strong predictor of heart attack, stroke, and death from cardiovascular disease. The researchers say all men diagnosed with ED should be evaluated for cardiovascular disease. This does not mean every man with ED will develop heart disease, or that every man with heart disease has ED, but patients should be aware of the link.