DarcyDampingModel< number > Class Template Reference

Developer Documentation: MeltPoolDG::Flow::DarcyDampingModel< number > Class Template Reference
Developer Documentation
MeltPoolDG::Flow::DarcyDampingModel< number > Class Template Reference

This class computes the Darcy damping coefficient \( K \) given by the Kozeny-Carman equation: More...

#include <darcy_damping_model.hpp>

Public Member Functions

 DarcyDampingModel (const DarcyDampingData< number > &data_in)
 Constructor.
 
template<typename number2 >
number2 compute_darcy_damping_coefficient (const number2 &solid_fraction) const
 Compute the Darcy damping coefficient based on a given solid_fraction.
 

Private Attributes

const number mushy_zone_morphology
 Morphological constant C.
 
const number avoid_div_zero_constant
 Small constant b to avoid division by zero.
 

Detailed Description

template<typename number>
class MeltPoolDG::Flow::DarcyDampingModel< number >

This class computes the Darcy damping coefficient \( K \) given by the Kozeny-Carman equation:

\( K= -C \frac{f_s^2}{(1-f_s)^3 + b} \)

with the solid fraction \( f_s \in [0, 1] \), the morphology of the mushy zone \( C \) and the parameter \( b \) to avoid division by zero.

Note
The regularization constant \( b \) must be greater than zero.

Voller, V. R., & Prakash, C. (1987). A fixed grid numerical modelling methodology for convection-diffusion mushy region phase-change problems. International Journal of Heat and Mass Transfer, 30(8), 1709–1719. https://doi.org/10.1016/0017-9310(87)90317-6

Template Parameters
numberFloating-point type

Constructor & Destructor Documentation

◆ DarcyDampingModel()

template<typename number >
MeltPoolDG::Flow::DarcyDampingModel< number >::DarcyDampingModel ( const DarcyDampingData< number > &  data_in)
explicit

Constructor.

Parameters
data_inInput parameters related to darcy damping.

Member Function Documentation

◆ compute_darcy_damping_coefficient()

template<typename number >
template<typename number2 >
template dealii::VectorizedArray< double > MeltPoolDG::Flow::DarcyDampingModel< number >::compute_darcy_damping_coefficient< dealii::VectorizedArray< double > > ( const number2 &  solid_fraction) const

Compute the Darcy damping coefficient based on a given solid_fraction.

Template Parameters
number2Enables both scalar and vectorized computations.
Parameters
solid_fractionVolume fraction of solid phase between 0 and 1.
Returns
Darcy damping coefficient.

Member Data Documentation

◆ avoid_div_zero_constant

template<typename number >
const number MeltPoolDG::Flow::DarcyDampingModel< number >::avoid_div_zero_constant
private

Small constant b to avoid division by zero.

◆ mushy_zone_morphology

template<typename number >
const number MeltPoolDG::Flow::DarcyDampingModel< number >::mushy_zone_morphology
private

Morphological constant C.


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