MaMiCo 1.2
Loading...
Searching...
No Matches
coupling::cellmappings::ComputeTemperatureMapping< LinkedCell, dim > Class Template Reference

This class computes the temperature in a certain (coupling) cell. More...

#include <ComputeTemperatureMapping.h>

Collaboration diagram for coupling::cellmappings::ComputeTemperatureMapping< LinkedCell, dim >:

Public Member Functions

 ComputeTemperatureMapping (const tarch::la::Vector< dim, double > &meanVelocity, coupling::interface::MDSolverInterface< LinkedCell, dim > *const mdSolverInterface)
 
 ~ComputeTemperatureMapping ()
 
void beginCellIteration ()
 
void endCellIteration ()
 
void handleCell (LinkedCell &cell)
 
double getTemperature () const
 

Private Attributes

coupling::interface::MDSolverInterface< LinkedCell, dim > *const _mdSolverInterface
 
const tarch::la::Vector< dim, double > _meanVelocity
 
double _temperature
 
unsigned int _particleCounter
 

Detailed Description

template<class LinkedCell, unsigned int dim>
class coupling::cellmappings::ComputeTemperatureMapping< LinkedCell, dim >

This class computes the temperature in a certain (coupling) cell.

Template Parameters
LinkedCellcell type
dimNumber of dimensions; it can be 1, 2 or 3
Author
Philipp Neumann

Constructor & Destructor Documentation

◆ ComputeTemperatureMapping()

template<class LinkedCell, unsigned int dim>
coupling::cellmappings::ComputeTemperatureMapping< LinkedCell, dim >::ComputeTemperatureMapping ( const tarch::la::Vector< dim, double > & meanVelocity,
coupling::interface::MDSolverInterface< LinkedCell, dim > *const mdSolverInterface )
inline

Constructor

Parameters
meanVelocity
mdSolverInterface

◆ ~ComputeTemperatureMapping()

template<class LinkedCell, unsigned int dim>
coupling::cellmappings::ComputeTemperatureMapping< LinkedCell, dim >::~ComputeTemperatureMapping ( )
inline

Destructor

Member Function Documentation

◆ beginCellIteration()

template<class LinkedCell, unsigned int dim>
void coupling::cellmappings::ComputeTemperatureMapping< LinkedCell, dim >::beginCellIteration ( )
inline

sets the temperature and the particle counter to zero, before the iteration process begins.

◆ endCellIteration()

template<class LinkedCell, unsigned int dim>
void coupling::cellmappings::ComputeTemperatureMapping< LinkedCell, dim >::endCellIteration ( )
inline

computes the temperature in a linked cell, based on equilibrium statistical mechanics.

◆ getTemperature()

template<class LinkedCell, unsigned int dim>
double coupling::cellmappings::ComputeTemperatureMapping< LinkedCell, dim >::getTemperature ( ) const
inline

returns the temperature inside a linked cell

Returns
_temperature

◆ handleCell()

template<class LinkedCell, unsigned int dim>
void coupling::cellmappings::ComputeTemperatureMapping< LinkedCell, dim >::handleCell ( LinkedCell & cell)
inline

sums up the velocity fluctuation (from the mean flow velocity) of all particles

Parameters
cell

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