forked from idaholab/moose
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Testing the concept of nonlocal jacobian contribution (idaholab#5913)
- Loading branch information
SudiptaBiswas
committed
Aug 24, 2016
1 parent
ac12e54
commit 7f820c6
Showing
23 changed files
with
795 additions
and
40 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
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,43 @@ | ||
/****************************************************************/ | ||
/* DO NOT MODIFY THIS HEADER */ | ||
/* MOOSE - Multiphysics Object Oriented Simulation Environment */ | ||
/* */ | ||
/* (c) 2010 Battelle Energy Alliance, LLC */ | ||
/* ALL RIGHTS RESERVED */ | ||
/* */ | ||
/* Prepared by Battelle Energy Alliance, LLC */ | ||
/* Under Contract No. DE-AC07-05ID14517 */ | ||
/* With the U. S. Department of Energy */ | ||
/* */ | ||
/* See COPYRIGHT for full restrictions */ | ||
/****************************************************************/ | ||
|
||
#ifndef NONLOCALKERNEL_H | ||
#define NONLOCALKERNEL_H | ||
|
||
#include "Kernel.h" | ||
|
||
class NonlocalKernel; | ||
|
||
template<> | ||
InputParameters validParams<NonlocalKernel>(); | ||
|
||
class NonlocalKernel : | ||
public Kernel | ||
{ | ||
public: | ||
NonlocalKernel(const InputParameters & parameters); | ||
|
||
virtual void computeJacobian(); | ||
virtual void computeOffDiagJacobian(unsigned int jvar); | ||
|
||
protected: | ||
/// Compute this Kernel's contribution to the Jacobian corresponding to nolocal dof at the current quadrature point | ||
virtual Real computeQpNonlocalJacobian(dof_id_type dof_index); | ||
virtual Real computeQpNonlocalOffDiagJacobian(unsigned int jvar, dof_id_type dof_index); | ||
|
||
DenseMatrix<Number> _nonlocal_ke; | ||
unsigned int _k; | ||
}; | ||
|
||
#endif /* NONLOCALKERNEL_H */ |
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.