48 std::vector<std::vector<Tensor<1, dim>>>(
75 const FiniteElement<dim> &fe,
76 const Quadrature<dim> &quadrature,
77 const Mapping<dim> &mapping,
82 mapping, fe, quadrature, update_values | update_gradients);
111 const FiniteElement<dim> &fe,
112 const Quadrature<dim> &quadrature,
113 const Mapping<dim> &mapping,
114 const std::shared_ptr<ConservativeLevelSetFilterBase> &
filter)
118 mapping, fe, quadrature, update_values | update_gradients);
123 std::vector<Tensor<1, dim>>(this->
n_q_points);
147 const FiniteElement<dim> &fe,
148 const Quadrature<dim> &quadrature,
149 const Mapping<dim> &mapping)
153 std::make_shared<FEValues<dim>>(mapping, fe, quadrature, update_values);
157 std::vector<Tensor<1, dim>>(this->
n_q_points);
159 std::vector<Tensor<1, dim>>(this->
n_q_points);
161 std::vector<Tensor<1, dim>>(this->
n_q_points);
163 std::vector<Tensor<1, dim>>(this->
n_q_points);
200 const Tensor<2, dim> shear_rate_tensor =
224 const auto specific_heat_model =
226 const auto thermal_conductivity_model =
232 specific_heat_model->vector_jacobian(
234 thermal_conductivity_model->vector_value(
fields,
236 rheology_model->get_dynamic_viscosity_vector(
241 const auto electric_conductivity_model =
243 const auto magnetic_permeability_model =
245 const auto electric_permittivity_model =
248 electric_conductivity_model->vector_value(
250 magnetic_permeability_model->vector_value(
252 electric_permittivity_model->vector_value(
260 const auto density_models =
262 const auto specific_heat_models =
264 const auto thermal_conductivity_models =
266 const auto rheology_models =
271 thermal_conductivity_models[0]->vector_value(
273 rheology_models[0]->get_dynamic_viscosity_vector(
274 density_models[0]->get_density_ref(),
277 specific_heat_models[0]->vector_jacobian(
282 thermal_conductivity_models[1]->vector_value(
284 rheology_models[1]->get_dynamic_viscosity_vector(
285 density_models[1]->get_density_ref(),
288 specific_heat_models[1]->vector_jacobian(
292 for (
unsigned int q = 0; q < this->
n_q_points; ++q)
316 filtered_phase_value,
323 throw std::runtime_error(
"Unsupported number of fluids (>2)");
329 const auto specific_heat_model =
331 const auto thermal_conductivity_model =
333 const auto rheology_model =
338 specific_heat_model->vector_jacobian(
fields,
342 rheology_model->get_dynamic_viscosity_vector(
347 const auto electric_conductivity_model =
349 const auto magnetic_permeability_model =
351 const auto electric_permittivity_model =
354 electric_conductivity_model->vector_value(
fields,
356 magnetic_permeability_model->vector_value(
fields,
358 electric_permittivity_model->vector_value(
fields,
unsigned int maximum_number_of_previous_solutions()
Get the maximum number of previous time steps supposed by the BDF schemes implemented in Lethe.
static std::shared_ptr< ConservativeLevelSetFilterBase > model_cast(const Parameters::CLS_PhaseFilter &phase_filter_parameters)
Instantiate and return a pointer to a ConservativeLevelSetFilterBase object by casting it to the prop...
Class that stores the information required by the assembly procedure for a heat transfer advection-di...
std::vector< double > filtered_phase_values
std::vector< double > thermal_conductivity_1
std::vector< Tensor< 1, dim > > electric_field_real_values
std::vector< Tensor< 1, dim > > temperature_gradients
std::vector< double > grad_specific_heat_temperature_0
FEValuesExtractors::Vector extractor_H_imag
std::vector< Tensor< 2, dim > > velocity_gradient_values
std::vector< double > grad_specific_heat_temperature
std::shared_ptr< ConservativeLevelSetFilterBase > filter
std::map< field, std::vector< double > > fields
std::vector< double > grad_specific_heat_temperature_1
Table< 2, double > laplacian_phi_T
FEValuesExtractors::Vector extractor_E_imag
void enable_cls(const FiniteElement< dim > &fe, const Quadrature< dim > &quadrature, const Mapping< dim > &mapping, const Parameters::CLS_PhaseFilter &phase_filter_parameters)
enable_cls Enables the collection of the CLS data by the scratch.
std::vector< Tensor< 1, dim > > magnetic_field_real_values
void calculate_physical_properties()
Calculates the physical properties. This method calculates the physical properties that may be requir...
std::vector< double > pressure_values
Pressure field for physical property models requiring them.
std::vector< double > electric_conductivity
std::vector< double > thermal_conductivity_0
std::vector< double > dynamic_viscosity_0
std::vector< double > density
std::vector< double > present_temperature_values
std::vector< double > shear_rate_values
std::vector< double > dynamic_viscosity
void enable_time_harmonic_maxwell(const FiniteElement< dim > &fe, const Quadrature< dim > &quadrature, const Mapping< dim > &mapping)
enable_time_harmonic_maxwell Enables the collection of the time-harmonic Maxwell data by the scratch ...
std::vector< double > density_0
FEValues< dim > fe_values_T
std::vector< Tensor< 1, dim > > filtered_phase_gradient_values
std::vector< Tensor< 1, dim > > electric_field_imag_values
PhysicalPropertiesManager properties_manager
Table< 2, Tensor< 2, dim > > hess_phi_T
dealii::types::material_id material_id
std::vector< double > present_temperature_laplacians
std::vector< double > specific_heat_1
FEValuesExtractors::Vector extractor_H_real
std::vector< Tensor< 1, dim > > phase_gradient_values
std::vector< double > electric_permittivity_imag
std::vector< double > dynamic_viscosity_1
Table< 2, Tensor< 1, dim > > grad_phi_T
std::vector< double > source
std::vector< double > density_1
std::vector< double > thermal_conductivity
std::shared_ptr< FEValues< dim > > fe_values_cls
std::vector< Tensor< 1, dim > > velocity_values
std::shared_ptr< FEValues< dim > > fe_values_time_harmonic_maxwell
FEValuesExtractors::Vector extractor_E_real
std::vector< Tensor< 1, dim > > magnetic_field_imag_values
std::vector< double > specific_heat_0
std::vector< std::vector< Tensor< 1, dim > > > previous_temperature_gradients
bool gather_time_harmonic_maxwell
std::vector< double > magnetic_permeability_imag
void allocate() override
Allocates the memory for the scratch.
std::vector< double > specific_heat
std::vector< std::vector< double > > previous_temperature_values
double calculate_point_property(const double phase, const double property0, const double property1)
Calculate the equivalent properties for a given phase. Method called in quadrature points loops in CL...
void set_field_vector(const field &id, const std::vector< double > &data, std::map< field, std::vector< double > > &fields)
double calculate_shear_rate_magnitude(const Tensor< 2, dim > shear_rate)
Calculates the magnitude of the shear rate tensor given as input.
Parameters for the phase filtration.