libMesh
|
Public Member Functions | |
LargeDeformationElasticity (EquationSystems &es_in) | |
Real | kronecker_delta (unsigned int i, unsigned int j) |
Kronecker delta function. More... | |
Real | elasticity_tensor (Real young_modulus, Real poisson_ratio, unsigned int i, unsigned int j, unsigned int k, unsigned int l) |
Evaluate the fourth order tensor (C_ijkl) that relates stress to strain. More... | |
virtual void | jacobian (const NumericVector< Number > &soln, SparseMatrix< Number > &jacobian, NonlinearImplicitSystem &) |
Evaluate the Jacobian of the nonlinear system. More... | |
virtual void | residual (const NumericVector< Number > &soln, NumericVector< Number > &residual, NonlinearImplicitSystem &) |
Evaluate the residual of the nonlinear system. More... | |
void | compute_stresses () |
Compute the Cauchy stress for the current solution. More... | |
virtual void | residual (const NumericVector< Number > &X, NumericVector< Number > &R, sys_type &S)=0 |
Residual function. More... | |
virtual void | jacobian (const NumericVector< Number > &X, SparseMatrix< Number > &J, sys_type &S)=0 |
Jacobian function. More... | |
Private Attributes | |
EquationSystems & | es |
Definition at line 87 of file systems_of_equations_ex7.C.
|
inline |
Definition at line 95 of file systems_of_equations_ex7.C.
|
inline |
Compute the Cauchy stress for the current solution.
Definition at line 381 of file systems_of_equations_ex7.C.
References libMesh::TypeTensor< T >::add_scaled(), libMesh::FEGenericBase< OutputType >::build(), libMesh::System::current_solution(), libMesh::FEType::default_quadrature_order(), libMesh::TypeTensor< T >::det(), dim, libMesh::DofMap::dof_indices(), elasticity_tensor(), libMesh::Parameters::get(), libMesh::System::get_dof_map(), libMesh::EquationSystems::get_mesh(), libMesh::EquationSystems::get_system(), mesh, libMesh::MeshBase::mesh_dimension(), libMesh::System::n_vars(), libMesh::EquationSystems::parameters, libMesh::Real, libMesh::System::solution, libMesh::TypeTensor< T >::transpose(), libMesh::System::update(), libMesh::System::variable_number(), libMesh::DofMap::variable_type(), and libMesh::TypeTensor< T >::zero().
Referenced by main().
|
inline |
Evaluate the fourth order tensor (C_ijkl) that relates stress to strain.
Definition at line 111 of file systems_of_equations_ex7.C.
References kronecker_delta(), and libMesh::Real.
|
pure virtualinherited |
Jacobian function.
This function will be called to compute the jacobian and must be implemented by the user in a derived class.
Referenced by libMesh::Problem_Interface::computeJacobian(), libMesh::Problem_Interface::computePreconditioner(), and libMesh::libmesh_petsc_snes_jacobian().
|
inlinevirtual |
Evaluate the Jacobian of the nonlinear system.
Definition at line 130 of file systems_of_equations_ex7.C.
References libMesh::SparseMatrix< T >::add_matrix(), libMesh::FEGenericBase< OutputType >::build(), libMesh::DofMap::constrain_element_matrix(), libMesh::FEType::default_quadrature_order(), dim, libMesh::DofMap::dof_indices(), elasticity_tensor(), libMesh::Parameters::get(), libMesh::System::get_dof_map(), libMesh::EquationSystems::get_mesh(), libMesh::EquationSystems::get_system(), mesh, libMesh::MeshBase::mesh_dimension(), libMesh::EquationSystems::parameters, libMesh::Real, libMesh::DenseMatrix< T >::resize(), libMesh::System::variable_number(), libMesh::DofMap::variable_type(), and libMesh::SparseMatrix< T >::zero().
Kronecker delta function.
Definition at line 102 of file systems_of_equations_ex7.C.
|
pure virtualinherited |
Residual function.
This function will be called to compute the residual and must be implemented by the user in a derived class.
Referenced by libMesh::Problem_Interface::computeF(), libMesh::libmesh_petsc_snes_fd_residual(), libMesh::libmesh_petsc_snes_mffd_residual(), and libMesh::libmesh_petsc_snes_residual().
|
inlinevirtual |
Evaluate the residual of the nonlinear system.
Definition at line 262 of file systems_of_equations_ex7.C.
References libMesh::NumericVector< T >::add_vector(), libMesh::FEGenericBase< OutputType >::build(), libMesh::DofMap::constrain_element_vector(), libMesh::FEType::default_quadrature_order(), dim, libMesh::DofMap::dof_indices(), elasticity_tensor(), libMesh::Parameters::get(), libMesh::System::get_dof_map(), libMesh::EquationSystems::get_mesh(), libMesh::EquationSystems::get_system(), mesh, libMesh::MeshBase::mesh_dimension(), libMesh::EquationSystems::parameters, libMesh::Real, libMesh::DenseVector< T >::resize(), libMesh::System::variable_number(), libMesh::DofMap::variable_type(), and libMesh::NumericVector< T >::zero().
|
private |
Definition at line 91 of file systems_of_equations_ex7.C.