www.mooseframework.org
PorousFlowAddMaterialJoiner.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "Action.h"
13 
15 
16 template <>
18 
23 class PorousFlowAddMaterialJoiner : public Action
24 {
25 
26 public:
27  PorousFlowAddMaterialJoiner(const InputParameters & params);
28 
29  virtual void act() override;
30 
31 protected:
38  void
39  addJoiner(bool at_nodes, const std::string & material_property, const std::string & output_name);
40 
47  bool hasJoiner(std::string property);
48 
50  std::string _dictator_name;
51 
53  std::vector<std::string> _already_joined;
54 };
55 
PorousFlowAddMaterialJoiner::PorousFlowAddMaterialJoiner
PorousFlowAddMaterialJoiner(const InputParameters &params)
Definition: PorousFlowAddMaterialJoiner.C:30
PorousFlowAddMaterialJoiner::_dictator_name
std::string _dictator_name
Name of the PorousFlowDictator.
Definition: PorousFlowAddMaterialJoiner.h:50
PorousFlowAddMaterialJoiner::act
virtual void act() override
Definition: PorousFlowAddMaterialJoiner.C:36
validParams< PorousFlowAddMaterialJoiner >
InputParameters validParams< PorousFlowAddMaterialJoiner >()
Definition: PorousFlowAddMaterialJoiner.C:22
PorousFlowAddMaterialJoiner::_already_joined
std::vector< std::string > _already_joined
Vector of already joined materials (to avoid joining them again)
Definition: PorousFlowAddMaterialJoiner.h:53
PorousFlowAddMaterialJoiner
Action to programatically add PorousFlowJoiner materials without having to manually enter them in the...
Definition: PorousFlowAddMaterialJoiner.h:23
PorousFlowAddMaterialJoiner::hasJoiner
bool hasJoiner(std::string property)
Helper method to determine if a PorousFLowJoiner material is already present in the input file for th...
Definition: PorousFlowAddMaterialJoiner.C:170
PorousFlowAddMaterialJoiner::addJoiner
void addJoiner(bool at_nodes, const std::string &material_property, const std::string &output_name)
Adds a PorousFlowJoiner for the given material property.
Definition: PorousFlowAddMaterialJoiner.C:141