OGS
ProcessLib::HeatConduction Namespace Reference

Classes

class  HeatConductionLocalAssemblerInterface
 
class  LocalAssemblerData
 
class  HeatConductionProcess
 
struct  HeatConductionProcessData
 

Functions

void checkMPLProperties (MeshLib::Mesh const &mesh, MaterialPropertyLib::MaterialSpatialDistributionMap const &media_map)
 
std::unique_ptr< ProcesscreateHeatConductionProcess (std::string name, MeshLib::Mesh &mesh, std::unique_ptr< ProcessLib::AbstractJacobianAssembler > &&jacobian_assembler, std::vector< ProcessVariable > const &variables, std::vector< std::unique_ptr< ParameterLib::ParameterBase >> const &parameters, unsigned const integration_order, BaseLib::ConfigTree const &config, std::map< int, std::shared_ptr< MaterialPropertyLib::Medium >> const &media)
 

Variables

const unsigned NUM_NODAL_DOF = 1
 

Function Documentation

◆ checkMPLProperties()

void ProcessLib::HeatConduction::checkMPLProperties ( MeshLib::Mesh const &  mesh,
MaterialPropertyLib::MaterialSpatialDistributionMap const &  media_map 
)

Definition at line 25 of file CreateHeatConductionProcess.cpp.

28 {
29  std::array const required_medium_properties = {
33  std::array<MaterialPropertyLib::PropertyType, 0> const empty{};
34 
36  mesh, media_map, required_medium_properties, empty, empty);
37 }
void checkMaterialSpatialDistributionMap(MeshLib::Mesh const &mesh, MaterialPropertyLib::MaterialSpatialDistributionMap const &media_map, ContainerMedium const &required_properties_medium, ContainerSolid const &required_properties_solid_phase, ContainerLiquid const &required_properties_liquid_phase)

References MaterialPropertyLib::checkMaterialSpatialDistributionMap(), MaterialPropertyLib::density, MaterialPropertyLib::specific_heat_capacity, and MaterialPropertyLib::thermal_conductivity.

Referenced by createHeatConductionProcess().

◆ createHeatConductionProcess()

std::unique_ptr< Process > ProcessLib::HeatConduction::createHeatConductionProcess ( std::string  name,
MeshLib::Mesh mesh,
std::unique_ptr< ProcessLib::AbstractJacobianAssembler > &&  jacobian_assembler,
std::vector< ProcessVariable > const &  variables,
std::vector< std::unique_ptr< ParameterLib::ParameterBase >> const &  parameters,
unsigned const  integration_order,
BaseLib::ConfigTree const &  config,
std::map< int, std::shared_ptr< MaterialPropertyLib::Medium >> const &  media 
)
Input File Parameter:
prj__processes__process__type

Process Variables

Input File Parameter:
prj__processes__process__HEAT_CONDUCTION__process_variables

Primary process variables as they appear in the global component vector:

Input File Parameter:
prj__processes__process__HEAT_CONDUCTION__process_variables__process_variable

Process Parameters

Input File Parameter:
prj__processes__process__HEAT_CONDUCTION__mass_lumping

Definition at line 39 of file CreateHeatConductionProcess.cpp.

48 {
50  config.checkConfigParameter("type", "HEAT_CONDUCTION");
51 
52  DBUG("Create HeatConductionProcess.");
53 
55 
57  auto const pv_config = config.getConfigSubtree("process_variables");
58 
59  std::vector<std::vector<std::reference_wrapper<ProcessVariable>>>
60  process_variables;
62  auto per_process_variables = findProcessVariables(
63  variables, pv_config,
64  {
65  "process_variable"});
66  process_variables.push_back(std::move(per_process_variables));
67 
68  auto media_map =
70 
71  DBUG("Check the media properties of heat conduction process ...");
72  checkMPLProperties(mesh, *media_map);
73  DBUG("Media properties verified.");
74 
76  auto const mass_lumping =
78  config.getConfigParameter<bool>("mass_lumping", false);
79 
80  HeatConductionProcessData process_data{std::move(media_map), mass_lumping};
81 
82  SecondaryVariableCollection secondary_variables;
83 
84  ProcessLib::createSecondaryVariables(config, secondary_variables);
85 
86  return std::make_unique<HeatConductionProcess>(
87  std::move(name), mesh, std::move(jacobian_assembler), parameters,
88  integration_order, std::move(process_variables),
89  std::move(process_data), std::move(secondary_variables));
90 }
void DBUG(char const *fmt, Args const &... args)
Definition: Logging.h:27
std::unique_ptr< MaterialSpatialDistributionMap > createMaterialSpatialDistributionMap(std::map< int, std::shared_ptr< Medium >> const &media, MeshLib::Mesh const &mesh)
void checkMPLProperties(MeshLib::Mesh const &mesh, MaterialPropertyLib::MaterialSpatialDistributionMap const &media_map)
std::vector< std::reference_wrapper< ProcessVariable > > findProcessVariables(std::vector< ProcessVariable > const &variables, BaseLib::ConfigTree const &pv_config, std::initializer_list< std::string > tags)
void createSecondaryVariables(BaseLib::ConfigTree const &config, SecondaryVariableCollection &secondary_variables)

References BaseLib::ConfigTree::checkConfigParameter(), checkMPLProperties(), MaterialPropertyLib::createMaterialSpatialDistributionMap(), ProcessLib::createSecondaryVariables(), DBUG(), ProcessLib::findProcessVariables(), BaseLib::ConfigTree::getConfigParameter(), BaseLib::ConfigTree::getConfigSubtree(), and MaterialPropertyLib::name.

Referenced by ProjectData::parseProcesses().

Variable Documentation

◆ NUM_NODAL_DOF