![]() |
Lethe Open-Source Library version 1.2.0
Developer Guide
|
#include <navier_stokes_assemblers.h>
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 > ©_data) override |
| virtual void | assemble_rhs (const NavierStokesScratchData< dim > &scratch_data, StabilizedMethodsTensorCopyData< dim > ©_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 |
Assembler of the non-linear Carman-Kozeny permeability model for simulations with phase change.
| dim | An integer that denotes the number of spatial dimensions |
Definition at line 816 of file navier_stokes_assemblers.h.
|
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.
| [in] | carman_kozeny_permeability_area | Permeability area of the solid (pseudo-porous media). |
| [in] | carman_kozeny_tolerance | Tolerance to avoid division by zero in the solid. |
| [in] | liquidus_temperature | Liquidus temperature of the fluid used for computing the liquid fraction. |
| [in] | solidus_temperature | Solidus 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.
|
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.
| [in] | scratch_data | Scratch 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_data | Destination 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.
|
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.
| [in] | scratch_data | Scratch 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_data | Destination 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.
|
private |
One over the permeability area of the pseudo-porous bed (solid phase).
Definition at line 901 of file navier_stokes_assemblers.h.
|
private |
Tolerance in the Carman-Kozeny source term that avoids division by zero.
Definition at line 904 of file navier_stokes_assemblers.h.
|
private |
Liquidus temperature.
Definition at line 907 of file navier_stokes_assemblers.h.
|
private |
Solidus temperature.
Definition at line 910 of file navier_stokes_assemblers.h.