Draw mohr circle using C programming

Click For Summary

Discussion Overview

The discussion revolves around the challenges faced by participants in completing an assignment related to calculating principal stress using three methods, one of which involves drawing Mohr's circle using C programming. The focus includes programming graphics and the specific implementation of Mohr's circle.

Discussion Character

  • Homework-related, Technical explanation

Main Points Raised

  • One participant expresses urgency in needing help to write a program for calculating principal stress and drawing Mohr's circle, indicating a lack of knowledge in graphics programming with C.
  • Another participant suggests that there are many online tutorials available for C programming, implying that understanding the equations should facilitate the task.
  • A different participant recommends using a graphics library, specifically mentioning SDL, as a potential solution for drawing graphics in C.
  • A later post indicates that a participant is using OpenGL to draw the circle but is struggling with automatically adjusting the radius based on the formula, needing assistance to automate this process.

Areas of Agreement / Disagreement

There is no consensus on the best approach to draw Mohr's circle or automate the radius adjustment, as participants provide different suggestions and experiences without resolving the challenges presented.

Contextual Notes

Participants have not provided specific formulas or detailed steps for implementing the graphics, and there are unresolved issues regarding the integration of graphics libraries and the automation of parameters in the program.

Who May Find This Useful

Students or individuals working on assignments related to stress analysis in engineering, particularly those interested in programming graphics in C or using libraries like OpenGL or SDL.

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 have to submit the assignment tomorrow..
thanks
 

Similar threads

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