OGS
ProcessLib::StokesFlow::anonymous_namespace{CreateStokesFlowProcess.cpp} Namespace Reference

Functions

void checkMPLProperties (MeshLib::Mesh const &mesh, MaterialPropertyLib::MaterialSpatialDistributionMap const &media_map, bool const use_stokes_brinkman_form)
 

Function Documentation

◆ checkMPLProperties()

void ProcessLib::StokesFlow::anonymous_namespace{CreateStokesFlowProcess.cpp}::checkMPLProperties ( MeshLib::Mesh const & mesh,
MaterialPropertyLib::MaterialSpatialDistributionMap const & media_map,
bool const use_stokes_brinkman_form )

Definition at line 25 of file CreateStokesFlowProcess.cpp.

29{
30 std::array const required_properties_liquid_phase = {
32
33 std::array const required_properties_medium = {
35
36 for (auto const element_id : mesh.getElements() | MeshLib::views::ids)
37 {
38 auto const& medium = *media_map.getMedium(element_id);
39
40 if (use_stokes_brinkman_form)
41 {
42 checkRequiredProperties(medium, required_properties_medium);
43 }
44
45 // check if liquid phase definition and the corresponding properties
46 // exist
47 auto const& liquid_phase = medium.phase("AqueousLiquid");
48 checkRequiredProperties(liquid_phase, required_properties_liquid_phase);
49 }
50}

References MeshLib::Mesh::getElements(), MaterialPropertyLib::MaterialSpatialDistributionMap::getMedium(), MeshLib::views::ids, MaterialPropertyLib::permeability, and MaterialPropertyLib::viscosity.