pml_helmholtz/scattering/unstructured_two_d_helmholtz.cc File Reference
#include <fenv.h>
#include "math.h"
#include <complex>
#include "generic.h"
#include "pml_helmholtz.h"
#include "meshes/triangle_mesh.h"
#include "meshes/rectangular_quadmesh.h"

Classes

class  PMLProblem< ELEMENT >
 

Namespaces

 GlobalParameters
 Global parameters.
 

Functions

int main (int argc, char **argv)
 Solve 2D Helmholtz problem. More...
 

Function Documentation

◆ main()

int main ( int argc  ,
char **  argv 
)

Solve 2D Helmholtz problem.

632 {
633  //Set up the problem
634  //------------------
635 
636 #ifdef ADAPTIVE
637 
638  // Set up the problem with projectable 2D six-node elements from the
639  // TPMLHelmholtzElement family.
642 
643  // Set up the problem with 2D ten-node elements from the
644  // TPMLHelmholtzElement family.
645  // PMLProblem<ProjectablePMLHelmholtzElement
646  // <TPMLHelmholtzElement<2,4> > > problem;
647 
648 #else
649 
650  // Set up the problem with 2D six-node elements from the
651  // TPMLHelmholtzElement family.
653 
654  // Set up the problem with 2D ten-node elements from the
655  // TPMLHelmholtzElement family.
656  // PMLProblem<TPMLHelmholtzElement<2,4> > problem;
657 
658 #endif
659 
660  // Create label for output
661  //------------------------
662  DocInfo doc_info;
663 
664  // Set output directory
665  doc_info.set_directory("RESLT");
666 
667 
668 #ifdef ADAPTIVE
669 
670  // Max. number of adaptations
671  unsigned max_adapt=1;
672 
673  // Solve the problem with the adaptive Newton's method, allowing
674  // up to max_adapt mesh adaptations after every solve.
675  problem.newton_solve(max_adapt);
676 
677 #else
678 
679  // Solve the problem with Newton's method
680  problem.newton_solve();
681 
682 #endif
683 
684  //Output solution
685  problem.doc_solution(doc_info);
686 
687 } //end of main
Definition: pml_helmholtz/scattering/unstructured_two_d_helmholtz.cc:76
Definition: oomph_utilities.h:499
void set_directory(const std::string &directory)
Definition: oomph_utilities.cc:298
PMLHelmholtz upgraded to become projectable.
Definition: pml_helmholtz_elements.h:1015
Definition: Tpml_helmholtz_elements.h:63
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References problem, and oomph::DocInfo::set_directory().