https://mooseframework.inl.gov
Loading...
Searching...
No Matches
GenericConstant2DArray.h
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
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 "Material.h"
14
18template <bool is_ad>
20{
21public:
23
25
26 virtual std::pair<std::size_t, std::size_t>
27 getMatrixPropertySize(const MaterialPropertyName & prop_name) const override;
28
29protected:
30 virtual void initQpStatefulProperties() override;
31 virtual void computeQpProperties() override;
32
33 std::string _prop_name;
34 const RealEigenMatrix & _prop_value;
35
37};
38
GenericConstant2DArrayTempl< true > ADGenericConstant2DArray
GenericConstant2DArrayTempl< false > GenericConstant2DArray
typename GenericMaterialPropertyStruct< T, is_ad >::type GenericMaterialProperty
Template for defining a constant array material property, using automatic differentiation or not.
static InputParameters validParams()
GenericMaterialProperty< RealEigenMatrix, is_ad > & _property
virtual void initQpStatefulProperties() override
Initialize stateful properties at quadrature points.
const RealEigenMatrix & _prop_value
virtual std::pair< std::size_t, std::size_t > getMatrixPropertySize(const MaterialPropertyName &prop_name) const override
Return the number of rows and columns of the variable size matrix material property that the material...
virtual void computeQpProperties() override
Users must override this method.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
Materials compute MaterialProperties.
Definition Material.h:36
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131
Interface class to return the size of material properties that do not have a fixed size.