Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F82670184
compute_verlet_integration.hh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Sep 12, 18:51
Size
1021 B
Mime Type
text/x-c++
Expires
Sat, Sep 14, 18:51 (1 d, 22 h)
Engine
blob
Format
Raw Data
Handle
20697396
Attached To
R7571 SP4E-TB-TL-FR
compute_verlet_integration.hh
View Options
#ifndef __COMPUTE_VERLET_INTEGRATION__HH__
#define __COMPUTE_VERLET_INTEGRATION__HH__
/* -------------------------------------------------------------------------- */
#include "compute.hh"
#include "compute_interaction.hh"
/* -------------------------------------------------------------------------- */
#include <cmath>
//! Integrate equation of motion
class
ComputeVerletIntegration
:
public
Compute
{
using
InteractionList
=
std
::
vector
<
std
::
shared_ptr
<
ComputeInteraction
>>
;
// Constructors/Destructors
public
:
ComputeVerletIntegration
(
Real
timestep
);
// Methods
public
:
//! Set time step
void
setDeltaT
(
Real
dt
);
//! Evolve positions and velocities
void
compute
(
System
&
system
)
override
;
//! Add an interaction to the computation of forces
void
addInteraction
(
std
::
shared_ptr
<
ComputeInteraction
>
interaction
);
private
:
Real
dt
;
InteractionList
interactions
;
};
/* -------------------------------------------------------------------------- */
#endif
//__COMPUTE_VERLET_INTEGRATION__HH__
Event Timeline
Log In to Comment