Stress distribution(graphic) by using programming

Click For Summary
SUMMARY

The discussion centers on the need to visualize stress distribution on a plane using programming for a finite element analysis assignment. While C lacks inherent graphics capabilities, alternatives such as Matlab, IDL, and Mathematica are recommended for their robust graphing functionalities. Open-source options like gnuplot, hippodraw, and grace are also mentioned, though their effectiveness for 2-D intensity plots may vary. Dedicated post-processing software like GiD is suggested for FEM simulation results, providing suitable illustrations with minimal coding.

PREREQUISITES
  • Understanding of finite element analysis (FEM)
  • Familiarity with programming concepts in C
  • Knowledge of graphical representation techniques
  • Basic experience with Matlab or similar graphing tools
NEXT STEPS
  • Research how to use Matlab for visualizing finite element analysis results
  • Explore the capabilities of GiD for post-processing FEM simulations
  • Learn about gnuplot for creating 2-D intensity plots
  • Investigate the use of OpenGL for graphics in C programming
USEFUL FOR

Students in engineering or physics fields, particularly those involved in finite element analysis, as well as programmers seeking to enhance their skills in graphical data representation.

jaymin
Messages
10
Reaction score
0
hello, i have 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
jaymin said:
hello, i have 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
 
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.
 

Similar threads

  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 13 ·
Replies
13
Views
7K
  • · Replies 29 ·
Replies
29
Views
4K
Replies
6
Views
3K
  • · Replies 17 ·
Replies
17
Views
5K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 3 ·
Replies
3
Views
8K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 12 ·
Replies
12
Views
2K