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

#include <navier_stokes_assemblers.h>

Inheritance diagram for PhaseChangeCarmanKozenyAssembler< dim >:
[legend]

Public Member Functions

 PhaseChangeCarmanKozenyAssembler (const double carman_kozeny_permeability_area, const double carman_kozeny_tolerance, const double liquidus_temperature, const double solidus_temperature)
virtual void assemble_matrix (const NavierStokesScratchData< dim > &scratch_data, StabilizedMethodsTensorCopyData< dim > &copy_data) override
virtual void assemble_rhs (const NavierStokesScratchData< dim > &scratch_data, StabilizedMethodsTensorCopyData< dim > &copy_data) override
Public Member Functions inherited from PhysicsAssemblerBase< NavierStokesScratchData< dim >, StabilizedMethodsTensorCopyData< dim > >
virtual ~PhysicsAssemblerBase ()=default

Private Attributes

const double carman_kozeny_permeability_area_inv
const double carman_kozeny_tolerance
const double liquidus_temperature
const double solidus_temperature

Detailed Description

template<int dim>
class PhaseChangeCarmanKozenyAssembler< dim >

Assembler of the non-linear Carman-Kozeny permeability model for simulations with phase change.

Template Parameters
dimAn integer that denotes the number of spatial dimensions

Definition at line 816 of file navier_stokes_assemblers.h.

Constructor & Destructor Documentation

◆ PhaseChangeCarmanKozenyAssembler()

template<int dim>
PhaseChangeCarmanKozenyAssembler< dim >::PhaseChangeCarmanKozenyAssembler ( const double carman_kozeny_permeability_area,
const double carman_kozeny_tolerance,
const double liquidus_temperature,
const double solidus_temperature )
inline

Assembler for the Carman-Kozeny permeability source term used for phase change modelling.

\[\boldsymbol{F}_\mathrm{Carman-Kozeny} = \frac{-\nu}{A_\mathrm{perm}} \left[ \frac{(1-\alpha_\mathrm{l})^2}{(\alpha_\mathrm{l})^3 + \delta}\right] \boldsymbol{u} \]

with \(\nu\) the kinematic viscosity, \(A_\mathrm{perm}\) the permeability area, \(\alpha_\mathrm{l}\) the liquid fraction, \(\delta\) a tolerance to avoid division by zero in the solid, and \(\boldsymbol{u}\) the velocity.

Parameters
[in]carman_kozeny_permeability_areaPermeability area of the solid (pseudo-porous media).
[in]carman_kozeny_toleranceTolerance to avoid division by zero in the solid.
[in]liquidus_temperatureLiquidus temperature of the fluid used for computing the liquid fraction.
[in]solidus_temperatureSolidus temperature of the fluid used for computing the liquid fraction.

Definition at line 843 of file navier_stokes_assemblers.h.

References carman_kozeny_permeability_area_inv, carman_kozeny_tolerance, liquidus_temperature, and solidus_temperature.

Member Function Documentation

◆ assemble_matrix()

template<int dim>
void PhaseChangeCarmanKozenyAssembler< dim >::assemble_matrix ( const NavierStokesScratchData< dim > & scratch_data,
StabilizedMethodsTensorCopyData< dim > & copy_data )
overridevirtual

Assembles the matrix of:

\[\boldsymbol{F}_\mathrm{Carman-Kozeny} = \frac{-\nu}{A_\mathrm{perm}} \left[ \frac{(1-\alpha_\mathrm{l})^2}{(\alpha_\mathrm{l})^3 + \delta}\right] \boldsymbol{u} \]

with \(\nu\) the kinematic viscosity, \(A_\mathrm{perm}\) the permeability area, \(\alpha_\mathrm{l}\) the liquid fraction, \(\delta\) a tolerance to avoid division by zero in the solid, and \(\boldsymbol{u}\) the velocity.

Parameters
[in]scratch_dataScratch data containing the information required for system assembly. It is important to note that the scratch data has to have been re-inited before calling for matrix assembly.
[in,out]copy_dataDestination where the local_matrix is copied to.

Implements PhysicsAssemblerBase< NavierStokesScratchData< dim >, StabilizedMethodsTensorCopyData< dim > >.

Definition at line 1981 of file navier_stokes_assemblers.cc.

References carman_kozeny_permeability_area_inv, carman_kozeny_tolerance, NavierStokesScratchData< dim >::JxW, NavierStokesScratchData< dim >::kinematic_viscosity, liquidus_temperature, StabilizedMethodsTensorCopyData< dim >::local_matrix, NavierStokesScratchData< dim >::n_dofs, NavierStokesScratchData< dim >::n_q_points, NavierStokesScratchData< dim >::phi_u, solidus_temperature, StabilizedMethodsTensorCopyData< dim >::strong_jacobian, StabilizedMethodsTensorCopyData< dim >::strong_residual, temperature, NavierStokesScratchData< dim >::temperature_values, and NavierStokesScratchData< dim >::velocity_values.

◆ assemble_rhs()

template<int dim>
void PhaseChangeCarmanKozenyAssembler< dim >::assemble_rhs ( const NavierStokesScratchData< dim > & scratch_data,
StabilizedMethodsTensorCopyData< dim > & copy_data )
overridevirtual

Assemble the right-hand side (rhs) of:

\[\boldsymbol{F}_\mathrm{Carman-Kozeny} = \frac{-\nu}{A_\mathrm{perm}} \left[ \frac{(1-\alpha_\mathrm{l})^2}{(\alpha_\mathrm{l})^3 + \delta}\right] \boldsymbol{u} \]

with \(\nu\) the kinematic viscosity, \(A_\mathrm{perm}\) the permeability area, \(\alpha_\mathrm{l}\) the liquid fraction, \(\delta\) a tolerance to avoid division by zero in the solid, and \(\boldsymbol{u}\) the velocity.

Parameters
[in]scratch_dataScratch data containing the information required for system assembly. It is important to note that the scratch data has to have been re-inited before calling for rhs assembly.
[in,out]copy_dataDestination where the local_rhs is copied to.

Implements PhysicsAssemblerBase< NavierStokesScratchData< dim >, StabilizedMethodsTensorCopyData< dim > >.

Definition at line 2048 of file navier_stokes_assemblers.cc.

References carman_kozeny_permeability_area_inv, carman_kozeny_tolerance, NavierStokesScratchData< dim >::JxW, NavierStokesScratchData< dim >::kinematic_viscosity, liquidus_temperature, StabilizedMethodsTensorCopyData< dim >::local_rhs, NavierStokesScratchData< dim >::n_dofs, NavierStokesScratchData< dim >::n_q_points, NavierStokesScratchData< dim >::phi_u, solidus_temperature, StabilizedMethodsTensorCopyData< dim >::strong_residual, temperature, NavierStokesScratchData< dim >::temperature_values, and NavierStokesScratchData< dim >::velocity_values.

Member Data Documentation

◆ carman_kozeny_permeability_area_inv

template<int dim>
const double PhaseChangeCarmanKozenyAssembler< dim >::carman_kozeny_permeability_area_inv
private

One over the permeability area of the pseudo-porous bed (solid phase).

Definition at line 901 of file navier_stokes_assemblers.h.

◆ carman_kozeny_tolerance

template<int dim>
const double PhaseChangeCarmanKozenyAssembler< dim >::carman_kozeny_tolerance
private

Tolerance in the Carman-Kozeny source term that avoids division by zero.

Definition at line 904 of file navier_stokes_assemblers.h.

◆ liquidus_temperature

template<int dim>
const double PhaseChangeCarmanKozenyAssembler< dim >::liquidus_temperature
private

Liquidus temperature.

Definition at line 907 of file navier_stokes_assemblers.h.

◆ solidus_temperature

template<int dim>
const double PhaseChangeCarmanKozenyAssembler< dim >::solidus_temperature
private

Solidus temperature.

Definition at line 910 of file navier_stokes_assemblers.h.


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