libMesh
|
Go to the source code of this file.
Functions | |
Real | exact_solution (const int component, const Real x, const Real y, const Real z=0.) |
This is the exact solution that we are trying to obtain. More... | |
Real | forcing_function (const int component, const Real x, const Real y, const Real z=0.) |
void | compute_residual (const NumericVector< Number > &X, NumericVector< Number > &R, NonlinearImplicitSystem &system) |
void | compute_jacobian (const NumericVector< Number > &, SparseMatrix< Number > &J, NonlinearImplicitSystem &system) |
void compute_jacobian | ( | const NumericVector< Number > & | , |
SparseMatrix< Number > & | J, | ||
NonlinearImplicitSystem & | system | ||
) |
Definition at line 315 of file assembly.C.
References libMesh::Elem::active(), libMesh::SparseMatrix< T >::add_matrix(), libMesh::FEGenericBase< OutputType >::build(), libMesh::FEType::default_quadrature_order(), dim, libMesh::DofMap::dof_indices(), libMesh::Parameters::get(), libMesh::System::get_dof_map(), libMesh::System::get_equation_systems(), libMesh::System::get_mesh(), libMesh::DofObject::id(), libMesh::FEMap::inverse_map(), libMesh::Elem::level(), mesh, libMesh::MeshBase::mesh_dimension(), libMesh::System::name(), libMesh::Elem::neighbor_ptr(), libMesh::EquationSystems::parameters, libMesh::Utility::pow(), libMesh::Real, libMesh::DenseMatrix< T >::resize(), and libMesh::DofMap::variable_type().
Referenced by libMesh::FirstOrderUnsteadySolver::compute_second_order_eqns(), SigmaPhysics::element_time_derivative(), LaplaceSystem::element_time_derivative(), PoissonSystem::element_time_derivative(), HeatSystem::element_time_derivative(), main(), and LaplaceSystem::side_constraint().
void compute_residual | ( | const NumericVector< Number > & | X, |
NumericVector< Number > & | R, | ||
NonlinearImplicitSystem & | system | ||
) |
Vectors to hold the local solution degree of freedom values
Vector to hold the local solution
Definition at line 27 of file assembly.C.
References libMesh::Elem::active(), libMesh::NumericVector< T >::add_vector(), libMesh::FEGenericBase< OutputType >::build(), libMesh::FEType::default_quadrature_order(), dim, libMesh::DofMap::dof_indices(), exact_solution(), forcing_function(), libMesh::Parameters::get(), libMesh::NumericVector< T >::get(), libMesh::System::get_dof_map(), libMesh::System::get_equation_systems(), libMesh::System::get_mesh(), libMesh::DofObject::id(), libMesh::FEMap::inverse_map(), libMesh::Elem::level(), mesh, libMesh::MeshBase::mesh_dimension(), libMesh::System::name(), libMesh::Elem::neighbor_ptr(), libMesh::EquationSystems::parameters, libMesh::Utility::pow(), libMesh::Real, libMesh::DenseVector< T >::resize(), and libMesh::DofMap::variable_type().
Referenced by main().
Real exact_solution | ( | const int | component, |
const Real | x, | ||
const Real | y, | ||
const Real | z = 0. |
||
) |
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 39 of file exact_solution.C.
References libMesh::pi, and libMesh::Real.
Referenced by compute_residual().
Real forcing_function | ( | const int | component, |
const Real | x, | ||
const Real | y, | ||
const Real | z = 0. |
||
) |
Definition at line 59 of file exact_solution.C.
References libMesh::pi, and libMesh::Real.
Referenced by compute_residual().