forked from idaholab/moose
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Everything is in and it works at solving diffusion problems refs idah…
- Loading branch information
Showing
30 changed files
with
674 additions
and
130 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/****************************************************************/ | ||
/* 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 ADDARRAYBCACTION_H | ||
#define ADDARRAYBCACTION_H | ||
|
||
#include "MooseObjectAction.h" | ||
|
||
class AddArrayBCAction; | ||
|
||
template<> | ||
InputParameters validParams<AddArrayBCAction>(); | ||
|
||
|
||
class AddArrayBCAction : public MooseObjectAction | ||
{ | ||
public: | ||
AddArrayBCAction(InputParameters params); | ||
|
||
virtual void act() override; | ||
}; | ||
|
||
#endif // ADDARRAYBCACTION_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
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
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,42 @@ | ||
/****************************************************************/ | ||
/* 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 ARRAYDIRICHLETBC_H | ||
#define ARRAYDIRICHLETBC_H | ||
|
||
#include "ArrayNodalBC.h" | ||
|
||
class ArrayDirichletBC; | ||
|
||
template<> | ||
InputParameters validParams<ArrayDirichletBC>(); | ||
|
||
/** | ||
* Boundary condition of a Dirichlet type | ||
* | ||
* Sets the value in the node | ||
*/ | ||
class ArrayDirichletBC : public ArrayNodalBC | ||
{ | ||
public: | ||
ArrayDirichletBC(const InputParameters & parameters); | ||
|
||
protected: | ||
virtual void computeQpResidual() override; | ||
|
||
/// The value for this BC | ||
Eigen::VectorXd _value; | ||
}; | ||
|
||
#endif /* ARRAYDIRICHLETBC_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
/****************************************************************/ | ||
/* 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 ARRAYNODALBC_H | ||
#define ARRAYNODALBC_H | ||
|
||
#include "NodalBCBase.h" | ||
|
||
// Forward declarations | ||
class ArrayNodalBC; | ||
|
||
// libMesh forward declarations | ||
namespace libMesh | ||
{ | ||
template <typename T> class NumericVector; | ||
} | ||
|
||
template<> | ||
InputParameters validParams<ArrayNodalBC>(); | ||
|
||
/** | ||
* Base class for deriving any boundary condition that works at nodes | ||
*/ | ||
class ArrayNodalBC : public NodalBCBase | ||
{ | ||
public: | ||
ArrayNodalBC(const InputParameters & parameters); | ||
|
||
virtual void computeResidual(NumericVector<Number> & residual); | ||
virtual void computeJacobian(); | ||
virtual void computeOffDiagJacobian(unsigned int jvar); | ||
|
||
protected: | ||
/// The MooseVariable this BC is acting on | ||
ArrayMooseVariable & _array_var; | ||
|
||
/// current node being processed | ||
const Node * & _current_node; | ||
|
||
/// The residual values to be set in computeQpResidual() | ||
Eigen::Map<Eigen::VectorXd> _residual; | ||
|
||
/// Quadrature point index | ||
unsigned int _qp; | ||
|
||
/// Value of the unknown variable this BC is acting on | ||
const ArrayVariableValue & _u; | ||
|
||
virtual void computeQpResidual() = 0; | ||
|
||
/** | ||
* The user can override this function to compute the "on-diagonal" | ||
* Jacobian contribution for this ArrayNodalBC. If not overriden, | ||
* returns 1. | ||
*/ | ||
virtual Real computeQpJacobian(); | ||
|
||
/** | ||
* This is the virtual that derived classes should override for | ||
* computing an off-diagonal jacobian component. | ||
*/ | ||
virtual Real computeQpOffDiagJacobian(unsigned int jvar); | ||
}; | ||
|
||
#endif /* ARRAYNODALBC_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
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,50 @@ | ||
/****************************************************************/ | ||
/* 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 NODALBCBASE_H | ||
#define NODALBCBASE_H | ||
|
||
#include "BoundaryCondition.h" | ||
#include "RandomInterface.h" | ||
#include "CoupleableMooseVariableDependencyIntermediateInterface.h" | ||
|
||
// Forward declarations | ||
class NodalBCBase; | ||
|
||
// libMesh forward declarations | ||
namespace libMesh | ||
{ | ||
template <typename T> class NumericVector; | ||
} | ||
|
||
template<> | ||
InputParameters validParams<NodalBCBase>(); | ||
|
||
/** | ||
* Base class for deriving any boundary condition that works at nodes | ||
*/ | ||
class NodalBCBase : | ||
public BoundaryCondition, | ||
public RandomInterface, | ||
public CoupleableMooseVariableDependencyIntermediateInterface | ||
{ | ||
public: | ||
NodalBCBase(const InputParameters & parameters); | ||
|
||
virtual void computeResidual(NumericVector<Number> & residual) = 0; | ||
virtual void computeJacobian() = 0; | ||
virtual void computeOffDiagJacobian(unsigned int jvar) = 0; | ||
}; | ||
|
||
#endif /* NODALBCBASE_H */ |
Oops, something went wrong.