NeumannBC Class Reference
[Finite-differences framework]
#include <ql/FiniteDifferences/boundarycondition.hpp>
Inheritance diagram for NeumannBC:

Detailed Description
Neumann boundary condition (i.e., constant derivative).
- Warning:
- The value passed must not be the value of the derivative. Instead, it must be comprehensive of the grid step between the first two points--i.e., it must be the difference between f[0] and f[1].
- Todo:
- generalize to time-dependent conditions.
Public Member Functions | |
NeumannBC (Real value, Side side) | |
void | applyBeforeApplying (TridiagonalOperator &) const |
void | applyAfterApplying (Array &) const |
void | applyBeforeSolving (TridiagonalOperator &, Array &rhs) const |
void | applyAfterSolving (Array &) const |
void | setTime (Time) |
Member Function Documentation
void setTime | ( | Time | ) | [virtual] |
This method sets the current time for time-dependent boundary conditions.
Implements BoundaryCondition.