Helper class for handling essential boundary conditions.
More...
#include <petsc.hpp>
Helper class for handling essential boundary conditions.
Definition at line 447 of file petsc.hpp.
Enumerator |
---|
ZERO |
|
CONSTANT |
Constant in time b.c.
|
TIME_DEPENDENT |
|
Definition at line 450 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 2194 of file petsc.cpp.
void mfem::PetscBCHandler::ApplyBC |
( |
Vector & |
x | ) |
|
Replace boundary dofs with the current value.
Definition at line 2219 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 473 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 2243 of file petsc.cpp.
Array<int>& mfem::PetscBCHandler::GetTDofs |
( |
| ) |
|
|
inline |
Gets essential dofs (local, per-process numbering)
Definition at line 480 of file petsc.hpp.
Type mfem::PetscBCHandler::GetType |
( |
| ) |
const |
|
inline |
Returns the type of boundary conditions.
Definition at line 465 of file petsc.hpp.
void mfem::PetscBCHandler::SetTDofs |
( |
Array< int > & |
list | ) |
|
Sets essential dofs (local, per-process numbering)
Definition at line 2171 of file petsc.cpp.
void mfem::PetscBCHandler::SetTime |
( |
double |
t | ) |
|
|
inline |
Sets the current time.
Definition at line 483 of file petsc.hpp.
void mfem::PetscBCHandler::SetType |
( |
enum Type |
_type | ) |
|
|
inline |
Sets the type of boundary conditions.
Definition at line 468 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 2178 of file petsc.cpp.
The documentation for this class was generated from the following files: