Functions | Variables
FishSolnOneDPoisson Namespace Reference

Namespace for fish-shaped solution of 1D Poisson equation. More...

Functions

void get_exact_u (const Vector< double > &x, Vector< double > &u)
 Exact, fish-shaped solution as a 1D vector. More...
 
void source_function (const Vector< double > &x, double &source)
 Source function required to make the fish shape an exact solution. More...
 

Variables

int Sign =-1
 Sign of the source function (- gives the upper half of the fish, + the lower half) More...
 

Detailed Description

Namespace for fish-shaped solution of 1D Poisson equation.

Function Documentation

◆ get_exact_u()

void FishSolnOneDPoisson::get_exact_u ( const Vector< double > &  x,
Vector< double > &  u 
)

Exact, fish-shaped solution as a 1D vector.

Definition at line 54 of file one_d_poisson.cc.

References Sign.

Referenced by OneDPoissonProblem< ELEMENT >::actions_before_newton_solve(), and OneDPoissonProblem< ELEMENT >::doc_solution().

◆ source_function()

void FishSolnOneDPoisson::source_function ( const Vector< double > &  x,
double &  source 
)

Source function required to make the fish shape an exact solution.

Definition at line 61 of file one_d_poisson.cc.

References Sign.

Referenced by main().

Variable Documentation

◆ Sign

int FishSolnOneDPoisson::Sign =-1

Sign of the source function (- gives the upper half of the fish, + the lower half)

Definition at line 50 of file one_d_poisson.cc.

Referenced by get_exact_u(), main(), and source_function().