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
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...
Back
Top