Skip to content

shunsukeyoshimoto/solidfem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FEM analysis: Linear Elastic Object

Overview

This porject is for learning how to implement Finite Element Method (FEM) for deformation simulation in C language. Let's fill in the code at TODO.

Text

See here

Demo

Solid FEM

Command Key - when main window is active

q:quit

r:rotate object

n:select node(left:fixed,middle:input,right:free)

s:calculate inverse stiffness matrix

f:fem simulation mode

i:clear deformation

c:clear node settings

Requirement

  • glut,OpenGL
  • FEM Data : ../data/sphere.fem

Compile command

$ gcc main.c GLTool.c MathTool.c Mesh.c SolidFEM.c -o test -lglut -lGL -lGLU

$ ./test ../data/sphere.fem

Licence

MIT

Author

yoshimoto56

About

FEM analysis: Linear Elastic Object (Exercise)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages