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... | |
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 | ||
) |
Referenced by main().
void assemble_poisson | ( | EquationSystems & | es, |
const std::string & | libmesh_dbg_varsystem_name | ||
) |
Definition at line 179 of file introduction_ex3.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::Real, libMesh::DenseVector< T >::resize(), libMesh::DenseMatrix< T >::resize(), libMesh::ExplicitSystem::rhs, and value.
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().
Definition at line 80 of file introduction_ex3.C.
References libMesh::EquationSystems::add_system(), assemble_poisson(), libMesh::MeshTools::Generation::build_square(), libMesh::default_solver_package(), libMesh::EquationSystems::get_system(), libMesh::TriangleWrapper::init(), libMesh::EquationSystems::init(), libMesh::INVALID_SOLVER_PACKAGE, mesh, libMesh::out, libMesh::EquationSystems::print_info(), libMesh::MeshBase::print_info(), libMesh::QUAD9, libMesh::SECOND, and libMesh::MeshOutput< MT >::write_equation_systems().