Programming tasks to Scientific Computing I
Typedefs | Functions
ex3.cpp File Reference

Main file for 3rd programming exercise. More...

#include <iostream>
#include <adaptiveTriangMesh.h>
#include <configuratorsShellFE.h>
#include <EigenDataContainer.h>
#include <quadratureShellFE.h>
#include <shellHandler.h>
#include <triangleShellFE.h>
#include "errorMeasurements.h"
#include "errorEstimator.h"
#include "stiffnessMatrixIntegrator.h"

Go to the source code of this file.

Typedefs

typedef double RealType
 
typedef shellFE::ShellElementWithTangentSpaceAtVertex< DataTypeContainerShellFETriangleType
 
typedef shellFE::AdaptiveTriangMesh< DataTypeContainerShellFE, TriangleTypeMeshType
 
typedef shellFE::CenterOfMassQuadrature< RealType, typename DataTypeContainerShellFE::DomVecTypeQuadType
 
typedef shellFE::UnitTriangMeshConfiguratorP1< DataTypeContainerShellFE, MeshType, QuadTypeConfiguratorType
 

Functions

void printHelp ()
 
int main (int argc, char **argv)
 Main function containing the basic structure of the code. More...
 

Detailed Description

Main file for 3rd programming exercise.

Definition in file ex3.cpp.

Typedef Documentation

Definition at line 25 of file ex3.cpp.

Definition at line 23 of file ex3.cpp.

Definition at line 24 of file ex3.cpp.

typedef double RealType

Definition at line 21 of file ex3.cpp.

Definition at line 22 of file ex3.cpp.

Function Documentation

int main ( int  argc,
char **  argv 
)

Main function containing the basic structure of the code.

Todo:
Solve the equation
Todo:
Refine the mesh
Todo:
Output tables

Definition at line 38 of file ex3.cpp.

39 {
40  unsigned int numRefinements = 10;
41  switch (argc) {
42  case 3: {
43  // First two arguments are handled below
44  break;
45  }
46  case 4: {
47  numRefinements = atoi(argv[3]);
48  break;
49  }
50  default: {
51  printHelp();
52  return 1;
53  }
54  }
55 
59 
60  return 0;
61 }
void printHelp()
Definition: ex3.cpp:27
void printHelp ( )

Definition at line 27 of file ex3.cpp.

28 {
29  cout << "Usage: ex3 meshFile resultPrefix [numRefinements]\n";
30  cout << "\tmeshFile\tLegacy VTK file defining the Finite Element mesh "
31  << "to use\n";
32  cout << "\tresultPrefix\tPrefix for result files, counter will be appended\n";
33  cout << "\tnumRefinements\tNumber of times the mesh is refined"
34  << " (default: 10)\n\n";
35 }