8 #include <Eigen/Sparse> 9 #include <Eigen/SparseCholesky> 31 cout <<
"Usage: ex2 meshFile resultFile [numRefinements]\n";
32 cout <<
"\tmeshFile\tLegacy VTK file defining the Finite Element mesh " 34 cout <<
"\tresultFile\tLegacy VTK file to write the result to\n";
35 cout <<
"\tnumRefinements\tNumber of times the mesh is refined" 36 <<
" (default: 10)\n\n";
40 int main(
int argc,
char **argv)
42 unsigned int numRefinements = 10;
49 numRefinements = atoi(argv[3]);
59 cout <<
"* Loading grid" << endl;
62 cout <<
"* Refining " << numRefinements <<
" times ";
65 for (
unsigned int r = 0; r < numRefinements; ++r) {
72 std::stringstream outputFileName;
73 outputFileName << argv[2] << r <<
".vtk";
74 vtkWriter.
save(outputFileName.str().c_str());
DataTypeContainer::VectorType VectorType
shellFE::UnitTriangMeshConfiguratorP1< DataTypeContainerShellFE, MeshType, QuadType > ConfiguratorType
Class for local error estimation.
Different quadrature types for triangular meshes.
shellFE::CenterOfMassQuadrature< RealType, typename DataTypeContainerShellFE::DomVecType > QuadType
int main(int argc, char **argv)
Main function containing the basic structure of the code.
DataTypeContainer::SparseMatrixType SparseMatrixType
RealType markAndRefineTriangles()
shellFE::ShellElementWithTangentSpaceAtVertex< DataTypeContainerShellFE > TriangleType
ConfiguratorType::VectorType VectorType
void save(string filename) const
ConfiguratorType::SparseMatrixType SparseMatrixType
Eigen typedefs for use with the TriangleMesh.
Configurator for Finite Elements.
Triangle which has a tangent space at each node.
shellFE::AdaptiveTriangMesh< DataTypeContainerShellFE, TriangleType > MeshType