Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Friends | List of all members
Nektar::LibUtilities::TimeIntegrationAdamsBashforthOrder2 Class Reference

#include <TimeIntegrationWrapper.h>

Inheritance diagram for Nektar::LibUtilities::TimeIntegrationAdamsBashforthOrder2:
Inheritance graph
[legend]
Collaboration diagram for Nektar::LibUtilities::TimeIntegrationAdamsBashforthOrder2:
Collaboration graph
[legend]

Public Member Functions

virtual ~TimeIntegrationAdamsBashforthOrder2 ()
 
- Public Member Functions inherited from Nektar::LibUtilities::TimeIntegrationWrapper
virtual ~TimeIntegrationWrapper ()
 
void InitObject ()
 
TimeIntegrationSolutionSharedPtr InitializeScheme (const NekDouble timestep, TimeIntegrationScheme::ConstDoubleArray &y_0, const NekDouble time, const TimeIntegrationSchemeOperators &op)
 
TimeIntegrationScheme::ConstDoubleArrayTimeIntegrate (const int timestep, const NekDouble delta_t, TimeIntegrationSolutionSharedPtr &solvector, const TimeIntegrationSchemeOperators &op)
 
TimeIntegrationMethod GetIntegrationMethod ()
 
unsigned int GetIntegrationSteps ()
 

Static Public Member Functions

static
TimeIntegrationWrapperSharedPtr 
create ()
 Creates an instance of this class. More...
 

Static Public Attributes

static std::string className
 Name of class. More...
 

Protected Member Functions

virtual void v_InitObject ()
 
- Protected Member Functions inherited from Nektar::LibUtilities::TimeIntegrationWrapper
 TimeIntegrationWrapper ()
 Constructor. More...
 

Friends

class MemoryManager< TimeIntegrationAdamsBashforthOrder2 >
 

Additional Inherited Members

- Protected Attributes inherited from Nektar::LibUtilities::TimeIntegrationWrapper
TimeIntegrationMethod m_method
 
int m_intSteps
 
std::vector
< TimeIntegrationSchemeSharedPtr
m_intScheme
 

Detailed Description

Definition at line 683 of file TimeIntegrationWrapper.h.

Constructor & Destructor Documentation

virtual Nektar::LibUtilities::TimeIntegrationAdamsBashforthOrder2::~TimeIntegrationAdamsBashforthOrder2 ( )
inlinevirtual

Definition at line 700 of file TimeIntegrationWrapper.h.

700 {}

Member Function Documentation

static TimeIntegrationWrapperSharedPtr Nektar::LibUtilities::TimeIntegrationAdamsBashforthOrder2::create ( )
inlinestatic

Creates an instance of this class.

Definition at line 689 of file TimeIntegrationWrapper.h.

References Nektar::MemoryManager< DataType >::AllocateSharedPtr().

690  {
694  p->InitObject();
695  return p;
696  }
static boost::shared_ptr< DataType > AllocateSharedPtr()
Allocate a shared pointer from the memory pool.
boost::shared_ptr< TimeIntegrationWrapper > TimeIntegrationWrapperSharedPtr
void Nektar::LibUtilities::TimeIntegrationAdamsBashforthOrder2::v_InitObject ( )
protectedvirtual

Reimplemented from Nektar::LibUtilities::TimeIntegrationWrapper.

Definition at line 440 of file TimeIntegrationWrapper.cpp.

References Nektar::LibUtilities::eAdamsBashforthOrder2, Nektar::LibUtilities::eForwardEuler, Nektar::LibUtilities::TimeIntegrationWrapper::m_intScheme, Nektar::LibUtilities::TimeIntegrationWrapper::m_intSteps, Nektar::LibUtilities::TimeIntegrationWrapper::m_method, and Nektar::LibUtilities::TimeIntegrationSchemeManager().

441  {
442  TimeIntegrationSchemeKey IntKey0(eForwardEuler);
443  TimeIntegrationSchemeKey IntKey1(eAdamsBashforthOrder2);
445  m_intSteps = 2;
446  m_intScheme = vector<TimeIntegrationSchemeSharedPtr>(m_intSteps);
448  m_intScheme[1] = TimeIntegrationSchemeManager()[IntKey1];
449  }
Adams-Bashforth Forward multi-step scheme of order 2.
TimeIntegrationSchemeManagerT & TimeIntegrationSchemeManager(void)
std::vector< TimeIntegrationSchemeSharedPtr > m_intScheme

Friends And Related Function Documentation

Definition at line 686 of file TimeIntegrationWrapper.h.

Member Data Documentation

string Nektar::LibUtilities::TimeIntegrationAdamsBashforthOrder2::className
static
Initial value:

Name of class.

Definition at line 698 of file TimeIntegrationWrapper.h.