https://mooseframework.inl.gov
Loading...
Searching...
No Matches
VariableSizeMaterialPropertiesInterface.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"
13
15
20{
21public:
23
26 virtual std::size_t getVectorPropertySize(const MaterialPropertyName & prop_name) const;
27
31 virtual std::pair<std::size_t, std::size_t>
32 getMatrixPropertySize(const MaterialPropertyName & prop_name) const;
33};
34
35namespace Moose
36{
49 const MaterialWarehouse & warehouse,
50 const std::set<SubdomainID> & blocks,
51 const std::string & param_name,
52 std::size_t count,
53 bool is_matrix);
54}
unsigned int count
Definition MortarUtils.C:53
char ** blocks
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
MaterialBase objects are special in that they have additional objects created automatically (see FEPr...
Every object that can be built by the factory should be derived from this class.
Definition MooseObject.h:31
Interface class to return the size of material properties that do not have a fixed size.
virtual std::size_t getVectorPropertySize(const MaterialPropertyName &prop_name) const
Return the size of the variable size vector material property that the material defines.
virtual std::pair< std::size_t, std::size_t > getMatrixPropertySize(const MaterialPropertyName &prop_name) const
Return the number of rows and columns of the variable size matrix material property that the material...
MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to add...
void checkArrayMaterialPropertySize(const MooseObject &object, const MaterialWarehouse &warehouse, const std::set< SubdomainID > &blocks, const std::string &param_name, std::size_t count, bool is_matrix)
Check during setup that an array material property used as a coefficient has one entry per component ...