include/meltpooldg/flow/incompressible_flow_material_base.hpp Source File

Developer Documentation: include/meltpooldg/flow/incompressible_flow_material_base.hpp Source File
Developer Documentation
incompressible_flow_material_base.hpp
Go to the documentation of this file.
1#pragma once
2
3namespace MeltPoolDG::Flow
4{
22 template <int dim, typename number>
24 {
25 public:
26 virtual ~IncompressibleMaterialBase() = default;
27
35 virtual void
36 reinit(const dealii::Tensor<2, dim, dealii::VectorizedArray<number>> &velocity_gradient,
37 const unsigned int cell_idx,
38 const unsigned int quad_idx) = 0;
39
45 virtual dealii::Tensor<2, dim, dealii::VectorizedArray<number>>
46 get_tau() = 0;
47
64 virtual dealii::Tensor<2, dim, dealii::VectorizedArray<number>>
66
72 virtual void
74 {
75 // do nothing
76 }
77
83 virtual void
85 {
86 // do nothing
87 }
88 };
89
90} // namespace MeltPoolDG::Flow
Base class for the shear stress computation of an incompressible fluid material.
Definition incompressible_flow_material_base.hpp:24
virtual dealii::Tensor< 2, dim, dealii::VectorizedArray< number > > get_tau()=0
Compute the deviatoric stress τ for the given velocity gradient ∇u, set by reinit().
virtual dealii::Tensor< 2, dim, dealii::VectorizedArray< number > > get_vmult_d_tau_d_grad_vel()=0
Compute the material tangent of the deviatoric stress and perform a vmult with the gradient of the no...
virtual void zero_out_ghost_values()
Zero out ghost values of the vectors, to be used to compute the deviatoric stress.
Definition incompressible_flow_material_base.hpp:84
virtual void update_ghost_values()
Update ghost values of the vectors, to be used to compute the deviatoric stress.
Definition incompressible_flow_material_base.hpp:73
virtual void reinit(const dealii::Tensor< 2, dim, dealii::VectorizedArray< number > > &velocity_gradient, const unsigned int cell_idx, const unsigned int quad_idx)=0
Reinit function to be used to compute quadrature point variables.
Definition equation_of_state.hpp:17