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...

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


    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 http://www.libsdl.org/index.php" [Broken].
    Last edited by a moderator: May 2, 2017
  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..
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook