https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ADSmoothTransitionTestMaterial.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#include "ADCubicTransition.h"
15
16#include "ADReal.h"
17
22{
23public:
25
26protected:
27 virtual void computeQpProperties() override;
33 ADReal f1(const ADReal & x) const;
39 ADReal f2(const ADReal & x) const;
45 ADReal df1dx(const ADReal & x) const;
51 ADReal df2dx(const ADReal & x) const;
52
67
68public:
70};
DualNumber< Real, DNDerivativeType, true > ADReal
const std::vector< double > x
Cubic polynomial transition between two functions of one variable.
Class for testing objects derived from ADSmoothTransition.
ADReal f2(const ADReal &x) const
Computes right function.
ADReal f1(const ADReal &x) const
Computes left function.
ADReal df1dx(const ADReal &x) const
Computes left function derivative.
const ADReal _center
Center point of transition.
const ADReal _width
Width of transition.
ADMaterialProperty< Real > & _matprop
Material property created using the transition_base.
ADReal df2dx(const ADReal &x) const
Computes right function derivative.
const ADVariableValue & _var
Variable the transition depends upon.
const MooseEnum & _transition_type
Type of transition.
const ADWeightedTransition _weighted_transition
Weighted transition_base.
ADCubicTransition _cubic_transition
Cubic transition.
Weighted transition between two functions of one variable.
const InputParameters & parameters() const
VariableValueTempl< true > ADVariableValue