www.mooseframework.org
PorousFlowMaterial.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
8 #ifndef POROUSFLOWMATERIAL_H
9 #define POROUSFLOWMATERIAL_H
10 
11 #include "Material.h"
12 #include "MaterialData.h"
13 #include "PorousFlowDictator.h"
14 
15 // Forward Declarations
16 class PorousFlowMaterial;
17 
18 template <>
19 InputParameters validParams<PorousFlowMaterial>();
20 
21 class PorousFlowMaterial : public Material
22 {
23 public:
24  PorousFlowMaterial(const InputParameters & parameters);
25 
26 protected:
27  virtual void initStatefulProperties(unsigned int n_points) override;
28  virtual void computeProperties() override;
29 
31  const bool _nodal_material;
32 
35 
40  void sizeNodalProperty(const std::string & prop_name);
41 
47 
54  unsigned nearestQP(unsigned nodenum) const;
55 };
56 
57 #endif // POROUSFLOWMATERIAL_H
void sizeNodalProperty(const std::string &prop_name)
Makes property with name prop_name to be size equal to the number of nodes in the current element...
void sizeAllSuppliedProperties()
Makes all supplied properties for this material to be size equal to the number of nodes in the curren...
virtual void computeProperties() override
virtual void initStatefulProperties(unsigned int n_points) override
const bool _nodal_material
whether the derived class holds nodal values
InputParameters validParams< PorousFlowMaterial >()
unsigned nearestQP(unsigned nodenum) const
Find the nearest quadpoint to the node labelled by nodenum in the current element.
PorousFlowMaterial(const InputParameters &parameters)
This holds maps between the nonlinear variables used in a PorousFlow simulation and the variable numb...
const PorousFlowDictator & _dictator
The variable names UserObject for the PorousFlow variables.