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 &) |
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 & | 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().
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.
References libMesh::pi, libMesh::Utility::pow(), and libMesh::Real.
Referenced by assemble_cd(), and exact_value().
Number exact_value | ( | const Point & | p, |
const Parameters & | parameters, | ||
const std::string & | , | ||
const std::string & | |||
) |
Definition at line 92 of file transient_ex1.C.
References exact_solution(), libMesh::Parameters::get(), and libMesh::Real.
Referenced by init_cd().
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 274 of file transient_ex1.C.
References exact_value(), libMesh::EquationSystems::get_system(), libMesh::EquationSystems::parameters, libMesh::Real, and libMesh::Parameters::set().
Definition at line 105 of file transient_ex1.C.
References libMesh::EquationSystems::add_system(), libMesh::ExodusII_IO::append(), assemble_cd(), libMesh::default_solver_package(), exodus_filename(), libMesh::FIRST, libMesh::EquationSystems::get_system(), libMesh::TriangleWrapper::init(), libMesh::EquationSystems::init(), init_cd(), libMesh::INVALID_SOLVER_PACKAGE, mesh, libMesh::TransientSystem< Base >::old_local_solution, libMesh::out, libMesh::EquationSystems::parameters, libMesh::EquationSystems::print_info(), libMesh::MeshBase::print_info(), libMesh::MeshBase::read(), libMesh::Real, libMesh::Parameters::set(), libMesh::MeshRefinement::uniformly_refine(), libMesh::MeshOutput< MT >::write_equation_systems(), and libMesh::ExodusII_IO::write_timestep().