Helper class for handling essential boundary conditions.
More...
#include <petsc.hpp>
Helper class for handling essential boundary conditions.
Definition at line 330 of file petsc.hpp.
Enumerator |
---|
ZERO |
|
CONSTANT |
Constant in time b.c.
|
TIME_DEPENDENT |
|
Definition at line 333 of file petsc.hpp.
mfem::PetscBCHandler::PetscBCHandler |
( |
Type |
_type = ZERO | ) |
|
|
inline |
virtual mfem::PetscBCHandler::~PetscBCHandler |
( |
| ) |
|
|
inlinevirtual |
void mfem::PetscBCHandler::ApplyBC |
( |
const Vector & |
x, |
|
|
Vector & |
y |
|
) |
| |
y = x on ess_tdof_list_c and y = g (internally evaluated) on ess_tdof_list
Definition at line 1758 of file petsc.cpp.
virtual void mfem::PetscBCHandler::Eval |
( |
double |
t, |
|
|
Vector & |
g |
|
) |
| |
|
inlinevirtual |
Boundary conditions evaluation.
In the result vector, g, only values at the essential dofs need to be set.
Definition at line 356 of file petsc.hpp.
void mfem::PetscBCHandler::FixResidualBC |
( |
const Vector & |
x, |
|
|
Vector & |
y |
|
) |
| |
y = x-g on ess_tdof_list, the rest of y is unchanged
Definition at line 1783 of file petsc.cpp.
Array<int>& mfem::PetscBCHandler::GetTDofs |
( |
| ) |
|
|
inline |
Gets essential dofs (local, per-process numbering)
Definition at line 363 of file petsc.hpp.
Type mfem::PetscBCHandler::GetType |
( |
| ) |
const |
|
inline |
Returns the type of boundary conditions.
Definition at line 348 of file petsc.hpp.
void mfem::PetscBCHandler::SetTDofs |
( |
Array< int > & |
list | ) |
|
Sets essential dofs (local, per-process numbering)
Definition at line 1735 of file petsc.cpp.
void mfem::PetscBCHandler::SetTime |
( |
double |
t | ) |
|
|
inline |
Sets the current time.
Definition at line 366 of file petsc.hpp.
void mfem::PetscBCHandler::SetType |
( |
enum Type |
_type | ) |
|
|
inline |
Sets the type of boundary conditions.
Definition at line 351 of file petsc.hpp.
void mfem::PetscBCHandler::SetUp |
( |
PetscInt |
n | ) |
|
SetUp the helper object, where n is the size of the solution vector.
Definition at line 1742 of file petsc.cpp.
The documentation for this class was generated from the following files: