25namespace HeatConduction
31 std::array
const required_medium_properties = {
35 std::array<MaterialPropertyLib::PropertyType, 0>
const empty{};
38 mesh, media_map, required_medium_properties, empty, empty, empty);
42 std::string
const& name,
44 std::unique_ptr<ProcessLib::AbstractJacobianAssembler>&& jacobian_assembler,
45 std::vector<ProcessVariable>
const& variables,
46 std::vector<std::unique_ptr<ParameterLib::ParameterBase>>
const& parameters,
47 unsigned const integration_order,
49 std::map<
int, std::shared_ptr<MaterialPropertyLib::Medium>>
const& media)
54 DBUG(
"Create HeatConductionProcess.");
61 std::vector<std::vector<std::reference_wrapper<ProcessVariable>>>
68 process_variables.push_back(std::move(per_process_variables));
73 DBUG(
"Check the media properties of heat conduction process ...");
75 DBUG(
"Media properties verified.");
78 auto const mass_lumping =
82 auto const is_linear =
86 auto const ls_compute_only_upon_timestep_change =
89 "linear_solver_compute_only_upon_timestep_change",
false);
92 std::move(media_map), mass_lumping,
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);
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
T getConfigParameter(std::string const ¶m) const
ConfigTree getConfigSubtree(std::string const &root) const
void checkConfigParameter(std::string const ¶m, std::string_view const value) const
std::vector< Node * > const & getNodes() const
Get the nodes-vector for the mesh.
Handles configuration of several secondary variables from the project file.
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)
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.
void checkMPLProperties(MeshLib::Mesh const &mesh, MaterialPropertyLib::MaterialSpatialDistributionMap const &media_map)
std::unique_ptr< Process > 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 ¶meters, unsigned const integration_order, BaseLib::ConfigTree const &config, std::map< int, std::shared_ptr< MaterialPropertyLib::Medium > > const &media)
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)