https://mooseframework.inl.gov
include
systems
ComputeResidualAndJacobian.h
Go to the documentation of this file.
1
//* This file is part of the MOOSE framework
2
//* https://mooseframework.inl.gov
3
//*
4
//* All rights reserved, see COPYRIGHT for full restrictions
5
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6
//*
7
//* Licensed under LGPL 2.1, please see LICENSE for details
8
//* https://www.gnu.org/licenses/lgpl-2.1.html
9
10
#pragma once
11
12
#include "libmesh/nonlinear_implicit_system.h"
13
14
class
FEProblemBase
;
15
16
namespace
libMesh
17
{
18
template
<
typename
>
19
class
NumericVector;
20
template
<
typename
>
21
class
SparseMatrix;
22
class
NonlinearImplicitSystem;
23
}
24
25
class
ComputeResidualAndJacobian
26
:
public
libMesh::NonlinearImplicitSystem::ComputeResidualandJacobian
27
{
28
private
:
29
FEProblemBase
&
_fe_problem
;
30
31
public
:
32
ComputeResidualAndJacobian
(
FEProblemBase
& fe_problem);
33
34
void
residual_and_jacobian
(
const
libMesh::NumericVector<libMesh::Number>
& u,
35
libMesh::NumericVector<libMesh::Number>
* R,
36
libMesh::SparseMatrix<libMesh::Number>
* J,
37
libMesh::NonlinearImplicitSystem
&)
override
;
38
};
ComputeResidualAndJacobian
Definition:
ComputeResidualAndJacobian.h:25
libMesh::NumericVector< libMesh::Number >
libMesh
The following methods are specializations for using the libMesh::Parallel::packed_range_* routines fo...
libMesh::NonlinearImplicitSystem
FEProblemBase
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
Definition:
FEProblemBase.h:132
libMesh::SparseMatrix
Definition:
Assembly.h:45
ComputeResidualAndJacobian::ComputeResidualAndJacobian
ComputeResidualAndJacobian(FEProblemBase &fe_problem)
Definition:
ComputeResidualAndJacobian.C:13
libMesh::NonlinearImplicitSystem::ComputeResidualandJacobian
ComputeResidualAndJacobian::residual_and_jacobian
void residual_and_jacobian(const libMesh::NumericVector< libMesh::Number > &u, libMesh::NumericVector< libMesh::Number > *R, libMesh::SparseMatrix< libMesh::Number > *J, libMesh::NonlinearImplicitSystem &) override
Definition:
ComputeResidualAndJacobian.C:19
ComputeResidualAndJacobian::_fe_problem
FEProblemBase & _fe_problem
Definition:
ComputeResidualAndJacobian.h:29
Generated on Mon Aug 11 2025 20:05:50 for https://mooseframework.inl.gov by
1.8.14