3D Beam Finite Element Code  1.0
Namespaces | Functions
threed_beam_fea.cpp File Reference
#include <boost/format.hpp>
#include <exception>
#include <fstream>
#include <iomanip>
#include "threed_beam_fea.h"
Include dependency graph for threed_beam_fea.cpp:

Namespaces

 fea
 

Functions

double fea::norm (const Node &n1, const Node &n2)
 Calculates the distance between 2 nodes. More...
 
void fea::loadBCs (SparseMat &Kg, SparseMat &force_vec, const std::vector< BC > &BCs, unsigned int num_nodes)
 
void fea::loadTies (std::vector< Eigen::Triplet< double > > &triplets, const std::vector< Tie > &ties)
 Loads any tie constraints into the set of triplets that will become the global stiffness matrix. More...
 
std::vector< std::vector< double > > fea::computeTieForces (const std::vector< Tie > &ties, const std::vector< std::vector< double > > &nodal_displacements)
 Computes the forces in the tie elements based on the nodal displacements of the FE analysis and the spring constants provided in ties. More...
 
void fea::loadForces (SparseMat &force_vec, const std::vector< Force > &forces)
 Loads the prescribed forces into the force vector. More...
 
Summary fea::solve (const Job &job, const std::vector< BC > &BCs, const std::vector< Force > &forces, const std::vector< Tie > &ties, const Options &options)
 Solves the finite element analysis defined by the input Job, boundary conditions, and prescribed nodal forces. More...