libMesh
|
Go to the source code of this file.
Functions | |
void | assemble_cd (EquationSystems &es, const std::string &system_name) |
void | init_cd (EquationSystems &es, const std::string &system_name) |
Real | exact_solution (const Real x, const Real y, const Real t) |
This is the exact solution that we are trying to obtain. More... | |
Number | exact_value (const Point &p, const Parameters ¶meters, const std::string &, const std::string &) |
std::string | exodus_filename (unsigned number) |
int | main (int argc, char **argv) |
void | init_cd (EquationSystems &es, const std::string &libmesh_dbg_var(system_name)) |
void | assemble_cd (EquationSystems &es, const std::string &libmesh_dbg_var(system_name)) |
Variables | |
std::unique_ptr< FunctionBase< Number > > | parsed_solution |
void assemble_cd | ( | EquationSystems & | es, |
const std::string & | system_name | ||
) |
Definition at line 296 of file transient_ex1.C.
References libMesh::TypeVector< T >::add_scaled(), libMesh::FEGenericBase< OutputType >::build(), libMesh::DofMap::constrain_element_matrix_and_vector(), dim, libMesh::DofMap::dof_indices(), exact_solution(), libMesh::Parameters::get(), libMesh::EquationSystems::get_mesh(), libMesh::EquationSystems::get_system(), libMesh::libmesh_ignore(), mesh, libMesh::MeshBase::mesh_dimension(), libMesh::TransientSystem< Base >::old_solution(), libMesh::EquationSystems::parameters, libMesh::Real, libMesh::DenseVector< T >::resize(), libMesh::DenseMatrix< T >::resize(), and value.
Referenced by main().
void assemble_cd | ( | EquationSystems & | es, |
const std::string & | libmesh_dbg_varsystem_name | ||
) |
Definition at line 565 of file adaptivity_ex5.C.
References libMesh::TypeVector< T >::add_scaled(), libMesh::FEGenericBase< OutputType >::build(), libMesh::DofMap::constrain_element_matrix_and_vector(), dim, libMesh::DofMap::dof_indices(), libMesh::Parameters::get(), libMesh::EquationSystems::get_mesh(), libMesh::EquationSystems::get_system(), mesh, libMesh::MeshBase::mesh_dimension(), libMesh::TransientSystem< Base >::old_solution(), libMesh::EquationSystems::parameters, libMesh::Real, libMesh::DenseVector< T >::resize(), and libMesh::DenseMatrix< T >::resize().
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 exact_value().
Number exact_value | ( | const Point & | p, |
const Parameters & | parameters, | ||
const std::string & | , | ||
const std::string & | |||
) |
Definition at line 106 of file adaptivity_ex5.C.
References exact_solution(), libMesh::Parameters::get(), and libMesh::Real.
Referenced by init_cd().
std::string exodus_filename | ( | unsigned | number | ) |
Definition at line 759 of file adaptivity_ex5.C.
Referenced by main().
void init_cd | ( | EquationSystems & | es, |
const std::string & | system_name | ||
) |
Referenced by main().
void init_cd | ( | EquationSystems & | es, |
const std::string & | libmesh_dbg_varsystem_name | ||
) |
Definition at line 538 of file adaptivity_ex5.C.
References exact_value(), libMesh::EquationSystems::get_system(), libMesh::if(), libMesh::EquationSystems::parameters, parsed_solution, libMesh::Real, and libMesh::Parameters::set().
Definition at line 129 of file adaptivity_ex5.C.
References libMesh::DofMap::add_periodic_boundary(), assemble_cd(), libMesh::MeshTools::Generation::build_square(), libMesh::MeshRefinement::coarsen_fraction(), libMesh::command_line_next(), libMesh::DECODE, libMesh::default_solver_package(), libMesh::ENCODE, libMesh::JumpErrorEstimator::estimate_error(), exodus_filename(), libMesh::FIRST, libMesh::MeshRefinement::flag_elements_by_error_fraction(), libMesh::BasicOStreamProxy< charT, traits >::flags(), libMesh::DofMap::get_periodic_boundaries(), libMesh::H1, libMesh::TriangleWrapper::init(), init_cd(), libMesh::INVALID_SOLVER_PACKAGE, libMesh::invalid_uint, libMesh::MeshRefinement::max_h_level(), mesh, libMesh::PeriodicBoundaryBase::myboundary, libMesh::TransientSystem< Base >::old_local_solution, libMesh::on_command_line(), libMesh::out, libMesh::PeriodicBoundaryBase::pairedboundary, parsed_solution, libMesh::MeshBase::print_info(), libMesh::QUAD4, libMesh::MeshBase::read(), libMesh::Real, libMesh::MeshRefinement::refine_and_coarsen_elements(), libMesh::MeshRefinement::refine_fraction(), libMesh::MeshRefinement::set_periodic_boundaries_ptr(), libMesh::TOLERANCE, libMesh::TRILINOS_SOLVERS, libMesh::MeshRefinement::uniformly_refine(), libMesh::JumpErrorEstimator::use_unweighted_quadrature_rules, libMesh::MeshBase::write(), libMesh::MeshOutput< MT >::write_equation_systems(), and libMesh::ExodusII_IO::write_equation_systems().
std::unique_ptr<FunctionBase<Number> > parsed_solution |
Definition at line 116 of file adaptivity_ex5.C.