QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
#include <fdmdirichletboundary.hpp>
Public Types | |
typedef FdmLinearOp | operator_type |
typedef FdmLinearOp::array_type | array_type |
typedef BoundaryCondition< FdmLinearOp >::Side | Side |
Public Types inherited from BoundaryCondition< FdmLinearOp > | |
enum | Side |
typedef FdmLinearOp | operator_type |
typedef Operator::array_type | array_type |
Public Member Functions | |
FdmDirichletBoundary (const ext::shared_ptr< FdmMesher > &mesher, Real valueOnBoundary, Size direction, Side side) | |
void | applyBeforeApplying (operator_type &) const override |
void | applyBeforeSolving (operator_type &, array_type &) const override |
void | applyAfterApplying (array_type &) const override |
void | applyAfterSolving (array_type &) const override |
void | setTime (Time) override |
Real | applyAfterApplying (Real x, Real value) const |
Public Member Functions inherited from BoundaryCondition< FdmLinearOp > | |
virtual | ~BoundaryCondition ()=default |
virtual void | applyBeforeApplying (operator_type &) const=0 |
virtual void | applyAfterApplying (array_type &) const=0 |
virtual void | applyBeforeSolving (operator_type &, array_type &rhs) const=0 |
virtual void | applyAfterSolving (array_type &) const=0 |
virtual void | setTime (Time t)=0 |
Private Attributes | |
const Side | side_ |
const Real | valueOnBoundary_ |
const std::vector< Size > | indices_ |
Real | xExtreme_ |
Definition at line 38 of file fdmdirichletboundary.hpp.
typedef FdmLinearOp operator_type |
Definition at line 41 of file fdmdirichletboundary.hpp.
typedef FdmLinearOp::array_type array_type |
Definition at line 42 of file fdmdirichletboundary.hpp.
typedef BoundaryCondition<FdmLinearOp>::Side Side |
Definition at line 43 of file fdmdirichletboundary.hpp.
FdmDirichletBoundary | ( | const ext::shared_ptr< FdmMesher > & | mesher, |
Real | valueOnBoundary, | ||
Size | direction, | ||
FdmDirichletBoundary::Side | side | ||
) |
Definition at line 30 of file fdmdirichletboundary.cpp.
|
overridevirtual |
This method modifies an operator \( L \) before it is applied to an array \( u \) so that \( v = Lu \) will satisfy the given condition.
Implements BoundaryCondition< FdmLinearOp >.
Definition at line 51 of file fdmdirichletboundary.cpp.
|
override |
Definition at line 60 of file fdmdirichletboundary.cpp.
|
override |
|
override |
|
overridevirtual |
This method sets the current time for time-dependent boundary conditions.
Implements BoundaryCondition< FdmLinearOp >.
Definition at line 52 of file fdmdirichletboundary.hpp.
Definition at line 68 of file fdmdirichletboundary.cpp.
|
private |
Definition at line 57 of file fdmdirichletboundary.hpp.
|
private |
Definition at line 58 of file fdmdirichletboundary.hpp.
|
private |
Definition at line 59 of file fdmdirichletboundary.hpp.
|
private |
Definition at line 61 of file fdmdirichletboundary.hpp.