From e24dc4db27e1c33222d7f3c9eab515b3ba6d37a6 Mon Sep 17 00:00:00 2001 From: Pierre Date: Mon, 18 Dec 2023 17:24:41 -0500 Subject: [PATCH] temp commit Former-commit-id: 747adf696550f1f7dc11773ce05af3ba4f8b21c8 --- include/core/mobility_cahn_hilliard_model.h | 27 ++++++++++--------- include/core/parameters.h | 2 +- source/core/parameters.cc | 2 ++ source/core/parameters_multiphysics.cc | 2 +- source/solvers/cahn_hilliard_assemblers.cc | 2 +- .../navier_stokes_cahn_hilliard_assemblers.cc | 16 +++++------ source/solvers/navier_stokes_scratch_data.cc | 8 +++--- 7 files changed, 32 insertions(+), 27 deletions(-) diff --git a/include/core/mobility_cahn_hilliard_model.h b/include/core/mobility_cahn_hilliard_model.h index c5812b38f3..ab373164ca 100644 --- a/include/core/mobility_cahn_hilliard_model.h +++ b/include/core/mobility_cahn_hilliard_model.h @@ -57,10 +57,10 @@ class MobilityCahnHilliardModel : public InterfacePropertyModel virtual double get_mobility_constant() = 0; - /** - * @brief Definition of a virtual destructor - */ - virtual ~MobilityCahnHilliardModel() = default; +// /** +// * @brief Definition of a virtual destructor +// */ +// virtual ~MobilityCahnHilliardModel() = default; }; /** @@ -77,10 +77,10 @@ class MobilityCahnHilliardModelConstant : public MobilityCahnHilliardModel : mobility_cahn_hilliard_constant(p_mobility_cahn_hilliard_constant) {} - /** - * @brief Destructor of derived class - */ - ~MobilityCahnHilliardModelConstant() = default; +// /** +// * @brief Destructor of derived class +// */ +// ~MobilityCahnHilliardModelConstant() = default; /** @@ -182,10 +182,10 @@ class MobilityCahnHilliardModelQuartic : public MobilityCahnHilliardModel this->model_depends_on[field::phase_order_cahn_hilliard_filtered] = true; } - /** - * @brief Destructor of derived class - */ - ~MobilityCahnHilliardModelQuartic() = default; +// /** +// * @brief Destructor of derived class +// */ +// ~MobilityCahnHilliardModelQuartic() = default; /** * @brief Method to get the model used for the mobility @@ -225,6 +225,7 @@ class MobilityCahnHilliardModelQuartic : public MobilityCahnHilliardModel // return mobility_cahn_hilliard_constant * // (1 - phase_order_cahn_hilliard * phase_order_cahn_hilliard) * // (1 - phase_order_cahn_hilliard * phase_order_cahn_hilliard); + std::cout<<"phase order value in filter = "< 1) return 0.0; else @@ -259,6 +260,7 @@ class MobilityCahnHilliardModelQuartic : public MobilityCahnHilliardModel field_vectors.at(field::phase_order_cahn_hilliard_filtered); for (unsigned int i = 0; i < property_vector.size(); ++i) { + std::cout<<"phase order value in filter = "< 1) property_vector[i] = 0.0; else @@ -290,6 +292,7 @@ class MobilityCahnHilliardModelQuartic : public MobilityCahnHilliardModel const double &phase_order_cahn_hilliard_filtered = fields_value.at(field::phase_order_cahn_hilliard_filtered); + std::cout<<"phase order value in filter = "< 1) return 0.0; else diff --git a/include/core/parameters.h b/include/core/parameters.h index cb41b1dfe9..4755d4ff02 100644 --- a/include/core/parameters.h +++ b/include/core/parameters.h @@ -380,7 +380,7 @@ namespace Parameters // tracer diffusivity in L^2/s double tracer_diffusivity; // Cahn-Hilliard mobility in L^2/s - // double mobility_cahn_hilliard; + double mobility_cahn_hilliard; // Phase change parameters PhaseChange phase_change_parameters; diff --git a/source/core/parameters.cc b/source/core/parameters.cc index 1087e4a195..a7778d1c45 100644 --- a/source/core/parameters.cc +++ b/source/core/parameters.cc @@ -1125,6 +1125,7 @@ namespace Parameters // Surface tension op = prm.get("surface tension model"); + std::cout<::assemble_matrix( this->cahn_hilliard_parameters.cahn_hilliard_mobility_constant; const auto mobility_model = this->cahn_hilliard_parameters.cahn_hilliard_mobility_model; - // std::cout<< "mobility via ch assembler = "<< mobility_constant<