Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91900433
compute_gravity.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
Fri, Nov 15, 14:21
Size
646 B
Mime Type
text/x-c++
Expires
Sun, Nov 17, 14:21 (2 d)
Engine
blob
Format
Raw Data
Handle
22342291
Attached To
R9490 Homework_sp4e_Peruzzo_SáezUribe
compute_gravity.hh
View Options
#ifndef __COMPUTE_GRAVITY__HH__
#define __COMPUTE_GRAVITY__HH__
/* -------------------------------------------------------------------------- */
#include "compute_interaction.hh"
//! Compute Newton gravity interaction
class ComputeGravity : public ComputeInteraction {
// Virtual implementation
public:
//! Newton gravity implementation
void compute(System& system) override;
// Accessors
public:
//! set the gravitational constant
void setG(Real G);
// Members
private:
//! newton constant
Real G = 1.;
};
/* -------------------------------------------------------------------------- */
#endif //__COMPUTE_GRAVITY__HH__
Event Timeline
Log In to Comment