OpenLB 1.8.1
Loading...
Searching...
No Matches
olb::PhaseFieldConvectiveOutletDynamics< T, DESCRIPTOR, DYNAMICS, MOMENTA, direction, orientation > Struct Template Reference

Implementation of convective boundary condition for the order parameter. More...

#include <phaseFieldBoundaryDynamics.h>

+ Inheritance diagram for olb::PhaseFieldConvectiveOutletDynamics< T, DESCRIPTOR, DYNAMICS, MOMENTA, direction, orientation >:
+ Collaboration diagram for olb::PhaseFieldConvectiveOutletDynamics< T, DESCRIPTOR, DYNAMICS, MOMENTA, direction, orientation >:

Public Types

using MomentaF = typename MOMENTA::template type<DESCRIPTOR>
 
using EquilibriumF = typename DYNAMICS::EquilibriumF
 
using parameters = meta::list<descriptors::MAX_VELOCITY>
 
- Public Types inherited from olb::dynamics::CustomCollision< T, DESCRIPTOR, MOMENTA >
using value_t = T
 
using descriptor_t = DESCRIPTOR
 
using MomentaF = typename MOMENTA::template type<DESCRIPTOR>
 
- Public Types inherited from olb::Dynamics< T, DESCRIPTOR >
using value_t = T
 
using descriptor_t = DESCRIPTOR
 

Public Member Functions

std::type_index id () override
 Expose unique type-identifier for RTTI.
 
AbstractParameters< T, DESCRIPTOR > & getParameters (BlockLattice< T, DESCRIPTOR > &block) override
 Parameters access for legacy post processors.
 
template<typename CELL , typename PARAMETERS , typename V = typename CELL::value_t>
CellStatistic< V > collide (CELL &cell, PARAMETERS &parameters) any_platform
 
void computeEquilibrium (ConstCell< T, DESCRIPTOR > &cell, T rho, const T u[DESCRIPTOR::d], T fEq[DESCRIPTOR::q]) const override
 Return iPop equilibrium for given first and second momenta.
 
std::string getName () const override
 Return human-readable name.
 
- Public Member Functions inherited from olb::dynamics::CustomCollision< T, DESCRIPTOR, MOMENTA >
void initialize (Cell< T, DESCRIPTOR > &cell) override
 Initialize dynamics-specific data for cell.
 
T computeRho (ConstCell< T, DESCRIPTOR > &cell) const override
 Compute particle density.
 
void computeU (ConstCell< T, DESCRIPTOR > &cell, T u[DESCRIPTOR::d]) const override
 Compute fluid velocity.
 
void computeJ (ConstCell< T, DESCRIPTOR > &cell, T j[DESCRIPTOR::d]) const override
 Compute fluid momentum.
 
void computeStress (ConstCell< T, DESCRIPTOR > &cell, T rho, const T u[DESCRIPTOR::d], T pi[util::TensorVal< DESCRIPTOR >::n]) const override
 Compute stress tensor.
 
void computeRhoU (ConstCell< T, DESCRIPTOR > &cell, T &rho, T u[DESCRIPTOR::d]) const override
 Compute fluid velocity and particle density.
 
void computeAllMomenta (ConstCell< T, DESCRIPTOR > &cell, T &rho, T u[DESCRIPTOR::d], T pi[util::TensorVal< DESCRIPTOR >::n]) const override
 Compute all momenta up to second order.
 
void defineRho (Cell< T, DESCRIPTOR > &cell, T rho) override
 Set particle density.
 
void defineU (Cell< T, DESCRIPTOR > &cell, const T u[DESCRIPTOR::d]) override
 Set fluid velocity.
 
void defineRhoU (Cell< T, DESCRIPTOR > &cell, T rho, const T u[DESCRIPTOR::d]) override
 Define fluid velocity and particle density.
 
void defineAllMomenta (Cell< T, DESCRIPTOR > &cell, T rho, const T u[DESCRIPTOR::d], const T pi[util::TensorVal< DESCRIPTOR >::n]) override
 Define all momenta up to second order.
 
void inverseShiftRhoU (ConstCell< T, DESCRIPTOR > &cell, T &rho, T u[DESCRIPTOR::d]) const override
 Calculate population momenta s.t. the physical momenta are reproduced by the computeRhoU.
 
- Public Member Functions inherited from olb::Dynamics< T, DESCRIPTOR >
virtual ~Dynamics () any_platform
 
virtual CellStatistic< T > collide (Cell< T, DESCRIPTOR > &cell)
 Perform purely-local collision step on Cell interface (legacy, to be deprecated)
 
void iniEquilibrium (Cell< T, DESCRIPTOR > &cell, T rho, const T u[DESCRIPTOR::d])
 Initialize to equilibrium distribution.
 
void iniRegularized (Cell< T, DESCRIPTOR > &cell, T rho, const T u[DESCRIPTOR::d], const T pi[util::TensorVal< DESCRIPTOR >::n])
 Initialize cell to equilibrium and non-equilibrum part.
 

Static Public Attributes

static constexpr bool is_vectorizable = false
 

Detailed Description

template<typename T, typename DESCRIPTOR, typename DYNAMICS, typename MOMENTA, int direction, int orientation>
struct olb::PhaseFieldConvectiveOutletDynamics< T, DESCRIPTOR, DYNAMICS, MOMENTA, direction, orientation >

Implementation of convective boundary condition for the order parameter.

Definition at line 108 of file phaseFieldBoundaryDynamics.h.

Member Typedef Documentation

◆ EquilibriumF

template<typename T , typename DESCRIPTOR , typename DYNAMICS , typename MOMENTA , int direction, int orientation>
using olb::PhaseFieldConvectiveOutletDynamics< T, DESCRIPTOR, DYNAMICS, MOMENTA, direction, orientation >::EquilibriumF = typename DYNAMICS::EquilibriumF

Definition at line 110 of file phaseFieldBoundaryDynamics.h.

◆ MomentaF

template<typename T , typename DESCRIPTOR , typename DYNAMICS , typename MOMENTA , int direction, int orientation>
using olb::PhaseFieldConvectiveOutletDynamics< T, DESCRIPTOR, DYNAMICS, MOMENTA, direction, orientation >::MomentaF = typename MOMENTA::template type<DESCRIPTOR>

Definition at line 109 of file phaseFieldBoundaryDynamics.h.

◆ parameters

template<typename T , typename DESCRIPTOR , typename DYNAMICS , typename MOMENTA , int direction, int orientation>
using olb::PhaseFieldConvectiveOutletDynamics< T, DESCRIPTOR, DYNAMICS, MOMENTA, direction, orientation >::parameters = meta::list<descriptors::MAX_VELOCITY>

Definition at line 113 of file phaseFieldBoundaryDynamics.h.

Member Function Documentation

◆ collide()

template<typename T , typename DESCRIPTOR , typename DYNAMICS , typename MOMENTA , int direction, int orientation>
template<typename CELL , typename PARAMETERS , typename V = typename CELL::value_t>
CellStatistic< V > olb::PhaseFieldConvectiveOutletDynamics< T, DESCRIPTOR, DYNAMICS, MOMENTA, direction, orientation >::collide ( CELL & cell,
PARAMETERS & parameters )
inline

Definition at line 126 of file phaseFieldBoundaryDynamics.h.

126 {
127 V phi = MomentaF().computeRho(cell);
128 V u[DESCRIPTOR::d];
129 MomentaF().computeU(cell, u);
131 return {phi, uSqr};
132 }
auto normSqr(const ARRAY_LIKE &u) any_platform
Compute norm square of a d-dimensional vector.
Definition util.h:145
typename MOMENTA::template type< DESCRIPTOR > MomentaF

References olb::util::normSqr().

+ Here is the call graph for this function:

◆ computeEquilibrium()

template<typename T , typename DESCRIPTOR , typename DYNAMICS , typename MOMENTA , int direction, int orientation>
void olb::PhaseFieldConvectiveOutletDynamics< T, DESCRIPTOR, DYNAMICS, MOMENTA, direction, orientation >::computeEquilibrium ( ConstCell< T, DESCRIPTOR > & cell,
T rho,
const T u[DESCRIPTOR::d],
T fEq[DESCRIPTOR::q] ) const
inlineoverridevirtual

Return iPop equilibrium for given first and second momenta.

Implements olb::Dynamics< T, DESCRIPTOR >.

Definition at line 134 of file phaseFieldBoundaryDynamics.h.

134 {
135 EquilibriumF().compute(cell, rho, u, fEq);
136 };

◆ getName()

template<typename T , typename DESCRIPTOR , typename DYNAMICS , typename MOMENTA , int direction, int orientation>
std::string olb::PhaseFieldConvectiveOutletDynamics< T, DESCRIPTOR, DYNAMICS, MOMENTA, direction, orientation >::getName ( ) const
inlineoverridevirtual

Return human-readable name.

Reimplemented from olb::Dynamics< T, DESCRIPTOR >.

Definition at line 138 of file phaseFieldBoundaryDynamics.h.

138 {
139 return "PhaseFieldConvectiveOutletDynamics<" + DYNAMICS().getName() + ">";
140 };

◆ getParameters()

template<typename T , typename DESCRIPTOR , typename DYNAMICS , typename MOMENTA , int direction, int orientation>
AbstractParameters< T, DESCRIPTOR > & olb::PhaseFieldConvectiveOutletDynamics< T, DESCRIPTOR, DYNAMICS, MOMENTA, direction, orientation >::getParameters ( BlockLattice< T, DESCRIPTOR > & block)
inlineoverridevirtual

Parameters access for legacy post processors.

Implements olb::Dynamics< T, DESCRIPTOR >.

Definition at line 119 of file phaseFieldBoundaryDynamics.h.

119 {
120 return block.template getData<OperatorParameters<PhaseFieldConvectiveOutletDynamics>>();
121 }

◆ id()

template<typename T , typename DESCRIPTOR , typename DYNAMICS , typename MOMENTA , int direction, int orientation>
std::type_index olb::PhaseFieldConvectiveOutletDynamics< T, DESCRIPTOR, DYNAMICS, MOMENTA, direction, orientation >::id ( )
inlineoverridevirtual

Expose unique type-identifier for RTTI.

Implements olb::Dynamics< T, DESCRIPTOR >.

Definition at line 115 of file phaseFieldBoundaryDynamics.h.

115 {
116 return typeid(PhaseFieldConvectiveOutletDynamics);
117 }

Member Data Documentation

◆ is_vectorizable

template<typename T , typename DESCRIPTOR , typename DYNAMICS , typename MOMENTA , int direction, int orientation>
bool olb::PhaseFieldConvectiveOutletDynamics< T, DESCRIPTOR, DYNAMICS, MOMENTA, direction, orientation >::is_vectorizable = false
staticconstexpr

Definition at line 123 of file phaseFieldBoundaryDynamics.h.


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