Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Draw mohr circle using C programming

  1. Sep 25, 2006 #1
    i'm facing problem in completing my assignment. actually i need to write a programme to calculate principal stress from 3 method..
    one of them is drawing mohr circle...
    but i dont even know how to draw a graphic using C programming..
    can anyone help me?
    it's really urgent...
    thanks

    (p/s:if need formula to draw, i can post t equations)
     
  2. jcsd
  3. Sep 25, 2006 #2

    radou

    User Avatar
    Homework Helper

    There are lots of online tutorials for C. Knowing the equations, this should not take too long to figure out.
     
  4. Sep 25, 2006 #3
    You need a graphics library. Your instructor almost certainly had one in mind, but if not try SDL.
     
  5. Sep 30, 2006 #4
    i'm now using open gl to draw the cirle...
    however i can't change t radius automatically
    according to formula..
    i have to change the value manually in worksheet...
    so how to change the radius automatically?
    plz help me..
    i hav to submit the assignment tommorrow..
    thanks
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?