https://mooseframework.inl.gov
ConservedAction.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 // MOOSE includes
13 #include "Action.h"
14 #include "libmesh/fe_type.h"
15 
16 class ConservedAction : public Action
17 {
18 public:
20 
21  ConservedAction(const InputParameters & params);
22 
23  virtual void act() override;
24 
25 protected:
27  enum class SolveType
28  {
29  DIRECT,
32  };
34  std::string _chempot_name;
38  const NonlinearVariableName _var_name;
42  const Real _scaling;
43 };
virtual void act() override
const Real _scaling
Scaling parameter.
static InputParameters validParams()
std::string _chempot_name
Name of chemical potential variable for split solves.
SolveType
Type of solve.
const NonlinearVariableName _var_name
Name of the variable being created.
const SolveType _solve_type
Type of solve to use used in the action.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
libMesh::FEType _fe_type
FEType for the variable being created.
ConservedAction(const InputParameters &params)