mesh_from_inline_triangle_no_adapt.cc File Reference
#include <fenv.h>
#include "generic.h"
#include "poisson.h"
#include "meshes/triangle_mesh.h"

Classes

class  UnstructuredPoissonProblem< ELEMENT >
 Class definition. 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_source (const Vector< double > &x, double &source)
 Source function to make it an exact solution. More...
 
void TanhSolnForPoisson::zero (const Vector< double > &x, Vector< double > &u)
 
int main (int argc, char **argv)
 Driver code for demo of inline triangle mesh generation. More...
 

Function Documentation

◆ main()

int main ( int argc  ,
char **  argv 
)

Driver code for demo of inline triangle mesh generation.

574 {
575  // Store command line arguments
576  CommandLineArgs::setup(argc,argv);
577 
578  // Define possible command line arguments and parse the ones that
579  // were actually specified
580 
581  // Validation?
583 
584  // Parse command line
586 
587  // Doc what has actually been specified on the command line
589 
590  // Create problem
592 
593  // Loop over orientation of step
594  //==============================
595  unsigned nstep=5;
597  {
598  nstep=2;
599  }
600  for (unsigned i=0;i<nstep;i++)
601  {
602  // Solve
603  //=======
604  problem.newton_solve();
605 
606  // Doc the solution
607  //=================
608  std::stringstream comment_stream;
609  comment_stream << "Solution for tan(phi) = " << TanhSolnForPoisson::TanPhi;
610  problem.doc_solution(comment_stream.str());
611 
612  // Rotate orientation of solution
614  }
615 
616 } //End of main
int i
Definition: BiCGSTAB_step_by_step.cpp:9
Class definition.
Definition: mesh_from_inline_triangle.cc:91
void setup(Time *time_pt)
Create all GeomObjects needed to define the cylinder and the flag.
Definition: turek_flag_non_fsi.cc:277
double TanPhi
Parameter for angle Phi of "step".
Definition: HypreSolver_test.cc:51
bool command_line_flag_has_been_set(const std::string &flag)
Definition: oomph_utilities.cc:501
void specify_command_line_flag(const std::string &command_line_flag, const std::string &doc)
Specify possible argument-free command line flag.
Definition: oomph_utilities.cc:451
void parse_and_assign(int argc, char *argv[], const bool &throw_on_unrecognised_args)
Definition: oomph_utilities.cc:760
void doc_specified_flags()
Document specified command line flags.
Definition: oomph_utilities.cc:610
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References oomph::CommandLineArgs::command_line_flag_has_been_set(), oomph::CommandLineArgs::doc_specified_flags(), i, oomph::CommandLineArgs::parse_and_assign(), problem, Flag_definition::setup(), oomph::CommandLineArgs::specify_command_line_flag(), and TanhSolnForPoisson::TanPhi.