forked from idaholab/moose
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to compute residual and Jacobian together
Closes idaholab#19444
- Loading branch information
Showing
27 changed files
with
947 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
//* This file is part of the MOOSE framework | ||
//* https://www.mooseframework.org | ||
//* | ||
//* All rights reserved, see COPYRIGHT for full restrictions | ||
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT | ||
//* | ||
//* Licensed under LGPL 2.1, please see LICENSE for details | ||
//* https://www.gnu.org/licenses/lgpl-2.1.html | ||
|
||
#pragma once | ||
|
||
class FaceInfo; | ||
|
||
/** | ||
* Interface class for a finite volume residual object whose residuals are based on faces | ||
*/ | ||
class FVFaceResidualObject | ||
{ | ||
public: | ||
/** | ||
* Compute the residual on the supplied face | ||
*/ | ||
virtual void computeResidual(const FaceInfo & fi) = 0; | ||
|
||
/** | ||
* Compute the jacobian on the supplied face | ||
*/ | ||
virtual void computeJacobian(const FaceInfo & fi) = 0; | ||
|
||
/** | ||
* Compute the residual and Jacobian on the supplied face | ||
*/ | ||
virtual void computeResidualAndJacobian(const FaceInfo & fi) = 0; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.