poisson/poisson_with_singularity/two_d_poisson.cc File Reference

Classes

class  PoissonProblem< ELEMENT >
 Micky mouse Poisson problem. More...
 

Namespaces

 Global_parameters
 Namespace.
 

Functions

double Global_parameters::b (const double &r)
 Blending function based on the rectangular function but made smoother. More...
 
Vector< doubleGlobal_parameters::x1 (const Vector< double > &coord)
 Cartesian coordinates centered at the point (0.5,1) More...
 
Vector< doubleGlobal_parameters::x2 (const Vector< double > &coord)
 Cartesian coordinates centered at the point (1.5,1) More...
 
Vector< doubleGlobal_parameters::polar (const Vector< double > &coord)
 Polar coordinates (r,phi) centered at the point x. More...
 
Vector< doubleGlobal_parameters::polar1 (const Vector< double > &coord)
 Polar coordinates (r,phi) centered at the point (0.5,1) More...
 
Vector< doubleGlobal_parameters::polar2 (const Vector< double > &coord)
 Polar coordinates (r,phi) centered at the point (1.5,1) More...
 
double Global_parameters::f1_exact (const Vector< double > &coord)
 function that contributs to u_exact More...
 
double Global_parameters::f1 (const Vector< double > &coord)
 f1 function, in front of the C1 unknown More...
 
Vector< doubleGlobal_parameters::grad_f1 (const Vector< double > &coord)
 
double Global_parameters::f2_exact (const Vector< double > &coord)
 function that contributes to u_exact More...
 
double Global_parameters::f2 (const Vector< double > &coord)
 f2 function, in front of the C2 unknown More...
 
Vector< doubleGlobal_parameters::grad_f2 (const Vector< double > &coord)
 gradient of f2 function More...
 
void Global_parameters::get_exact_u (const Vector< double > &coord, Vector< double > &u)
 
void Global_parameters::source_function (const Vector< double > &coord, double &source)
 Source function required to make the solution above an exact solution. More...
 
int main (int argc, char **argv)
 Driver code for 2D Poisson problem. More...
 

Variables

unsigned Global_parameters::Element_multiplier =1
 element multiplier for convergence tess More...
 
bool Global_parameters::Blend = false
 Boolean that imposes the blending or not. More...
 
double Global_parameters::R_blend = 0.5
 Limit of the blending region. More...
 
unsigned Global_parameters::Direction = 1
 

Function Documentation

◆ main()

int main ( int argc  ,
char **  argv 
)

Driver code for 2D Poisson problem.

881 {
882 
883  // Store command line arguments
884  CommandLineArgs::setup(argc,argv);
885 
886  // Define possible command line arguments and parse the ones that
887  // were actually specified
888 
889  // Multiplier for elements
891  "--element_multiplier",
893 
894  // Impose blending or not
896 
897  // radius of the blending
899  "--r_blend",&Global_parameters::R_blend);
900 
901  // Parse command line
903 
904  // Doc what has actually been specified on the command line
906 
907 
909  ("--blend"))
910  {
912  }
913 
914  //Set up the problem
915  //------------------
916 
917  // Create the problem with 2D nine-node elements from the
918  // QPoissonElement family. Pass pointer to source function.
922 
923  // Create label for output
924  //------------------------
925  DocInfo doc_info;
926 
927  // Set output directory
928  doc_info.set_directory("RESLT");
929 
930  // Solve the problem
931  problem.newton_solve();
932 
933  //Output the solution
934  problem.doc_solution(doc_info);
935 
936 } //end of main
Definition: poisson_elements_with_singularity.h:326
Micky mouse Poisson problem.
Definition: HypreSolver_test.cc:81
Definition: oomph_utilities.h:499
void set_directory(const std::string &directory)
Definition: oomph_utilities.cc:298
Definition: poisson_elements.h:542
void setup(Time *time_pt)
Create all GeomObjects needed to define the cylinder and the flag.
Definition: turek_flag_non_fsi.cc:277
bool Blend
Boolean that imposes the blending or not.
Definition: poisson/poisson_with_singularity/two_d_poisson.cc:55
unsigned Element_multiplier
element multiplier for convergence tess
Definition: poisson/poisson_with_singularity/two_d_poisson.cc:52
double R_blend
Limit of the blending region.
Definition: poisson/poisson_with_singularity/two_d_poisson.cc:58
void source_function(const Vector< double > &coord, double &source)
Source function required to make the solution above an exact solution.
Definition: poisson/poisson_with_singularity/two_d_poisson.cc:298
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 Global_parameters::Blend, oomph::CommandLineArgs::command_line_flag_has_been_set(), oomph::CommandLineArgs::doc_specified_flags(), Global_parameters::Element_multiplier, oomph::CommandLineArgs::parse_and_assign(), problem, Global_parameters::R_blend, oomph::DocInfo::set_directory(), Flag_definition::setup(), Global_parameters::source_function(), and oomph::CommandLineArgs::specify_command_line_flag().