Go to the documentation of this file.
21 MooseEnum const_option(
"NONE=0 ELEMENT=1 SUBDOMAIN=2",
"none");
25 "When ELEMENT, MOOSE will only call computeQpProperties() for the 0th "
26 "quadrature point, and then copy that value to the other qps."
27 "When SUBDOMAIN, MOOSE will only call computeSubdomainProperties() for the 0th "
28 "quadrature point, and then copy that value to the other qps. Evaluations on element qps "
40 _q_point(_bnd ? _assembly.qPointsFace() : _assembly.qPoints()),
41 _qrule(_bnd ? _assembly.qRuleFace() : _assembly.qRule()),
42 _JxW(_bnd ? _assembly.JxWFace() : _assembly.JxW()),
43 _current_elem(_neighbor ? _assembly.neighbor() : _assembly.elem()),
44 _current_subdomain_id(_neighbor ? _assembly.currentNeighborSubdomainID()
45 : _assembly.currentSubdomainID()),
46 _current_side(_neighbor ? _assembly.neighborSide() : _assembly.side()),
51 for (
const auto & var : coupled_vars)
64 props[prop_id]->resize(nqp);
71 for (decltype(nqp) qp = 1; qp < nqp; ++qp)
72 props[prop_id]->qpCopy(qp, props[prop_id], 0);
99 auto nqp =
_qrule->n_points();
100 for (decltype(nqp) qp = 1; qp < nqp; ++qp)
101 props[prop_id]->qpCopy(qp, props[prop_id], 0);
105 auto nqp =
_qrule->n_points();
106 for (decltype(nqp) qp = 1; qp < nqp; ++qp)
107 props[prop_id]->qpCopy(qp, props[prop_id], 0);
const QBase *const & _qrule
virtual const MaterialData & materialData() const override
Container for storing material properties.
void addMooseVariableDependency(MooseVariableFEBase *var)
Call this function to add the passed in MooseVariableFEBase as a variable that this object depends on...
unsigned int getMaxQps() const
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
Materials compute MaterialProperties.
std::set< unsigned int > _supplied_ad_prop_ids
defineLegacyParams(Material)
std::set< unsigned int > _supplied_regular_prop_ids
virtual void computeSubdomainProperties()
Evaluate material properties on subdomain.
static InputParameters validParams()
static InputParameters validParams()
const ConstantTypeEnum _constant_option
Options of the constantness level of the material.
static InputParameters validParams()
virtual void computeQpProperties()
Users must override this method.
std::shared_ptr< MaterialData > _material_data
Pointer to the material data class that stores properties.
MaterialBases compute MaterialProperties.
void copyDualNumbersToValues()
Interface for objects that needs coupling capabilities.
MaterialProperties & props()
Methods for retrieving MaterialProperties object.
virtual void subdomainSetup() override
Subdomain setup evaluating material properties when required.
FEProblemBase & _fe_problem
virtual void computeProperties() override
Performs the quadrature point loop, calling computeQpProperties.
const std::vector< MooseVariableFEBase * > & getCoupledMooseVars() const
Get the list of all coupled variables.
Material(const InputParameters ¶meters)
std::set< unsigned int > _supplied_prop_ids
The ids of the supplied properties, i.e.
An interface for accessing Materials.