Public Member Functions | List of all members
Ratchet Class Reference

Allows matter to flow in only one direction. More...

#include <condition_action_sequence_2.hpp>

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

Public Member Functions

 Ratchet (const RiemannSolver &rs, const bool in)
 Class constructor. More...
 
void operator() (const Edge &edge, const size_t index, const Tessellation &tess, const Vector2D &edge_velocity, const vector< ComputationalCell > &cells, const EquationOfState &eos, const bool aux, const pair< ComputationalCell, ComputationalCell > &edge_values, Extensive &res, double time, TracerStickerNames const &tracerstickernames) const
 Calculates flux. More...
 
- Public Member Functions inherited from ConditionActionSequence2::Action2
virtual void Reset (void) const
 Return instance to initial state.
 

Detailed Description

Allows matter to flow in only one direction.

Definition at line 138 of file condition_action_sequence_2.hpp.

Constructor & Destructor Documentation

◆ Ratchet()

Ratchet::Ratchet ( const RiemannSolver rs,
const bool  in 
)

Class constructor.

Parameters
rsRiemann solver
inIf the ratchet allows inflow or outflow

Definition at line 253 of file condition_action_sequence_2.cpp.

Member Function Documentation

◆ operator()()

void Ratchet::operator() ( const Edge edge,
const size_t  index,
const Tessellation tess,
const Vector2D edge_velocity,
const vector< ComputationalCell > &  cells,
const EquationOfState eos,
const bool  aux,
const pair< ComputationalCell, ComputationalCell > &  edge_values,
Extensive res,
double  time,
TracerStickerNames const &  tracerstickernames 
) const
virtual

Calculates flux.

Parameters
edgeInterface between cells
indexThe index of the edge
tessTessellation
cellsComputational cells
eosEquation of state
auxAuxiliary variable for assymetric problems (true means the relevant cell is on the left side, false mean right)
edge_valuesThe interpolated values at the edge
edge_velocityVelocity of the edges
resThe flux given as output
timeThe time
tracerstickernamesThe names of the tracers and stickers

Implements ConditionActionSequence2::Action2.

Definition at line 262 of file condition_action_sequence_2.cpp.

Here is the call graph for this function:

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