linear_solvers/two_d_multi_poisson.cc File Reference

Classes

class  MultiPoissonProblem< ELEMENT >
 

Namespaces

 TanhSolnForMultiPoisson
 Namespace for exact solution for MultiPoisson equation with "sharp step".
 

Macros

#define N_FIELD   5
 

Functions

double TanhSolnForMultiPoisson::scalar_soln (const Vector< double > &x)
 Scalar solution. More...
 
double TanhSolnForMultiPoisson::scalar_source (const Vector< double > &x)
 Scalar source. More...
 
void TanhSolnForMultiPoisson::get_exact_u (const Vector< double > &x, Vector< double > &u)
 Exact solution as a Vector. More...
 
void TanhSolnForMultiPoisson::source_function (const Vector< double > &x, Vector< double > &source)
 Source function required to make the solution above an exact solution. More...
 
int main (int argc, char *argv[])
 Driver code for 2D MultiPoisson problem. More...
 

Variables

double TanhSolnForMultiPoisson::Alpha =5.0
 Parameter for steepness of "step". More...
 
double TanhSolnForMultiPoisson::TanPhi =1.0
 Parameter for angle Phi of "step" (45 degrees) More...
 
double TanhSolnForMultiPoisson::Beta =1.0
 Interaction parameter. More...
 

Macro Definition Documentation

◆ N_FIELD

#define N_FIELD   5

Function Documentation

◆ main()

int main ( int argc  ,
char argv[] 
)

Driver code for 2D MultiPoisson problem.

481 {
482 
483  // Store command line arguments
484  CommandLineArgs::setup(argc,argv);
485 
486  // Define possible command line arguments and parse the ones that
487  // were actually specified
488 
490 
492  ("--upper_triangular");
493 
495  ("--two_plus_three");
496 
498  ("--two_plus_three_upper_triangular");
499 
501  ("--two_plus_three_upper_triangular_with_sub");
502 
504  ("--two_plus_three_upper_triangular_with_two_sub");
505 
507  ("--two_plus_three_upper_triangular_with_replace");
508 
510  ("--coarse_two_plus_two_plus_one");
511 
513  ("--one_plus_four_with_two_coarse");
514 
515  // Parse command line
517 
518  // Doc what has actually been specified on the command line
520 
521  // Create the problem with 2D nine-node elements from the
522  // QMultiPoissonElement family.
524 
525  // Create label for output
526  DocInfo doc_info;
527 
528  // Set output directory
529  doc_info.set_directory("RESLT");
530 
531  // Step number
532  doc_info.number()=0;
533 
534  oomph_info << "\n\nSolving for TanhSolnForMultiPoisson::Alpha="
535  << TanhSolnForMultiPoisson::Alpha << std::endl << std::endl;
536 
537  // Solve the problem
538  problem.newton_solve();
539 
540  //Output the solution
541  problem.doc_solution(doc_info);
542 
543 } //end of main
Definition: linear_solvers/two_d_multi_poisson.cc:118
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 setup(Time *time_pt)
Create all GeomObjects needed to define the cylinder and the flag.
Definition: turek_flag_non_fsi.cc:277
double Alpha
Parameter for steepness of "step".
Definition: linear_solvers/two_d_multi_poisson.cc:56
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
OomphInfo oomph_info
Definition: oomph_definitions.cc:319
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References TanhSolnForMultiPoisson::Alpha, oomph::CommandLineArgs::doc_specified_flags(), oomph::DocInfo::number(), oomph::oomph_info, oomph::CommandLineArgs::parse_and_assign(), problem, oomph::DocInfo::set_directory(), Flag_definition::setup(), and oomph::CommandLineArgs::specify_command_line_flag().