OGS
ProcessLib::SteadyStateDiffusion Namespace Reference

Classes

class  LocalAssemblerData
 
class  SteadyStateDiffusion
 
struct  SteadyStateDiffusionData
 
class  SteadyStateDiffusionLocalAssemblerInterface
 

Functions

void checkMPLProperties (MeshLib::Mesh const &mesh, MaterialPropertyLib::MaterialSpatialDistributionMap const &media_map)
 
std::unique_ptr< ProcesscreateSteadyStateDiffusion (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::vector< std::unique_ptr< MeshLib::Mesh > > const &meshes, std::map< int, std::shared_ptr< MaterialPropertyLib::Medium > > const &media)
 

Variables

const unsigned NUM_NODAL_DOF = 1
 

Function Documentation

◆ checkMPLProperties()

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

Definition at line 28 of file CreateSteadyStateDiffusion.cpp.

31{
32 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::diffusion, and MaterialPropertyLib::reference_temperature.

Referenced by createSteadyStateDiffusion().

◆ createSteadyStateDiffusion()

std::unique_ptr< Process > ProcessLib::SteadyStateDiffusion::createSteadyStateDiffusion ( 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::vector< std::unique_ptr< MeshLib::Mesh > > const & meshes,
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__STEADY_STATE_DIFFUSION__process_variables

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

Input File Parameter
prj__processes__process__STEADY_STATE_DIFFUSION__process_variables__process_variable

Process Parameters

Input File Parameter
prj__processes__process__calculatesurfaceflux

Definition at line 41 of file CreateSteadyStateDiffusion.cpp.

51{
53 config.checkConfigParameter("type", "STEADY_STATE_DIFFUSION");
54
55 DBUG("Create SteadyStateDiffusion.");
56
58
60 auto const pv_config = config.getConfigSubtree("process_variables");
61
62 std::vector<std::vector<std::reference_wrapper<ProcessVariable>>>
63 process_variables;
65 auto per_process_variables = findProcessVariables(
66 variables, pv_config,
67 {
68 "process_variable"});
69 process_variables.push_back(std::move(per_process_variables));
70
71 auto media_map =
73
74 DBUG("Check the media properties of steady state diffusion process ...");
75 checkMPLProperties(mesh, media_map);
76 DBUG("Media properties verified.");
77
78 SteadyStateDiffusionData process_data{std::move(media_map)};
79
80 SecondaryVariableCollection secondary_variables;
81
82 ProcessLib::createSecondaryVariables(config, secondary_variables);
83
85 std::unique_ptr<ProcessLib::SurfaceFluxData> surfaceflux;
86 auto calculatesurfaceflux_config =
88 config.getConfigSubtreeOptional("calculatesurfaceflux");
89 if (calculatesurfaceflux_config)
90 {
92 *calculatesurfaceflux_config, meshes);
93 }
94
95 return std::make_unique<SteadyStateDiffusion>(
96 std::move(name), mesh, std::move(jacobian_assembler), parameters,
97 integration_order, std::move(process_variables),
98 std::move(process_data), std::move(secondary_variables),
99 std::move(surfaceflux));
100}
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
Definition Logging.h:30
MaterialSpatialDistributionMap createMaterialSpatialDistributionMap(std::map< int, std::shared_ptr< Medium > > const &media, MeshLib::Mesh const &mesh)
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)
static std::unique_ptr< ProcessLib::SurfaceFluxData > createSurfaceFluxData(BaseLib::ConfigTree const &calculatesurfaceflux_config, std::vector< std::unique_ptr< MeshLib::Mesh > > const &meshes)

References BaseLib::ConfigTree::checkConfigParameter(), checkMPLProperties(), MaterialPropertyLib::createMaterialSpatialDistributionMap(), ProcessLib::createSecondaryVariables(), ProcessLib::SurfaceFluxData::createSurfaceFluxData(), DBUG(), ProcessLib::findProcessVariables(), BaseLib::ConfigTree::getConfigSubtree(), and BaseLib::ConfigTree::getConfigSubtreeOptional().

Referenced by ProjectData::parseProcesses().

Variable Documentation

◆ NUM_NODAL_DOF

const unsigned ProcessLib::SteadyStateDiffusion::NUM_NODAL_DOF = 1