60 std::vector<Tensor<1, dim>>(this->
n_q_points));
73 fields.insert(std::pair<
field, std::vector<double>>(
85 throw std::runtime_error(
"Unsupported number of fluids (<2)");
94 const auto material_interaction_id =
99 const auto surface_tension_model =
104 const auto mobility_cahn_hilliard_model =
106 material_interaction_id);
107 mobility_cahn_hilliard_model->vector_value(
fields,
109 mobility_cahn_hilliard_model->vector_jacobian(
117 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 the Cahn-Hilliard equations....
FEValues< dim > fe_values_cahn_hilliard
std::map< field, std::vector< double > > fields
std::vector< double > source_chemical_potential
PhysicalPropertiesManager properties_manager
Table< 2, double > laplacian_phi_potential
std::vector< double > surface_tension
std::vector< double > phase_order_laplacians
Table< 2, double > phi_potential
Table< 2, Tensor< 2, dim > > hess_phi_potential
std::vector< double > mobility_cahn_hilliard_gradient
std::vector< double > chemical_potential_laplacians
std::vector< double > source_phase_order
std::vector< std::vector< Tensor< 1, dim > > > previous_velocity_values
Table< 2, Tensor< 2, dim > > hess_phi_phase
std::vector< double > mobility_cahn_hilliard
FEValuesExtractors::Scalar phase_order
std::vector< Tensor< 2, dim > > velocity_gradient_values
std::vector< Tensor< 1, dim > > chemical_potential_gradients
std::vector< Tensor< 1, dim > > velocity_values
Table< 2, Tensor< 1, dim > > grad_phi_phase
std::vector< double > chemical_potential_values
void allocate() override
Allocates the necessary memory for all members of the scratch.
Table< 2, double > laplacian_phi_phase
FEValuesExtractors::Scalar chemical_potential
std::vector< std::vector< double > > previous_chemical_potential_values
Table< 2, double > phi_phase
void calculate_physical_properties()
Calculates the physical properties that may be required by the Cahn-Hilliard problem....
Table< 2, Tensor< 1, dim > > grad_phi_potential
std::vector< Tensor< 1, dim > > phase_order_gradients
std::vector< double > phase_order_values
std::vector< std::vector< double > > previous_phase_order_values
@ phase_order_cahn_hilliard_filtered
@ phase_order_cahn_hilliard
void set_field_vector(const field &id, const std::vector< double > &data, std::map< field, std::vector< double > > &fields)