I am a final year PhD in mechanical engineering. I did average/below average in my core courses, during my undergraduate, and PhD coursework. My research area involves using finite element and volume methods to model material and fluid flow. I had got B-'s and C's in my mathematics, mechanics, numerical methods courses during my undergrad and grad school. I love the subjects, but I am not good at them. I decided to go for PhD in them because the research area fascinated me.
I really enjoyed working on my research during my PhD and was quite productive. My research was not mathematically intensive and focused more on developing optimization procedures while making use of existing numerical tools. My advisor, my committee think I did a fair job on the research projects I worked on.
However, since my goal eventually is to be in academia, I feel that my poor academic performance is an indicator of not pursuing a career in university academic environment. I am confident that I can do good independent research. And I like teaching, though, I did not get any opportunity to teach the core courses during my phd. I am worried that considering my poor background, I will fail to teach a core course when given the opportunity to do so.
Is it justified for me to think about a future in academia in a university setting?