41 const unsigned int n_face_q_points =
43 const unsigned int max_n_interface_dofs = 2 *
n_dofs;
46 this->
values_here = std::vector<double>(n_face_q_points);
47 this->
values_there = std::vector<double>(n_face_q_points);
49 this->
gradients_here = std::vector<Tensor<1, dim>>(n_face_q_points);
51 this->
face_phi_here.reinit(n_face_q_points, max_n_interface_dofs);
52 this->
face_phi_there.reinit(n_face_q_points, max_n_interface_dofs);
53 this->
face_jump_phi.reinit(n_face_q_points, max_n_interface_dofs);
55 max_n_interface_dofs);
102 const auto diffusivity_model =
105 const auto reaction_prefactor_model =
107 reaction_prefactor_model->vector_value(
fields,
109 reaction_prefactor_model->vector_jacobian(
118 throw std::runtime_error(
119 "Unsupported number of fluids (2) with the tracer physics.");
121 const auto diffusivity_models =
140 throw std::runtime_error(
"Unsupported number of fluids (>2)");
unsigned int maximum_number_of_previous_solutions()
Get the maximum number of previous time steps supposed by the BDF schemes implemented in Lethe.
Class that stores the information required by the assembly procedure for a Tracer advection-diffusion...
std::vector< Tensor< 1, dim > > face_velocity_values
std::vector< double > tracer_values
std::vector< Tensor< 1, dim > > previous_tracer_gradients
FEValuesExtractors::Vector velocities
std::vector< double > tracer_diffusivity_0
std::vector< double > tracer_diffusivity_1
Table< 2, double > face_average_grad_phi_dot_n
std::vector< double > values_there
std::vector< Tensor< 1, dim > > velocity_values
std::vector< double > grad_tracer_reaction_prefactor
std::vector< double > velocity_divergences
void allocate() override
Allocates the memory for the scratch.
std::vector< std::vector< double > > previous_tracer_values
std::vector< double > tracer_diffusivity
FEInterfaceValues< dim > fe_interface_values_tracer
std::vector< Tensor< 1, dim > > tracer_average_gradient
std::vector< double > tracer_reaction_prefactor
std::vector< double > sdf_values
Table< 2, double > laplacian_phi
std::map< field, std::vector< double > > fields
void calculate_physical_properties()
Calculates the physical properties. This function calculates the physical properties that may be requ...
std::vector< Tensor< 1, dim > > tracer_gradients
Table< 2, Tensor< 2, dim > > hess_phi
std::vector< double > source
std::vector< double > tracer_value_jump
std::vector< double > values_here
Table< 2, double > face_jump_phi
Table< 2, double > face_phi_there
PhysicalPropertiesManager properties_manager
Table< 2, double > face_phi_here
std::vector< double > tracer_laplacians
Table< 2, Tensor< 1, dim > > grad_phi
std::vector< double > tracer_diffusivity_face
std::vector< Tensor< 1, dim > > gradients_here
FEValues< dim > fe_values_tracer
void set_field_vector(const field &id, const std::vector< double > &data, std::map< field, std::vector< double > > &fields)