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 & | system_name | ||
) |
Definition at line 261 of file miscellaneous_ex16.C.
References libMesh::SparseMatrix< T >::add_matrix(), libMesh::NumericVector< T >::add_vector(), libMesh::FEGenericBase< OutputType >::build(), libMesh::SparseMatrix< T >::close(), libMesh::DofMap::constrain_element_matrix_and_vector(), dim, libMesh::DofMap::dof_indices(), exact_solution(), libMesh::FIFTH, libMesh::System::get_dof_map(), libMesh::EquationSystems::get_mesh(), libMesh::ImplicitSystem::get_static_condensation(), libMesh::EquationSystems::get_system(), libMesh::ImplicitSystem::get_system_matrix(), libMesh::System::has_static_condensation(), mesh, libMesh::MeshBase::mesh_dimension(), libMesh::QBase::n_points(), libMesh::Real, libMesh::DenseVector< T >::resize(), libMesh::DenseMatrix< T >::resize(), libMesh::ExplicitSystem::rhs, value, and libMesh::DofMap::variable_type().
Referenced by assemble_and_solve(), and main().
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 93 of file miscellaneous_ex16.C.
References libMesh::EquationSystems::add_system(), libMesh::System::add_variable(), assemble_poisson(), libMesh::MeshTools::Generation::build_square(), libMesh::MeshRefinement::coarsen_fraction(), libMesh::JumpErrorEstimator::estimate_error(), libMesh::MeshRefinement::flag_elements_by_error_fraction(), libMesh::TriangleWrapper::init(), libMesh::EquationSystems::init(), libMesh::StatisticsVector< T >::l2_norm(), libMesh::libmesh_assert(), libMesh::make_range(), libMesh::MeshRefinement::max_h_level(), libMesh::StatisticsVector< T >::maximum(), mesh, libMesh::out, libMesh::EquationSystems::print_info(), libMesh::MeshBase::print_info(), libMesh::QUAD9, libMesh::MeshRefinement::refine_and_coarsen_elements(), libMesh::MeshRefinement::refine_fraction(), libMesh::EquationSystems::reinit(), libMesh::relative_fuzzy_equals(), libMesh::SECOND, libMesh::JumpErrorEstimator::use_unweighted_quadrature_rules, and libMesh::ExodusII_IO::write_equation_systems().