https://mooseframework.inl.gov
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 {
20 public:
22 
24 
25 protected:
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 };
const std::vector< const VariableValue * > _args
const unsigned int _nargs
coupled variables NOTE: a potential optimization would be to have different number of arguments per c...
std::vector< SymFunctionPtr > _func_F
function parser object
const bool _use_xyzt
import coordinates and time
std::vector< const VectorVariableValue * > _vector_args
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
ParsedVectorAux(const InputParameters &parameters)
const unsigned int _n_vector_args
virtual RealVectorValue computeValue() override
Compute and return the value of the aux variable.
static InputParameters validParams()
AuxKernel that evaluates a parsed function expression for every component.
usingFunctionParserUtilsMembers(false)
const InputParameters & parameters() const
Get the parameters of the object.
Base class for creating new auxiliary kernels and auxiliary boundary conditions.
Definition: AuxKernel.h:36
std::vector< std::string > _function
function expressions