diff --git a/ProcessLib/TwoPhaseFlowWithPrho/CreateTwoPhaseFlowWithPrhoProcess.cpp b/ProcessLib/TwoPhaseFlowWithPrho/CreateTwoPhaseFlowWithPrhoProcess.cpp index a4267b7dd7aa53de75b5704fe745149401faeb90..6e32d9388c750d4e5d610a4021797307b5cc2f8c 100644 --- a/ProcessLib/TwoPhaseFlowWithPrho/CreateTwoPhaseFlowWithPrhoProcess.cpp +++ b/ProcessLib/TwoPhaseFlowWithPrho/CreateTwoPhaseFlowWithPrhoProcess.cpp @@ -86,9 +86,7 @@ std::unique_ptr<Process> createTwoPhaseFlowWithPrhoProcess( auto const& mat_ids = mesh.getProperties().getPropertyVector<int>("MaterialIDs"); - std::unique_ptr<ProcessLib::TwoPhaseFlowWithPrho:: - TwoPhaseFlowWithPrhoMaterialProperties> - material = nullptr; + std::unique_ptr<TwoPhaseFlowWithPrhoMaterialProperties> material = nullptr; boost::optional<MeshLib::PropertyVector<int> const&> material_ids; if (mat_ids != nullptr) @@ -101,7 +99,7 @@ std::unique_ptr<Process> createTwoPhaseFlowWithPrhoProcess( INFO("The twophase flow is in homogeneous porous media."); } - material = ProcessLib::TwoPhaseFlowWithPrho:: + material = createTwoPhaseFlowPrhoMaterialProperties(mat_config, material_ids); TwoPhaseFlowWithPrhoProcessData process_data{ diff --git a/ProcessLib/TwoPhaseFlowWithPrho/TwoPhaseFlowWithPrhoLocalAssembler.h b/ProcessLib/TwoPhaseFlowWithPrho/TwoPhaseFlowWithPrhoLocalAssembler.h index f8693af3733ef9b864dcfe45fa9d9e1781e9707a..6f9f5f63ba940aefb9d430f9841123159355efe9 100644 --- a/ProcessLib/TwoPhaseFlowWithPrho/TwoPhaseFlowWithPrhoLocalAssembler.h +++ b/ProcessLib/TwoPhaseFlowWithPrho/TwoPhaseFlowWithPrhoLocalAssembler.h @@ -26,35 +26,33 @@ namespace ProcessLib { namespace TwoPhaseFlowWithPrho { - template <typename NodalMatrixType> - struct IntegrationPointData final +template <typename NodalMatrixType> +struct IntegrationPointData final +{ + explicit IntegrationPointData( + TwoPhaseFlowWithPrhoMaterialProperties& material_property_) + : mat_property(material_property_), + sw(1.0), + rho_m(0.0), + dsw_dpg(0.0), + dsw_drho(0.0), + drhom_dpg(0.0), + drhom_drho(0.0) { - explicit IntegrationPointData( - ProcessLib::TwoPhaseFlowWithPrho:: - TwoPhaseFlowWithPrhoMaterialProperties& material_property_) - : mat_property(material_property_), - sw(1.0), - rho_m(0.0), - dsw_dpg(0.0), - dsw_drho(0.0), - drhom_dpg(0.0), - drhom_drho(0.0) - { - } - ProcessLib::TwoPhaseFlowWithPrho::TwoPhaseFlowWithPrhoMaterialProperties& - mat_property; - double sw; - double rho_m; - double dsw_dpg; - double dsw_drho; - double drhom_dpg; - double drhom_drho; - double pressure_nonwetting; - - double integration_weight; - NodalMatrixType massOperator; - NodalMatrixType diffusionOperator; - }; + } + TwoPhaseFlowWithPrhoMaterialProperties& mat_property; + double sw; + double rho_m; + double dsw_dpg; + double dsw_drho; + double drhom_dpg; + double drhom_drho; + double pressure_nonwetting; + + double integration_weight; + NodalMatrixType massOperator; + NodalMatrixType diffusionOperator; +}; const unsigned NUM_NODAL_DOF = 2; class TwoPhaseFlowWithPrhoLocalAssemblerInterface