|
libMesh
|
A class which provides the residual and jacobian assembly functions for the Laplace-Young system of equations. More...
Public Member Functions | |
| LaplaceYoung () | |
| virtual void | residual (const NumericVector< Number > &X, NumericVector< Number > &R, NonlinearImplicitSystem &S) |
| Function which computes the residual. | |
| virtual void | jacobian (const NumericVector< Number > &X, SparseMatrix< Number > &J, NonlinearImplicitSystem &S) |
| Function which computes the jacobian. | |
| virtual void | postcheck (const NumericVector< Number > &old_soln, NumericVector< Number > &search_direction, NumericVector< Number > &new_soln, bool &changed_search_direction, bool &changed_new_soln, NonlinearImplicitSystem &S) |
| Function which performs a postcheck on the solution. | |
Private Attributes | |
| Real | _kappa |
| Real | _sigma |
| Real | _gamma |
A class which provides the residual and jacobian assembly functions for the Laplace-Young system of equations.
Definition at line 78 of file miscellaneous_ex3.C.
|
inline |
Definition at line 84 of file miscellaneous_ex3.C.
|
virtual |
Function which computes the jacobian.
Definition at line 456 of file miscellaneous_ex3.C.
References _kappa, libMesh::FEGenericBase< OutputType >::build(), dim, libMesh::FIFTH, libMesh::System::get_dof_map(), libMesh::System::get_equation_systems(), libMesh::EquationSystems::get_mesh(), libMesh::EquationSystems::get_system(), jacobian(), mesh, libMesh::MeshBase::mesh_dimension(), libMesh::QBase::n_points(), and libMesh::DenseMatrix< T >::resize().
Referenced by jacobian().
|
virtual |
Function which performs a postcheck on the solution.
In this example, we take a "damped" Newton step defined by:
u_new = u_old + gamma*delta_u
where delta_u is the search direction, and 0 < gamma <= 1 is a damping parameter. gamma=1 corresponds to a full Newton step.
This is really for demonstration purposes only, as it just degrades the rate of nonlinear convergence in this particular example.
Definition at line 584 of file miscellaneous_ex3.C.
References _gamma, and libMesh::NumericVector< T >::add().
|
virtual |
Function which computes the residual.
Definition at line 286 of file miscellaneous_ex3.C.
References _kappa, _sigma, libMesh::FEGenericBase< OutputType >::build(), dim, libMesh::FIFTH, libMesh::System::get_dof_map(), libMesh::System::get_equation_systems(), libMesh::EquationSystems::get_mesh(), libMesh::EquationSystems::get_system(), mesh, libMesh::MeshBase::mesh_dimension(), libMesh::QBase::n_points(), residual(), libMesh::DenseVector< T >::resize(), and libMesh::DenseVector< T >::zero().
Referenced by residual().
|
private |
Definition at line 129 of file miscellaneous_ex3.C.
Referenced by postcheck().
|
private |
Definition at line 125 of file miscellaneous_ex3.C.
Referenced by jacobian(), and residual().
|
private |
Definition at line 126 of file miscellaneous_ex3.C.
Referenced by residual().