marian::ExplicitScheme Class Reference
Class implements implicit schemes. More...
#include <explicitScheme.hpp>
Inheritance diagram for marian::ExplicitScheme:
Public Member Functions | |
| void | setSolver (const SmartPointer< TridiagonalSolver > &) override |
| Provides a solver used in implicit scheme. More... | |
| std::vector< double > | solve (std::vector< double > f, const std::vector< SmartPointer< BoundaryCondition > > &bcs, const std::vector< double > &time_grid, const TridiagonalOperator &L) override |
| Solves PDE defined by provided linear operator L and initial and boundary conditions. More... | |
| std::vector< double > | solveAndSave (std::vector< double > f, const std::vector< SmartPointer< BoundaryCondition > > &bcs, const std::vector< double > &spatial_grid, const std::vector< double > &time_grid, const TridiagonalOperator &L, const std::string file_name) override |
| Solves PDE defined by provided linear operator L and initial and boundary conditions. Additionally saves solution to CSV file. More... | |
| std::string | info () const override |
| Returns scheme name. | |
Public Member Functions inherited from marian::DCFDScheme< ExplicitScheme > | |
| virtual FDScheme * | clone () const |
| Virtual copy constructor. | |
Public Member Functions inherited from marian::FDScheme | |
| virtual | ~FDScheme () |
| Deconstructor. | |
Detailed Description
When we solve following parabolic PDE:
where L is linear operator, we can use different time discretization scheme, for example:
For more information see [2] [5] [10] .
- Examples:
- convergenceExample.cpp.
Member Function Documentation
|
inlineoverridevirtual |
For explicit method this method is empty.
Implements marian::FDScheme.
|
overridevirtual |
- Parameters
-
f Initial condition bcs Boundary conditions time_grid Time grid used in L Linear operator defining PDE
- Returns
- Solution in form of std::vector
Implements marian::FDScheme.
|
overridevirtual |
- Parameters
-
f Initial condition bcs Boundary conditions spatial_grid Spatial grid corresponding to initial conditions (used only to save the solution to CSV file) time_grid Time grid used for time dimension of FDM L Linear operator defining PDE file_name Name of CSV file
- Returns
- Solution in form of std::vector
Implements marian::FDScheme.
The documentation for this class was generated from the following files:
- C:/Unix/home/OEM/fdm/src/FDM/schemes/explicitScheme.hpp
- C:/Unix/home/OEM/fdm/src/FDM/schemes/explicitScheme.cpp

Public Member Functions inherited from
1.8.11