Gradient Augmented Levelset Implementation in CPU & GPU
Velocity< T_GRID, T > Class Template Reference

#include <velocity.h>

Public Member Functions

 Velocity (const T_GRID &grid, const GALS::INPUT_FIELDS::Velocity &inputs)
 
 Velocity ()=delete
 
 ~Velocity ()
 
const T_GRID & grid () const
 
void compute (const GALS::CPU::Array< T_GRID, GALS::CPU::Vec3< T >> &positions, const T time, GALS::CPU::LevelsetVelocity< T_GRID, T > &levelset_velocity)
 

Detailed Description

template<typename T_GRID, typename T = double>
class GALS::ANALYTICAL_FIELDS::Velocity< T_GRID, T >

Class to create analytical velocity fields.

Definition at line 61 of file velocity.h.

Constructor & Destructor Documentation

Velocity ( const T_GRID &  grid,
const GALS::INPUT_FIELDS::Velocity< T_GRID, T > &  inputs 
)

Constructor with grid.

Parameters
gridgrid.
inputsvelocity input fields of type GALS::INPUT_FIELDS::Velocity

Definition at line 39 of file velocity.cc.

Velocity ( )
delete

Remove default constructor.

~Velocity ( )

Destructor

Definition at line 45 of file velocity.cc.

Member Function Documentation

void compute ( const GALS::CPU::Array< T_GRID, GALS::CPU::Vec3< T >> &  positions,
const T  time,
GALS::CPU::LevelsetVelocity< T_GRID, T > &  levelset_velocity 
)

Compute velocity field.

Parameters
positionsarray of positions where velocity needs to be computed.
timetime, for some velocity fields.
levelset_velocityvelocity field which will be updated by this function.

Definition at line 50 of file velocity.cc.

const T_GRID& grid ( ) const
inline

Return grid.

Returns
grid.

Definition at line 83 of file velocity.h.


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