Public Member Functions | List of all members
ConstantGravity Class Reference

Acceleration due to constant gravity. More...

#include <ConstantGravity.hpp>

Inheritance diagram for ConstantGravity:
Inheritance graph
[legend]
Collaboration diagram for ConstantGravity:
Collaboration graph
[legend]

Public Member Functions

 ConstantGravity (Vector2D const &force)
 Class constructor. More...
 
Vector2D operator() (const Tessellation &tess, const vector< ComputationalCell > &cells, const vector< Extensive > &fluxes, const double time, const int point, TracerStickerNames const &tracerstickernames) const
 Calculates the acceleration that the cell feels. More...
 

Detailed Description

Acceleration due to constant gravity.

Definition at line 12 of file ConstantGravity.hpp.

Constructor & Destructor Documentation

◆ ConstantGravity()

ConstantGravity::ConstantGravity ( Vector2D const &  force)
explicit

Class constructor.

Parameters
forceThe acceleration vector

Definition at line 3 of file ConstantGravity.cpp.

Member Function Documentation

◆ operator()()

Vector2D ConstantGravity::operator() ( const Tessellation tess,
const vector< ComputationalCell > &  cells,
const vector< Extensive > &  fluxes,
const double  time,
const int  point,
TracerStickerNames const &  tracerstickernames 
) const
virtual

Calculates the acceleration that the cell feels.

Parameters
tessThe tessellation
cellsThe primitive cells
pointThe index of the cell to calculate
fluxesThe vector of the fluxes
timeThe simulation time
tracerstickernamesThe names of the tracers and stickers
Returns
The calculated acceleration

Implements Acceleration.

Definition at line 7 of file ConstantGravity.cpp.


The documentation for this class was generated from the following files: