Draw mohr circle using C programming

AI Thread Summary
The discussion revolves around a user struggling to complete an assignment that requires writing a program in C to calculate principal stress using three methods, including drawing Mohr's Circle. The user expresses urgency and a lack of knowledge in graphic programming with C. They seek assistance, particularly in automating the radius adjustment for the circle based on formulas, as they currently have to change it manually. Responses suggest utilizing online tutorials and graphics libraries, with a recommendation to use OpenGL for drawing the circle. The user is looking for guidance on how to implement automatic radius changes in their program before the assignment deadline.
jaymin
Messages
10
Reaction score
0
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 don't 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)
 
Technology news on Phys.org
jaymin said:
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 don't 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)

There are lots of online tutorials for C. Knowing the equations, this should not take too long to figure out.
 
You need a graphics library. Your instructor almost certainly had one in mind, but if not try http://www.libsdl.org/index.php" .
 
Last edited by a moderator:
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?
please help me..
i hav to submit the assignment tommorrow..
thanks
 
Thread 'Is this public key encryption?'
I've tried to intuit public key encryption but never quite managed. But this seems to wrap it up in a bow. This seems to be a very elegant way of transmitting a message publicly that only the sender and receiver can decipher. Is this how PKE works? No, it cant be. In the above case, the requester knows the target's "secret" key - because they have his ID, and therefore knows his birthdate.
Back
Top