https://mooseframework.inl.gov
Loading...
Searching...
No Matches
MaterialADConverter.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"
15
20template <typename T>
22{
23public:
25
27
28protected:
29 virtual void computeQpProperties() override;
30 void initQpStatefulProperties() override;
31
34
35 std::vector<MaterialProperty<T> *> _reg_props_out;
36 std::vector<const MaterialProperty<T> *> _reg_props_in;
37 std::vector<ADMaterialProperty<T> *> _ad_props_out;
38 std::vector<const ADMaterialProperty<T> *> _ad_props_in;
39
40 const bool _intra_convert;
41};
42
MaterialADConverterTempl< RankTwoTensor > RankTwoTensorMaterialADConverter
MaterialADConverterTempl< Real > MaterialADConverter
MaterialADConverterTempl< RankFourTensor > RankFourTensorMaterialADConverter
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
This material converts regular material properties to AD properties and AD properties to regular prop...
std::vector< const MaterialProperty< T > * > _reg_props_in
std::vector< MaterialProperty< T > * > _reg_props_out
std::vector< const ADMaterialProperty< T > * > _ad_props_in
std::vector< ADMaterialProperty< T > * > _ad_props_out
static InputParameters validParams()
void initQpStatefulProperties() override
Initialize stateful properties at quadrature points.
virtual void computeQpProperties() override
Users must override this method.
Materials compute MaterialProperties.
Definition Material.h:36
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131