uns_adapt_3d.cc File Reference
#include "generic.h"
#include "navier_stokes.h"
#include "oomph_tetgen.h"
#include "meshes/tetgen_mesh.h"
#include "meshes/refineable_tetgen_mesh.h"

Classes

class  SphericalTetMeshFacetedSurface
 TetMeshFacetedSurface that defines inner boundary. More...
 
class  CubicTetMeshFacetedSurface
 TetMeshFacetedSurface that defines outer boundary. More...
 
class  FallingBlockProblem< ELEMENT >
 Micky mouse problem. More...
 

Namespaces

 Global_Parameters
 Namespace for global parameters.
 

Functions

int main (int argc, char *argv[])
 Demonstrate how to solve Poisson problem. More...
 

Variables

double Global_Parameters::Visc_Ratio = 2.0
 
double Global_Parameters::Box_width = 3.0
 
double Global_Parameters::Box_length = 10.0
 

Function Documentation

◆ main()

int main ( int argc  ,
char argv[] 
)

Demonstrate how to solve Poisson problem.

822 {
823  // Label for output
824  DocInfo doc_info;
825 
826  // Output directory
827  doc_info.set_directory("RESLT");
828 
829  // Number of output points per edge
830  unsigned nplot=2;
831 
832  //Output trace file
833  std::ofstream dissipation("RESLT/diss.dat");
834 
835  // Do the problem with quadratic elements
836  //---------------------------------------
837  {
840  //problem.snap_onto_sphere();
841 
842  for(unsigned n=0;n<1;++n)
843  {
844  // Solve the problem
845  problem.steady_newton_solve(1);
846 
847  //Output solution with 5 points per edge
848  nplot=5;
849  problem.doc_solution(nplot,doc_info);
850 
851  //Increment counter for solutions
852  doc_info.number()++;
853  //Output the dissipation
854  dissipation << " " << Global_Parameters::Re << " "
855  << problem.get_dissipation() << std::endl;
856 
857  //Increase the Reynolds number
858  Global_Parameters::Re += 0.1;
859  }
860 
861  dissipation.close();
862  }
863 
864 
865 }
const unsigned n
Definition: CG3DPackingUnitTest.cpp:11
Micky mouse problem.
Definition: uns_adapt_3d.cc:496
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
Crouzeix Raviart upgraded to become projectable.
Definition: navier_stokes_elements.h:3128
Definition: Tnavier_stokes_elements.h:63
double Re
reynolds number
Definition: adaptive_hopf.cc:54
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References n, oomph::DocInfo::number(), problem, Global_Parameters::Re, and oomph::DocInfo::set_directory().