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 
19 {
20 
21 public:
23 
25 
26  virtual void act() override;
27 
28 protected:
36  void addJoiner(bool at_nodes,
37  bool is_ad,
38  const std::string & material_property,
39  const std::string & output_name);
40 
47  bool hasJoiner(std::string property);
48 
50  std::string _dictator_name;
51 
54 
56  std::vector<SubdomainName> _blocks;
57 
59  std::vector<std::string> _already_joined;
60 };
std::string _dictator_name
Name of the PorousFlowDictator.
PorousFlowAddMaterialJoiner(const InputParameters &params)
std::vector< SubdomainName > _blocks
if _block_restricted == true, then these are the blocks that the Joiner will be restricted to ...
void addJoiner(bool at_nodes, bool is_ad, const std::string &material_property, const std::string &output_name)
Adds a PorousFlowJoiner for the given material property.
static InputParameters validParams()
Action to programatically add PorousFlowJoiner materials without having to manually enter them in the...
bool hasJoiner(std::string property)
Helper method to determine if a PorousFLowJoiner material is already present in the input file for th...
bool _block_restricted
whether the Material that is currently being Joined is block-restricted
std::vector< std::string > _already_joined
Vector of already joined materials (to avoid joining them again)