![]() |
|
Namespace for exact solution for Poisson equation with "sharp step". More...
Functions | |
void | get_exact_u (const Vector< double > &x, Vector< double > &u) |
Exact solution as a Vector. More... | |
void | get_exact_u (const Vector< double > &x, double &u) |
Exact solution as a scalar. More... | |
void | get_source (const Vector< double > &x, double &source) |
Source function to make it an exact solution. More... | |
void | source_function (const Vector< double > &x, double &source) |
Source function required to make the solution above an exact solution. More... | |
void | zero (const Vector< double > &x, Vector< double > &u) |
void | get_exact_gradient (const Vector< double > &x, Vector< double > &dudx) |
Exact gradient as a Vector. More... | |
void | prescribed_flux_on_fixed_x_boundary (const Vector< double > &x, double &flux) |
Flux required by the exact solution on a boundary on which x is fixed. More... | |
Variables | |
double | Alpha =1.0 |
Parameter for steepness of step. More... | |
double | N_x =-1.0 |
Orientation of non-normalised x-component of vector in plane direction. More... | |
double | N_y =-1.0 |
Orientation of non-normalised y-component of vector in plane direction. More... | |
double | N_z =1.0 |
Orientation of non-normalised z-component of vector in plane direction. More... | |
double | X_0 =0.0 |
Orientation (x-coordinate of step plane) More... | |
double | Y_0 =0.0 |
Orientation (y-coordinate of step plane) More... | |
double | Z_0 =0.0 |
Orientation (z-coordinate of step plane) More... | |
double | TanPhi =0.0 |
Parameter for angle Phi of "step". More... | |
double | Beta |
Parameter for angle of step. More... | |
double | X_shift =8.0 |
Shift of step along x-direction. More... | |
bool | TanhSoln =false |
Flag for zero TanhSolution. More... | |
Namespace for exact solution for Poisson equation with "sharp step".
Namespace for exact solution for Poisson equation.
Namespace for exact solution for Poisson equation with sharp step.
///////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
Exact gradient as a Vector.
References TanhSolnForAdvectionDiffusion::Alpha, Eigen::bfloat16_impl::cosh(), TanhSolnForAdvectionDiffusion::TanPhi, and plotDoE::x.
Exact solution as a scalar.
References Alpha, N_x, N_y, N_z, sqrt(), Eigen::bfloat16_impl::tanh(), plotDoE::x, X_0, Y_0, and Z_0.
Referenced by get_source().
Exact solution as a Vector.
References Alpha, N_x, N_y, N_z, sqrt(), Eigen::bfloat16_impl::tanh(), plotDoE::x, X_0, Y_0, and Z_0.
Referenced by PoissonProblem< ELEMENT >::actions_before_newton_solve(), RefineableTwoDPoissonProblem< ELEMENT >::actions_before_newton_solve(), RefineableTwoMeshFluxPoissonProblem< ELEMENT >::actions_before_newton_solve(), FluxPoissonMGProblem< ELEMENT, MESH >::actions_before_newton_solve(), UnitCubePoissonMGProblem< ELEMENT, MESH >::actions_before_newton_solve(), RefineablePoissonProblem< ELEMENT >::actions_before_newton_solve(), EighthSpherePoissonProblem< ELEMENT >::actions_before_newton_solve(), FluxPoissonProblem< ELEMENT >::actions_before_newton_solve(), TwoMeshFluxPoissonProblem< ELEMENT >::actions_before_newton_solve(), ThreeDPoissonProblem< ELEMENT >::actions_before_newton_solve(), TestPoissonProblem< ELEMENT >::actions_before_newton_solve(), TestRefineablePoissonProblem< ELEMENT >::actions_before_newton_solve(), ExtrudedMovingCylinderProblem< TWO_D_ELEMENT, THREE_D_ELEMENT >::apply_boundary_conditions(), UnstructuredPoissonProblem< ELEMENT >::apply_boundary_conditions(), PoissonProblem< ELEMENT >::apply_boundary_conditions(), ExtrudedMovingCylinderProblem< TWO_D_ELEMENT, THREE_D_ELEMENT >::doc_solution(), UnstructuredPoissonProblem< ELEMENT >::doc_solution(), PoissonProblem< ELEMENT >::doc_solution(), RefineableTwoDPoissonProblem< ELEMENT >::doc_solution(), RefineableTwoMeshFluxPoissonProblem< ELEMENT >::doc_solution(), FluxPoissonMGProblem< ELEMENT, MESH >::doc_solution(), UnitCubePoissonMGProblem< ELEMENT, MESH >::doc_solution(), RefineablePoissonProblem< ELEMENT >::doc_solution(), EighthSpherePoissonProblem< ELEMENT >::doc_solution(), FluxPoissonProblem< ELEMENT >::doc_solution(), and TwoMeshFluxPoissonProblem< ELEMENT >::doc_solution().
Source function to make it an exact solution.
Source function required to make the solution above an exact solution.
References Alpha, get_exact_u(), Eigen::bfloat16_impl::pow(), TestProblem::source(), and plotDoE::x.
Referenced by UnstructuredPoissonProblem< ELEMENT >::complete_problem_setup(), oomph::BiharmonicEquations< DIM >::fill_in_generic_residual_contribution_biharmonic(), main(), UnitCubePoissonMGProblem< ELEMENT, MESH >::make_new_problem(), parallel_test(), run(), and run_test().
void TanhSolnForPoisson::prescribed_flux_on_fixed_x_boundary | ( | const Vector< double > & | x, |
double & | flux | ||
) |
Flux required by the exact solution on a boundary on which x is fixed.
References TanhSolnForAdvectionDiffusion::Alpha, ProblemParameters::flux(), N, Eigen::bfloat16_impl::pow(), Eigen::bfloat16_impl::tanh(), TanhSolnForAdvectionDiffusion::TanPhi, and plotDoE::x.
Referenced by FluxPoissonMGProblem< ELEMENT, MESH >::create_flux_elements(), FluxPoissonProblem< ELEMENT >::FluxPoissonProblem(), RefineableTwoMeshFluxPoissonProblem< ELEMENT >::set_prescribed_flux_pt(), and TwoMeshFluxPoissonProblem< ELEMENT >::TwoMeshFluxPoissonProblem().
Source function required to make the solution above an exact solution.
References TanhSolnForAdvectionDiffusion::Alpha, Eigen::bfloat16_impl::pow(), TestProblem::source(), Eigen::bfloat16_impl::tanh(), TanPhi, and plotDoE::x.
Referenced by main(), and FluxPoissonMGProblem< ELEMENT, MESH >::make_new_problem().
Zero function – used to compute norm of the computed solution by computing the norm of the error when compared against this.
Referenced by UnstructuredPoissonProblem< ELEMENT >::doc_solution().
double TanhSolnForPoisson::Alpha =1.0 |
Parameter for steepness of step.
Parameter for steepness of "step".
Referenced by EighthSpherePoissonProblem< ELEMENT >::EighthSpherePoissonProblem(), ExtrudedMovingCylinderProblem< TWO_D_ELEMENT, THREE_D_ELEMENT >::ExtrudedMovingCylinderProblem(), get_exact_u(), get_source(), main(), PoissonProblem< ELEMENT >::PoissonProblem(), run(), ThreeDPoissonProblem< ELEMENT >::ThreeDPoissonProblem(), and UnitCubePoissonMGProblem< ELEMENT, MESH >::UnitCubePoissonMGProblem().
double TanhSolnForPoisson::Beta |
Parameter for angle of step.
Referenced by main(), and PoissonProblem< ELEMENT >::PoissonProblem().
double TanhSolnForPoisson::N_x =-1.0 |
Orientation of non-normalised x-component of vector in plane direction.
Orientation (non-normalised x-component of unit vector in direction of step plane)
Referenced by get_exact_u().
double TanhSolnForPoisson::N_y =-1.0 |
Orientation of non-normalised y-component of vector in plane direction.
Orientation (non-normalised y-component of unit vector in direction of step plane)
Referenced by get_exact_u().
double TanhSolnForPoisson::N_z =1.0 |
Orientation of non-normalised z-component of vector in plane direction.
Orientation (non-normalised z-component of unit vector in direction of step plane)
Referenced by get_exact_u().
double TanhSolnForPoisson::TanPhi =0.0 |
Parameter for angle Phi of "step".
Parameter for angle Phi of "step" (45 degrees)
Referenced by main(), run(), and source_function().
double TanhSolnForPoisson::X_0 =0.0 |
Orientation (x-coordinate of step plane)
Referenced by get_exact_u(), oomph::AlgebraicChannelWithLeafletMesh< ELEMENT >::node_update_I(), oomph::AlgebraicChannelWithLeafletMesh< ELEMENT >::node_update_II(), oomph::AlgebraicChannelWithLeafletMesh< ELEMENT >::node_update_III(), oomph::AlgebraicChannelWithLeafletMesh< ELEMENT >::node_update_IV(), Leaflet::position(), oomph::AlgebraicChannelWithLeafletMesh< ELEMENT >::setup_algebraic_node_update(), oomph::AlgebraicChannelWithLeafletMesh< ELEMENT >::slanted_bound_up(), and Leaflet::x_0().
double TanhSolnForPoisson::X_shift =8.0 |
Shift of step along x-direction.
double TanhSolnForPoisson::Y_0 =0.0 |
Orientation (y-coordinate of step plane)
Referenced by get_exact_u().
double TanhSolnForPoisson::Z_0 =0.0 |
Orientation (z-coordinate of step plane)
Referenced by get_exact_u().