tree_3d.cc File Reference
#include <typeinfo>
#include "generic.h"
#include "poisson.h"
#include "meshes/simple_cubic_mesh.h"

Classes

class  CompareElementCoordinate< ELEMENT >
 
class  Rotateable< ELEMENT >
 
class  TestRefineableCubicMesh< ELEMENT >
 
class  TestPoissonProblem< ELEMENT >
 Poisson problem on rotatable, refineable cubic brick mesh. More...
 

Namespaces

 TanhSolnForPoisson
 Namespace for exact solution for Poisson equation with "sharp step".
 

Functions

void TanhSolnForPoisson::get_exact_u (const Vector< double > &x, Vector< double > &u)
 Exact solution as a Vector. More...
 
void TanhSolnForPoisson::get_exact_u (const Vector< double > &x, double &u)
 Exact solution as a scalar. More...
 
void TanhSolnForPoisson::get_source (const Vector< double > &x, double &source)
 Source function to make it an exact solution. More...
 
template<class ELEMENT >
void run_test (const unsigned &i)
 
int main ()
 Driver code for 2D Poisson problem. More...
 

Function Documentation

◆ main()

int main ( )

Driver code for 2D Poisson problem.

906 {
907  run_test<Rotateable<RefineableQPoissonElement<3,2> > >(1);
908  run_test<Rotateable<RefineableQPoissonElement<3,3> > >(2);
909  run_test<Rotateable<RefineableQSpectralPoissonElement<3,4> > >(3);
910 } //end of main

◆ run_test()

template<class ELEMENT >
void run_test ( const unsigned i)

Global function that is used to run the rotation tests for different elements

870 {
871  char dirname[100];
872  sprintf(dirname,"RESLT%i",i);
873 
874  // Create label for output
875  //------------------------
876  DocInfo doc_info;
877 
878  // Set output directory
879  doc_info.set_directory(dirname);
880 
881  // Step number
882  doc_info.number()=0;
883 
884  //Set up the problem
885  //------------------
886  for(unsigned i=0;i<24;i++)
887  {
888  //Create the problem with rotation i
891 
892  // Solve the problem, performing up to 2 adaptive refinements
893  problem.newton_solve();
894 
895  //Output the solution
896  problem.doc_solution(doc_info);
897 
898  doc_info.number()++;
899  }
900 }
int i
Definition: BiCGSTAB_step_by_step.cpp:9
Poisson problem on rotatable, refineable cubic brick mesh.
Definition: octree_test.cc:530
Definition: oomph_utilities.h:499
void set_directory(const std::string &directory)
Definition: oomph_utilities.cc:298
unsigned & number()
Number used (e.g.) for labeling output files.
Definition: oomph_utilities.h:554
void get_source(const Vector< double > &x, double &source)
Source function to make it an exact solution.
Definition: extrude_with_macro_element_representation.cc:224
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References TanhSolnForPoisson::get_source(), i, oomph::DocInfo::number(), problem, and oomph::DocInfo::set_directory().