Skip to content
Snippets Groups Projects
Commit de5ab19d authored by Tom Fischer's avatar Tom Fischer Committed by Dmitri Naumov
Browse files

[PL/T2PF] Activate checkMPLProperties.

parent 9088bf88
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,24 @@ namespace ProcessLib
{
namespace ThermalTwoPhaseFlowWithPP
{
void checkMPLProperties(
MeshLib::Mesh const& mesh,
MaterialPropertyLib::MaterialSpatialDistributionMap const& media_map)
{
std::array const required_property_medium = {
MaterialPropertyLib::PropertyType::porosity};
std::array const required_property_solid_phase = {
MaterialPropertyLib::PropertyType::density};
std::array const required_property_liquid_phase = {
MaterialPropertyLib::PropertyType::density};
MaterialPropertyLib::checkMaterialSpatialDistributionMap(
mesh, media_map, required_property_medium,
required_property_solid_phase, required_property_liquid_phase);
}
std::unique_ptr<Process> createThermalTwoPhaseFlowWithPPProcess(
std::string name,
MeshLib::Mesh& mesh,
......@@ -108,6 +126,11 @@ std::unique_ptr<Process> createThermalTwoPhaseFlowWithPPProcess(
auto media_map =
MaterialPropertyLib::createMaterialSpatialDistributionMap(media, mesh);
DBUG(
"Check the media properties of ThermalTwoPhaseFlowWithPP process ...");
checkMPLProperties(mesh, *media_map);
DBUG("Media properties verified.");
ThermalTwoPhaseFlowWithPPProcessData process_data{std::move(media_map),
specific_body_force,
has_gravity,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment