You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
571 B

4 years ago
//
// main.cpp
//
// Created by Wei Chen on 8/30/21
//
#include "Mesh.hpp"
#include <Eigen/Eigen>
#include <iostream>
int main(){
fem3d::Mesh mesh = fem3d::Mesh();
mesh.setDBC();
std::cout << "Logging: [fem3d] set DBC" << std::endl;
mesh.computeK();
std::cout << "Logging: [fem3d] assembly stiffness matrix and load" << std::endl;
mesh.boundaryK();
mesh.solve();
std::cout << "Logging: [fem3d] solve" << std::endl;
mesh.write();
std::cout << "Logging: [fem3d] write displacement to output/U.txt" << std::endl;
return 0;
}