Stress distribution(graphic) by using programming

In summary, the conversation is about an assignment that requires the use of programming to show the stress distribution on a plane when a force is applied. The person is unsure if C is capable of this or if another programming language would be better. Suggestions are given, such as using programs with graphics capabilities or post-processing software, to achieve the desired results.
  • #1
jaymin
10
0
hello, i hav another assignment need to do with programming..
previously i only learn C..
but my lecturer need us to show the stress distribution on a plane when force acted onto it..
some thing like blue colour is for high intensity of stress(in range) then the further it go, the colour change with the intensity of stress...
actually it's the calculation of finite element by using programming..
can C do that?
or other programming is better for it? (like visual basic)
it's urgent also..
please help me..
thanks
 
Last edited:
Technology news on Phys.org
  • #2
jaymin said:
hello, i hav another assignment need to do with programming..
previously i only learn C..
but my lecturer need us to show the stress distribution on a plane when force acted onto it..
some thing like blue colour is for high intensity of stress(in range) then the further it go, the colour change with the intensity of stress...
actually it's the calculation of finite element by using programming..
can C do that?
or other programming is better for it? (like visual basic)
it's urgent also..
please help me..
thanks

By itself, C does not have any graphics capability. You would need to use add-on libraries. The only ones I know of, like OpenGL, are too complex for a quick homework assignment--they're made for industrial strength rendering. Maybe some other people can name better alternatives.

Fastest route is to use a program like Matlab, IDL, or Mathematica, that has graphing capabilties. Often times, university computing centers will make one or more of these programs available to students. If you can cough up ~$100 (that's what it was in my day), Mathematica and (I think) Matlab have student versions.

Lower on the scrounge chain, you used to be able to download IDL and use it for seven minutes in demo mode for $0. It's a hard way to learn.

Open source programs include gnuplot, hippodraw, and grace. Don't know how well they'd do at a 2-D intensity plot.

Good luck,
Tim
 
  • #3
In addition to what nmtim mentioned, if it's a FEM simulation result you could use some of the dedicated post-processing software freely available like GiD or so (internet finite element resources has a longish list). Those are more than able to produce the type of illustration you're after (with perhaps some minor scripting/coding to format the input), although imho the fastest way would be to use Matlab or a related freeware package.
 

FAQ: Stress distribution(graphic) by using programming

What is stress distribution?

Stress distribution refers to the pattern or distribution of stress throughout a material or structure. It is a measure of how force is transmitted and distributed across a surface or body.

Why is stress distribution important?

Understanding stress distribution is crucial in engineering and design, as it helps determine the strength and durability of a structure. It can also help identify potential weak points or areas of high stress that may need reinforcement.

How is stress distribution represented graphically?

Stress distribution can be represented graphically through a stress distribution plot or graph, which shows the variation of stress across a surface or body. It is often depicted through color-coded contour lines or a heat map.

What is programming used for in stress distribution analysis?

Programming is often used to create and analyze stress distribution models, as it allows for more complex and precise calculations and simulations. It also enables researchers to quickly and efficiently analyze large amounts of data.

Is stress distribution the same for all materials?

No, stress distribution can vary depending on the type of material and its properties. Different materials have different strengths and stiffness, which can affect how stress is distributed throughout the structure.

Similar threads

Replies
17
Views
4K
Replies
1
Views
2K
Replies
3
Views
3K
Replies
3
Views
8K
Replies
12
Views
1K
Back
Top