https://mooseframework.inl.gov
include
utils
ADFParser.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 "
MooseError.h
"
13
#include "
MooseTypes.h
"
14
#include "
ADReal.h
"
15
#include "libmesh/fparser_ad.hh"
16
17
class
ADFParser
:
public
FunctionParserAD
18
{
19
public
:
20
ADFParser
();
21
ADFParser
(
const
ADFParser
& cpy);
22
23
bool
JITCompile
();
24
25
Real
Eval
(
const
Real *) {
mooseError
(
"Not implemented."
); }
26
ADReal
Eval
(
const
ADReal
* Vars);
27
28
protected
:
29
const
Real
_epsilon
;
30
};
mooseError
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition:
MooseError.h:302
ADFParser::ADFParser
ADFParser()
Definition:
ADFParser.C:14
ADFParser::_epsilon
const Real _epsilon
Definition:
ADFParser.h:29
ADReal
DualNumber< Real, DNDerivativeType, true > ADReal
Definition:
ADRealForward.h:47
MooseError.h
MooseTypes.h
ADReal.h
ADFParser::JITCompile
bool JITCompile()
Definition:
ADFParser.C:27
ADFParser::Eval
Real Eval(const Real *)
Definition:
ADFParser.h:25
Real
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
ADFParser
Definition:
ADFParser.h:17
Generated on Thu Jul 17 2025 01:32:08 for https://mooseframework.inl.gov by
1.8.14