https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ParsedVectorAux.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 "AuxKernel.h"
13#include "FunctionParserUtils.h"
14
19{
20public:
22
24
25protected:
26 virtual RealVectorValue computeValue() override;
27
29 std::vector<std::string> _function;
30
33 const unsigned int _nargs;
34 const unsigned int _n_vector_args;
35 const std::vector<const VariableValue *> _args;
36 std::vector<const VectorVariableValue *> _vector_args;
37
39 const bool _use_xyzt;
40
42 std::vector<SymFunctionPtr> _func_F;
43
45};
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131
AuxKernel that evaluates a parsed function expression for every component.
usingFunctionParserUtilsMembers(false)
const std::vector< const VariableValue * > _args
virtual RealVectorValue computeValue() override
Compute and return the value of the aux variable.
const unsigned int _nargs
coupled variables NOTE: a potential optimization would be to have different number of arguments per c...
const unsigned int _n_vector_args
std::vector< SymFunctionPtr > _func_F
function parser object
std::vector< const VectorVariableValue * > _vector_args
static InputParameters validParams()
std::vector< std::string > _function
function expressions
const bool _use_xyzt
import coordinates and time