OGS
ProcessLib::HeatConduction Namespace Reference

Classes

class  HeatConductionLocalAssemblerInterface
 
class  HeatConductionProcess
 
struct  HeatConductionProcessData
 
class  LocalAssemblerData
 

Functions

void checkMPLProperties (MeshLib::Mesh const &mesh, MaterialPropertyLib::MaterialSpatialDistributionMap const &media_map)
 
std::unique_ptr< ProcesscreateHeatConductionProcess (std::string const &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 27 of file CreateHeatConductionProcess.cpp.

30{
31 std::array const required_medium_properties = {
35 std::array<MaterialPropertyLib::PropertyType, 0> const empty{};
36
38 mesh, media_map, required_medium_properties, empty, empty, empty);
39}
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, ContainerGas const &required_properties_gas_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 const & 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
Input File Parameter
prj__processes__process__HEAT_CONDUCTION__linear
Input File Parameter
prj__processes__process__HEAT_CONDUCTION__linear_solver_compute_only_upon_timestep_change

Definition at line 41 of file CreateHeatConductionProcess.cpp.

50{
52 config.checkConfigParameter("type", "HEAT_CONDUCTION");
53
54 DBUG("Create HeatConductionProcess.");
55
57
59 auto const pv_config = config.getConfigSubtree("process_variables");
60
61 std::vector<std::vector<std::reference_wrapper<ProcessVariable>>>
62 process_variables;
64 auto per_process_variables = findProcessVariables(
65 variables, pv_config,
66 {
67 "process_variable"});
68 process_variables.push_back(std::move(per_process_variables));
69
70 auto media_map =
72
73 DBUG("Check the media properties of heat conduction process ...");
74 checkMPLProperties(mesh, media_map);
75 DBUG("Media properties verified.");
76
78 auto const mass_lumping =
80 config.getConfigParameter<bool>("mass_lumping", false);
81
82 auto const is_linear =
84 config.getConfigParameter("linear", false);
85
86 auto const ls_compute_only_upon_timestep_change =
88 config.getConfigParameter(
89 "linear_solver_compute_only_upon_timestep_change", false);
90
91 HeatConductionProcessData process_data{
92 std::move(media_map), mass_lumping,
94
95 SecondaryVariableCollection secondary_variables;
96
97 ProcessLib::createSecondaryVariables(config, secondary_variables);
98
99 return std::make_unique<HeatConductionProcess>(
100 std::move(name), mesh, std::move(jacobian_assembler), parameters,
101 integration_order, std::move(process_variables),
102 std::move(process_data), std::move(secondary_variables), is_linear,
103 ls_compute_only_upon_timestep_change);
104}
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
Definition Logging.h:30
std::vector< Node * > const & getNodes() const
Get the nodes-vector for the mesh.
Definition Mesh.h:106
MaterialSpatialDistributionMap createMaterialSpatialDistributionMap(std::map< int, std::shared_ptr< Medium > > const &media, MeshLib::Mesh const &mesh)
int getSpaceDimension(std::vector< Node * > const &nodes)
Computes dimension of the embedding space containing the set of given points.
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(), MeshLib::Mesh::getNodes(), and MeshLib::getSpaceDimension().

Referenced by ProjectData::parseProcesses().

Variable Documentation

◆ NUM_NODAL_DOF