A CPP code developed to solve 1D Bernoulli Euler beam problem in FEM using continuous Hermite-shape function.
Notes:
We can solve exact solution of this 4th order ODE with four boundary conditions
void Gauss(int N, double a, double * qp, double * wq)
assigns values to qp
and wq
.
double Hermitebasis(const double &x1, const double &x2, int i, int der, double &x)
returns specific value of Hermite-shape function.
Hermite-shape function has
uu = solver.solve(F)
is filled with
- Run
mkdir build
underFEM-Bernoulli_Euler_beam/
to create a new directory. - Run
cd build
to step in the new directory. - Run
cmake ..
to createmakefile
usingCMakeLists.txt
from upper directory. - Run
make
to create an executable file namedBernoulli_Euler_beam
. - Run
./Bernoulli_Euler_beam
.