///////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////// Driver for 3D Poisson problem in eighth of a sphere. Solution has a sharp step. If there are any command line arguments, we regard this as a validation run and perform only a single adaptation.
325 FiniteElement::Tolerance_for_singular_jacobian = 0.0;
332 unsigned nrefine_for_locate_zeta_test=10;
334 &nrefine_for_locate_zeta_test);
357 cout <<
"Self test: " <<
problem.self_test() << std::endl;
363 problem.doc_solution(doc_info);
369 unsigned max_solve=1;
370 for (
unsigned isolve=0;isolve<max_solve;isolve++)
376 if ((
problem.mesh_pt()->nrefined() !=0)||
377 (
problem.mesh_pt()->nunrefined()!=0))
383 cout <<
"Mesh wasn't adapted --> we'll stop here" << std::endl;
388 problem.doc_solution(doc_info);
404 upper_right[0]=lower_left[0]+box_size;
405 upper_right[1]=lower_left[1]+box_size;
406 upper_right[2]=lower_left[2]+box_size;
407 unsigned central_node_number=13;
410 problem.mesh_pt()->min_permitted_error()=-1.0;
411 problem.mesh_pt()->max_refinement_level()=UINT_MAX;
414 for (
unsigned i=0;
i<nrefine_for_locate_zeta_test;
i++)
417 delete problem.mesh_pt()->spatial_error_estimator_pt();
420 problem.mesh_pt()->spatial_error_estimator_pt()=
422 central_node_number);
428 double shrink_factor=0.6;
429 lower_left[0]+=0.5*box_size*(1.0-shrink_factor);
430 lower_left[1]+=0.5*box_size*(1.0-shrink_factor);
431 lower_left[2]+=0.5*box_size*(1.0-shrink_factor);
433 box_size*=shrink_factor;
434 upper_right[0]=lower_left[0]+box_size;
435 upper_right[1]=lower_left[1]+box_size;
436 upper_right[2]=lower_left[2]+box_size;
440 problem.doc_solution(doc_info);
int i
Definition: BiCGSTAB_step_by_step.cpp:9
Poisson problem in refineable eighth of a sphere mesh.
Definition: eighth_sphere_poisson.cc:132
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
Definition: error_estimator.h:435
void check_locate_zeta(Mesh *mesh_pt)
Definition: locate_zeta_tester.h:28
void setup(Time *time_pt)
Create all GeomObjects needed to define the cylinder and the flag.
Definition: turek_flag_non_fsi.cc:277
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
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