i hv 1 assignement which need to do the finite element analysis by using Borland C++..and openGL..
but i dun know what source code shoul i use to solve the finite element analysis in Borland C++ and openGL..
pls help me!!thanx for help..

Dani AI

Generated

— Break the job into two distinct parts: the FEA computation (C++ code) and the visualization (OpenGL). is right that starting small and showing progress helps: implement one element, verify its stiffness matrix by hand, then assemble a tiny global system. 's pointer to example code is useful for reference, but learning is faster if you build a minimal pipeline first.

A practical minimal workflow: pick a simple physics case (1D bar or a single 2D linear triangle); write the element stiffness using shape functions; create a tiny mesh (hand-coded for first tests); assemble the global stiffness matrix; apply boundary conditions; solve K u = f; compute strains/stresses; and render displacements/contours with OpenGL. Minimal assembly pseudo-code:

for each element e:
  Ke = computeElementStiffness(e)
  nodes = e.nodeIndices
  for i in 0..nloc-1:
    for j in 0..nloc-1:
      K[nodes[i]][nodes[j]] += Ke[i][j]

Practical tips: use dense matrices and a simple direct solver for homework-sized problems; switch to sparse storage and a Cholesky or conjugate-gradient solver for larger meshes. Check that K is symmetric and positive definite after applying boundary conditions — a singular K usually means missing constraints. Useful libraries: Eigen for convenient C++ linear algebra, LAPACK for robust solvers, and the Khronos OpenGL docs for rendering guidance. If an old Borland toolchain refuses modern headers, try compiling with a current free toolchain (MinGW or MSVC) to leverage these libraries easily.

Recommended Answers

All 2 Replies

You should at least show some effort! Post what you have made so far or you could little to no support.
read this.

I don't know the first thing about it, but from what little I found in it looks like it is pretty involved. Scroll down the page and you will find some free source code. I don't know how good it is so use it at your own risk.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.