https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
16class ConservedAction : public Action
17{
18public:
20
21 ConservedAction(const InputParameters & params);
22
23 virtual void act() override;
24
25protected:
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
SolveType
Type of solve.
std::string _chempot_name
Name of chemical potential variable for split solves.
static InputParameters validParams()
const NonlinearVariableName _var_name
Name of the variable being created.
const Real _scaling
Scaling parameter.
const SolveType _solve_type
Type of solve to use used in the action.
libMesh::FEType _fe_type
FEType for the variable being created.