Classes | Public Member Functions | Public Attributes | List of all members
LagrangianFlux Class Reference

A flux scheme that minimises mass transfer between cells. More...

#include <condition_action_sequence_2.hpp>

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

Classes

class  LagrangianCriteria
 Condition on when to apply mass transfer fix. More...
 

Public Member Functions

 LagrangianFlux (const LagrangianHLLC &rs, const LagrangianHLLC &rs2, LagrangianCriteria const &criteria)
 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...
 
void Reset (void) const
 Resets the internal variables.
 

Public Attributes

vector< double > ws_
 Velocity of the interfaces.
 
vector< double > edge_vel_
 Velocity of the edges.
 
vector< bool > Lag_calc_
 Was this edge calculated Lagrangialy.
 

Detailed Description

A flux scheme that minimises mass transfer between cells.

Definition at line 167 of file condition_action_sequence_2.hpp.

Constructor & Destructor Documentation

◆ LagrangianFlux()

LagrangianFlux::LagrangianFlux ( const LagrangianHLLC rs,
const LagrangianHLLC rs2,
LagrangianCriteria const &  criteria 
)

Class constructor.

Parameters
rsRiemann solver with no mass flux
rs2Riemann solver with mass flux
criteriaThe criteria for calculating mass flux

Definition at line 282 of file condition_action_sequence_2.cpp.

Here is the caller graph for this function:

Member Function Documentation

◆ operator()()

void LagrangianFlux::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 299 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: