Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
BoundaryConditions::QMOMBoundaryConditions< dim > Class Template Reference

#include <qmom_boundary_conditions.h>

Inheritance diagram for BoundaryConditions::QMOMBoundaryConditions< dim >:
[legend]

Public Member Functions

void declare_default_entry (ParameterHandler &prm, const types::boundary_id default_boundary_id)
void declare_parameters (ParameterHandler &prm, const unsigned int number_of_boundary_conditions)
void parse_boundary (ParameterHandler &prm)
void parse_parameters (ParameterHandler &prm)

Public Attributes

std::map< types::boundary_id, Parameters::QMOMFunctions< dim > > dirichlet
Public Attributes inherited from BoundaryConditions::BoundaryConditions< QMOMBoundaryType >
std::map< types::boundary_id, QMOMBoundaryType > type
unsigned int number_of_boundary_conditions
bool time_dependent
Parameters::PeriodicBoundaries periodic_boundaries

Detailed Description

template<int dim>
class BoundaryConditions::QMOMBoundaryConditions< dim >

Boundary conditions of the QMOM physics. They apply to the advective flux of all the QMOM fields (scalars and moments), which is meant to be computed with an upwind numerical flux:

  • dirichlet: the prescribed values enter the domain where the flow enters (u.n < 0) and the interior values leave it where the flow leaves;
  • outlet: the interior values leave the domain where the flow leaves and nothing enters where the flow enters (backflow);
  • none: the advective flux is zero, which is the natural choice for walls. Boundaries without a QMOM boundary condition are treated as none.
Template Parameters
dimNumber of spatial dimensions.

Definition at line 42 of file qmom_boundary_conditions.h.

Member Function Documentation

◆ declare_default_entry()

template<int dim>
void BoundaryConditions::QMOMBoundaryConditions< dim >::declare_default_entry ( ParameterHandler & prm,
const types::boundary_id default_boundary_id )

Declare the parameters of one boundary condition.

Parameters
[in,out]prmParameter handler.
[in]default_boundary_idDefault boundary id of the boundary condition.

Definition at line 24 of file qmom_boundary_conditions.cc.

References declare_enum_entry(), Parameters::QMOMFunctions< dim >::declare_parameters(), and BoundaryConditions::none.

◆ declare_parameters()

template<int dim>
void BoundaryConditions::QMOMBoundaryConditions< dim >::declare_parameters ( ParameterHandler & prm,
const unsigned int number_of_boundary_conditions )

Declare the "boundary conditions qmom" subsection.

Parameters
[in,out]prmParameter handler.
[in]number_of_boundary_conditionsMaximal number of boundary conditions, used to declare the "bc i" subsections.

Definition at line 45 of file qmom_boundary_conditions.cc.

References declare_default_entry(), and BoundaryConditions::BoundaryConditions< QMOMBoundaryType >::number_of_boundary_conditions.

◆ parse_boundary()

template<int dim>
void BoundaryConditions::QMOMBoundaryConditions< dim >::parse_boundary ( ParameterHandler & prm)

Parse one boundary condition.

Parameters
[in,out]prmParameter handler.

Definition at line 76 of file qmom_boundary_conditions.cc.

References convert_string_to_vector(), dirichlet, BoundaryConditions::dirichlet, string_to_enum(), and BoundaryConditions::BoundaryConditions< QMOMBoundaryType >::type.

◆ parse_parameters()

template<int dim>
void BoundaryConditions::QMOMBoundaryConditions< dim >::parse_parameters ( ParameterHandler & prm)

Parse the "boundary conditions qmom" subsection.

Parameters
[in,out]prmParameter handler.

Definition at line 105 of file qmom_boundary_conditions.cc.

References BoundaryConditions::BoundaryConditions< QMOMBoundaryType >::number_of_boundary_conditions, parse_boundary(), and BoundaryConditions::BoundaryConditions< QMOMBoundaryType >::time_dependent.

Member Data Documentation

◆ dirichlet

template<int dim>
std::map<types::boundary_id, Parameters::QMOMFunctions<dim> > BoundaryConditions::QMOMBoundaryConditions< dim >::dirichlet

Values imposed by the Dirichlet boundary conditions, for each boundary id of type dirichlet

Definition at line 47 of file qmom_boundary_conditions.h.


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