libMesh
|
Go to the source code of this file.
Functions | |
void | assemble_poisson (EquationSystems &es, const std::string &system_name) |
Real | exact_solution (const Real x, const Real y, const Real z=0.) |
This is the exact solution that we are trying to obtain. More... | |
void | exact_solution_wrapper (DenseVector< Number > &output, const Point &p, const Real) |
int | main (int argc, char **argv) |
void | assemble_poisson (EquationSystems &es, const std::string &libmesh_dbg_var(system_name)) |
void assemble_poisson | ( | EquationSystems & | es, |
const std::string & | system_name | ||
) |
Definition at line 261 of file miscellaneous_ex16.C.
Referenced by main().
void assemble_poisson | ( | EquationSystems & | es, |
const std::string & | libmesh_dbg_varsystem_name | ||
) |
Definition at line 313 of file introduction_ex4.C.
References libMesh::SparseMatrix< T >::add_matrix(), libMesh::NumericVector< T >::add_vector(), libMesh::FEGenericBase< OutputType >::build(), dim, exact_solution(), libMesh::FIFTH, libMesh::System::get_dof_map(), libMesh::EquationSystems::get_mesh(), libMesh::EquationSystems::get_system(), libMesh::ImplicitSystem::get_system_matrix(), mesh, libMesh::MeshBase::mesh_dimension(), libMesh::QBase::n_points(), libMesh::pi, libMesh::PerfLog::pop(), libMesh::PerfLog::push(), libMesh::Real, libMesh::DenseVector< T >::resize(), libMesh::DenseMatrix< T >::resize(), and libMesh::ExplicitSystem::rhs.
Real exact_solution | ( | const Real | x, |
const Real | y, | ||
const Real | t | ||
) |
This is the exact solution that we are trying to obtain.
We will solve
and take a finite difference approximation using this function to get f. This is the well-known "method of manufactured solutions".
Definition at line 43 of file exact_solution.C.
Referenced by assemble_poisson(), and exact_solution_wrapper().
void exact_solution_wrapper | ( | DenseVector< Number > & | output, |
const Point & | p, | ||
const Real | |||
) |
Definition at line 107 of file introduction_ex4.C.
References exact_solution().
Referenced by main().
Definition at line 117 of file introduction_ex4.C.
References libMesh::DofMap::add_dirichlet_boundary(), libMesh::EquationSystems::add_system(), libMesh::System::add_variable(), assemble_poisson(), libMesh::System::attach_assemble_function(), libMesh::MeshTools::Generation::build_cube(), libMesh::command_line_next(), libMesh::default_solver_package(), dim, libMesh::EDGE2, libMesh::EDGE3, exact_solution_wrapper(), libMesh::System::get_dof_map(), libMesh::GnuPlotIO::GRID_ON, libMesh::HEX27, libMesh::HEX8, libMesh::TriangleWrapper::init(), libMesh::EquationSystems::init(), libMesh::INVALID_SOLVER_PACKAGE, mesh, libMesh::out, libMesh::EquationSystems::print_info(), libMesh::MeshBase::print_info(), libMesh::QUAD4, libMesh::QUAD9, libMesh::Real, libMesh::LinearImplicitSystem::solve(), libMesh::MeshOutput< MT >::write_equation_systems(), and libMesh::ExodusII_IO::write_equation_systems().