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_StepperHHTAlphaAppActionComposite.hpp
Go to the documentation of this file.
1
//@HEADER
2
// *****************************************************************************
3
// Tempus: Time Integration and Sensitivity Analysis Package
4
//
5
// Copyright 2017 NTESS and the Tempus contributors.
6
// SPDX-License-Identifier: BSD-3-Clause
7
// *****************************************************************************
8
//@HEADER
9
10
#ifndef Tempus_StepperHHTAlphaAppActionComposite_hpp
11
#define Tempus_StepperHHTAlphaAppActionComposite_hpp
12
13
#include "Tempus_config.hpp"
14
#include "
Tempus_StepperHHTAlphaAppAction.hpp
"
15
#include "Tempus_TimeStepControl.hpp"
16
#include <vector>
17
18
namespace
Tempus {
19
25
template
<
class
Scalar>
26
class
StepperHHTAlphaAppActionComposite
27
:
virtual
public
Tempus::StepperHHTAlphaAppAction
<Scalar> {
28
public
:
30
StepperHHTAlphaAppActionComposite
();
31
33
virtual
~StepperHHTAlphaAppActionComposite
();
34
36
virtual
void
execute
(
37
Teuchos::RCP
<
SolutionHistory<Scalar>
> sh,
38
Teuchos::RCP
<
StepperHHTAlpha<Scalar>
> stepper,
39
const
typename
StepperHHTAlphaAppAction<Scalar>::ACTION_LOCATION
actLoc)
40
{
41
for
(
auto
& a :
appActions_
) a->execute(sh, stepper, actLoc);
42
}
43
44
// Add AppAction to the AppAction vector.
45
void
addHHTAlphaAppAction
(
46
Teuchos::RCP
<
StepperHHTAlphaAppAction<Scalar>
> appAction);
47
{
48
appActions_
.push_back(appAction);
49
}
50
51
// Clear the AppAction vector.
52
void
clearHHTAlphaAppActions
();
53
{
54
appActions_
.clear();
55
}
56
57
// Return the size of the AppAction vector.
58
std::size_t
getSize
()
const
{
return
appActions_
.size(); }
59
60
private
:
61
std::vector<Teuchos::RCP<StepperHHTAlphaAppAction<Scalar> > >
appActions_
;
62
};
63
64
}
// namespace Tempus
65
#endif // Tempus_StepperHHTAlphaAppActionComposite_hpp
Tempus::StepperHHTAlpha
HHT-Alpha time stepper.
Definition:
Tempus_StepperHHTAlpha_decl.hpp:46
Tempus::StepperHHTAlphaAppAction
Application Action for HHT Alpha.
Definition:
Tempus_StepperHHTAlphaAppAction.hpp:31
Tempus::StepperHHTAlphaAppActionComposite::appActions_
std::vector< Teuchos::RCP< StepperHHTAlphaAppAction< Scalar > > > appActions_
Definition:
Tempus_StepperHHTAlphaAppActionComposite.hpp:61
Tempus::StepperHHTAlphaAppActionComposite::clearHHTAlphaAppActions
void clearHHTAlphaAppActions()
Tempus_StepperHHTAlphaAppAction.hpp
Tempus::StepperHHTAlphaAppActionComposite
This composite AppAction loops over added AppActions.
Definition:
Tempus_StepperHHTAlphaAppActionComposite.hpp:26
Tempus::StepperHHTAlphaAppActionComposite::addHHTAlphaAppAction
void addHHTAlphaAppAction(Teuchos::RCP< StepperHHTAlphaAppAction< Scalar > > appAction)
Tempus::StepperHHTAlphaAppActionComposite::getSize
std::size_t getSize() const
Definition:
Tempus_StepperHHTAlphaAppActionComposite.hpp:58
Tempus::SolutionHistory
SolutionHistory is basically a container of SolutionStates. SolutionHistory maintains a collection of...
Definition:
Tempus_Integrator.hpp:28
Tempus::StepperHHTAlphaAppAction::ACTION_LOCATION
ACTION_LOCATION
Indicates the location of application action (see algorithm).
Definition:
Tempus_StepperHHTAlphaAppAction.hpp:34
Teuchos::RCP
Tempus::StepperHHTAlphaAppActionComposite::StepperHHTAlphaAppActionComposite
StepperHHTAlphaAppActionComposite()
Default constructor.
Tempus::StepperHHTAlphaAppActionComposite::execute
virtual void execute(Teuchos::RCP< SolutionHistory< Scalar > > sh, Teuchos::RCP< StepperHHTAlpha< Scalar > > stepper, const typename StepperHHTAlphaAppAction< Scalar >::ACTION_LOCATION actLoc)
Execute application action for HHTAlpha Stepper.
Definition:
Tempus_StepperHHTAlphaAppActionComposite.hpp:36
Tempus::StepperHHTAlphaAppActionComposite::~StepperHHTAlphaAppActionComposite
virtual ~StepperHHTAlphaAppActionComposite()
Destructor.
Generated on Fri Nov 22 2024 09:23:26 for Tempus by
1.8.5