Draw mohr circle using C programming

Click For 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
 
Learn If you want to write code for Python Machine learning, AI Statistics/data analysis Scientific research Web application servers Some microcontrollers JavaScript/Node JS/TypeScript Web sites Web application servers C# Games (Unity) Consumer applications (Windows) Business applications C++ Games (Unreal Engine) Operating systems, device drivers Microcontrollers/embedded systems Consumer applications (Linux) Some more tips: Do not learn C++ (or any other dialect of C) as a...

Similar threads

  • · Replies 1 ·
Replies
1
Views
3K
Replies
69
Views
10K
  • · Replies 17 ·
Replies
17
Views
5K
  • · Replies 49 ·
2
Replies
49
Views
4K
  • · Replies 22 ·
Replies
22
Views
2K
  • · Replies 25 ·
Replies
25
Views
2K
Replies
14
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 17 ·
Replies
17
Views
3K
Replies
81
Views
7K