LCS::Velocity< T, Dim > Class Template Reference
  Field of particle velocities. More...
#include <field.hpp>
Public Types | |
| using | vec = LCS::Vector< T, Dim > | 
Public Member Functions | |
| Velocity (unsigned nx, unsigned ny, Position< T, Dim > &pos) | |
| auto | Get (const unsigned i, const unsigned j) const | 
| auto & | GetPosition () | 
| void | InterpolateFrom (Velocity< T, Dim > &ref_vel) | 
  Public Member Functions inherited from LCS::Field< T, Dim, Dim > | |
| Field (unsigned nx, unsigned ny) | |
| auto & | GetAll () const | 
| auto | GetTime () const | 
| void | ReadFromFile (const std::string &file_name) | 
| void | SetAll (Tensor< Vector< T, Size >, Dim > &data) | 
| void | UpdateTime (const T time) | 
| void | WriteToFile (const std::string &file_name) const | 
Protected Attributes | |
| Position< T, Dim > & | pos_ | 
  Protected Attributes inherited from LCS::Field< T, Dim, Dim > | |
| const unsigned | nx_ | 
| const unsigned | ny_ | 
| Tensor< Vector< T, Size >, Dim > | data_ | 
| T | time_ | 
Detailed Description
template<typename T, unsigned Dim>
class LCS::Velocity< T, Dim >
Field of particle velocities.
This class is used for representing velocities of particles. It is a subclass of Field. A Position field is associated with each Velocity field.
- Template Parameters
 - 
  
T Numeric data type of the field. Dim Dimension of the field (2 or 3).  
Inheritance diagram for LCS::Velocity< T, Dim >:
  
 Constructor & Destructor Documentation
template<typename T, unsigned Dim> 
      
  | 
  inline | 
Member Function Documentation
template<typename T, unsigned Dim> 
      
  | 
  inline | 
Get the velocities of a grid point.
- Parameters
 - 
  
i Index in 
-coordinate. j Index in 
-coordinate.  
- Returns
 - Tuple contains 
- and 
-coordinates of a given grid point.  
template<typename T, unsigned Dim> 
      
  | 
  inline | 
template<typename T, unsigned Dim> 
      
  | 
  inline | 
Member Data Documentation
template<typename T, unsigned Dim> 
      
  | 
  protected | 
The documentation for this class was generated from the following file:
- src/field.hpp
 
          
          
 Public Member Functions inherited from