40 #include "meshes/fish_mesh.h"    44 using namespace oomph;
    56  void get_source(
const Vector<double>& x, 
double& source)
    70 template<
class ELEMENT>
    93    return dynamic_cast<RefineableFishMesh<ELEMENT>*
>(Problem::mesh_pt());
    98  void doc_solution(DocInfo& doc_info);
   110 template<
class ELEMENT>
   116  Problem::mesh_pt()=
new RefineableFishMesh<ELEMENT>;
   119  mesh_pt()->spatial_error_estimator_pt()=
new Z2ErrorEstimator;
   125  unsigned num_bound = mesh_pt()->nboundary();
   126  for(
unsigned ibound=0;ibound<num_bound;ibound++)
   128    unsigned num_nod= mesh_pt()->nboundary_node(ibound);
   129    for (
unsigned inod=0;inod<num_nod;inod++)
   132      mesh_pt()->boundary_node_pt(ibound,inod)->pin(0); 
   136      mesh_pt()->boundary_node_pt(ibound,inod)->set_value(0,0.0); 
   141  unsigned n_element = mesh_pt()->nelement();
   142  for(
unsigned i=0;i<n_element;i++)
   145    ELEMENT *el_pt = 
dynamic_cast<ELEMENT*
>(mesh_pt()->element_pt(i));
   152  cout <<
"Number of equations: " << assign_eqn_numbers() << std::endl; 
   162 template<
class ELEMENT>
   174  sprintf(filename,
"%s/soln%i.dat",doc_info.directory().c_str(),
   176  some_file.open(filename);
   177  mesh_pt()->output(some_file,npts);
   181  sprintf(filename,
"%s/boundaries%i.dat",doc_info.directory().c_str(),
   183  some_file.open(filename);
   184  mesh_pt()->output_boundaries(some_file);
   212  doc_info.set_directory(
"RESLT"); 
   217  for (
unsigned i=0;i<nstep;i++)
   221    GeomObject* fish_back_pt=problem.
mesh_pt()->fish_back_pt();
   226    dynamic_cast<Circle*
>(fish_back_pt)->y_c()-=0.1;
   230    problem.
mesh_pt()->node_update();
   233    problem.newton_solve(2);
 void actions_after_newton_solve()
Update the problem specs after solve (empty) 
double Strength
Strength of source function: default value -1.0. 
RefineableFishPoissonProblem()
Constructor. 
virtual ~RefineableFishPoissonProblem()
Destructor: Empty. 
void get_source(const Vector< double > &x, double &source)
Const source function. 
void actions_before_newton_solve()
Update the problem specs before solve (empty) 
void doc_solution(DocInfo &doc_info)
Doc the solution. Output directory and labels are specified by DocInfo object. 
Namespace for const source term in Poisson equation. 
RefineableFishMesh< ELEMENT > * mesh_pt()
Overloaded version of the problem's access function to the mesh. Recasts the pointer to the base Mesh...