Tempus
Version of the Day
Time Integration
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
src
Tempus_StepperNewmarkExplicitAFormAppActionComposite.hpp
Go to the documentation of this file.
1
// @HEADER
2
// ****************************************************************************
3
// Tempus: Copyright (2017) Sandia Corporation
4
//
5
// Distributed under BSD 3-clause license (See accompanying file Copyright.txt)
6
// ****************************************************************************
7
// @HEADER
8
9
#ifndef Tempus_StepperNewmarkExplicitAFormAppActionComposite_hpp
10
#define Tempus_StepperNewmarkExplicitAFormAppActionComposite_hpp
11
12
#include "Tempus_config.hpp"
13
#include "
Tempus_StepperNewmarkExplicitAFormAppAction.hpp
"
14
#include "Tempus_TimeStepControl.hpp"
15
#include <vector>
16
17
namespace
Tempus {
18
24
template
<
class
Scalar>
25
class
StepperNewmarkExplicitAFormAppActionComposite
26
:
virtual
public
Tempus::StepperNewmarkExplicitAFormAppAction
<Scalar>
27
{
28
public
:
29
31
StepperNewmarkExplicitAFormAppActionComposite
();
32
34
virtual
~StepperNewmarkExplicitAFormAppActionComposite
();
35
37
virtual
void
execute
(
38
Teuchos::RCP
<
SolutionHistory<Scalar>
> sh,
39
Teuchos::RCP
<
StepperNewmarkExplicitAForm<Scalar>
> stepper,
40
const
typename
StepperNewmarkExplicitAFormAppAction<Scalar>::ACTION_LOCATION
actLoc)
41
{
42
for
(
auto
& a :
appActions_
)
43
a->execute(sh, stepper, actLoc);
44
}
45
46
// Add AppAction to the AppAction vector.
47
void
addNewmarkExplicitAFormAppAction
(
Teuchos::RCP
<
StepperNewmarkExplicitAFormAppAction<Scalar>
> appAction);
48
{
49
appActions_
.push_back(appAction);
50
}
51
52
// Clear the AppAction vector.
53
void
clearAppActions
();
54
{
appActions_
.clear();}
55
56
// Return the size of the AppAction vector.
57
std::size_t
getSize
()
const
{
return
appActions_
.size(); }
58
59
private
:
60
61
std::vector<Teuchos::RCP<StepperNewmarkExplicitAFormAppAction<Scalar > > >
appActions_
;
62
63
};
64
65
}
// namespace Tempus
66
#endif // Tempus_StepperNewmarkExplicitAFormAppActionComposite_hpp
Tempus::StepperNewmarkExplicitAFormAppAction
Application Action for StepperNewmarkExplicitAForm.
Definition:
Tempus_StepperNewmarkExplicitAFormAppAction.hpp:34
Tempus::StepperNewmarkExplicitAFormAppActionComposite
This composite AppAction loops over added AppActions.
Definition:
Tempus_StepperNewmarkExplicitAFormAppActionComposite.hpp:25
Tempus::StepperNewmarkExplicitAFormAppActionComposite::appActions_
std::vector< Teuchos::RCP< StepperNewmarkExplicitAFormAppAction< Scalar > > > appActions_
Definition:
Tempus_StepperNewmarkExplicitAFormAppActionComposite.hpp:61
Tempus::StepperNewmarkExplicitAForm
Newmark Explicit time stepper.
Definition:
Tempus_StepperNewmarkExplicitAForm_decl.hpp:93
Tempus::StepperNewmarkExplicitAFormAppAction::ACTION_LOCATION
ACTION_LOCATION
Indicates the location of application action (see algorithm).
Definition:
Tempus_StepperNewmarkExplicitAFormAppAction.hpp:39
Tempus::SolutionHistory
SolutionHistory is basically a container of SolutionStates. SolutionHistory maintains a collection of...
Definition:
Tempus_Integrator.hpp:25
Tempus::StepperNewmarkExplicitAFormAppActionComposite::getSize
std::size_t getSize() const
Definition:
Tempus_StepperNewmarkExplicitAFormAppActionComposite.hpp:57
Tempus::StepperNewmarkExplicitAFormAppActionComposite::execute
virtual void execute(Teuchos::RCP< SolutionHistory< Scalar > > sh, Teuchos::RCP< StepperNewmarkExplicitAForm< Scalar > > stepper, const typename StepperNewmarkExplicitAFormAppAction< Scalar >::ACTION_LOCATION actLoc)
Execute application action for NewmarkExplicitAForm Stepper.
Definition:
Tempus_StepperNewmarkExplicitAFormAppActionComposite.hpp:37
Tempus_StepperNewmarkExplicitAFormAppAction.hpp
Tempus::StepperNewmarkExplicitAFormAppActionComposite::clearAppActions
void clearAppActions()
Tempus::StepperNewmarkExplicitAFormAppActionComposite::~StepperNewmarkExplicitAFormAppActionComposite
virtual ~StepperNewmarkExplicitAFormAppActionComposite()
Destructor.
Teuchos::RCP
Tempus::StepperNewmarkExplicitAFormAppActionComposite::addNewmarkExplicitAFormAppAction
void addNewmarkExplicitAFormAppAction(Teuchos::RCP< StepperNewmarkExplicitAFormAppAction< Scalar > > appAction)
Tempus::StepperNewmarkExplicitAFormAppActionComposite::StepperNewmarkExplicitAFormAppActionComposite
StepperNewmarkExplicitAFormAppActionComposite()
Default constructor.
Generated by
1.8.5