www.mooseframework.org
PresetNodalBC.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 "NodalBC.h"
13 
14 class PresetNodalBC;
15 
16 template <>
18 
22 class PresetNodalBC : public NodalBC
23 {
24 public:
26 
27  void computeValue(NumericVector<Number> & current_solution);
28 
29 protected:
30  virtual Real computeQpResidual() override;
31  virtual Real computeQpValue() = 0;
32 };
33 
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
virtual Real computeQpResidual() override
Definition: PresetNodalBC.C:36
Base class for deriving any boundary condition that works at nodes.
Definition: NodalBC.h:26
void computeValue(NumericVector< Number > &current_solution)
Definition: PresetNodalBC.C:28
PresetNodalBC(const InputParameters &parameters)
Definition: PresetNodalBC.C:25
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:65
Base class for nodal BCs that (pre)set the solution vector entries.
Definition: PresetNodalBC.h:22
InputParameters validParams< PresetNodalBC >()
Definition: PresetNodalBC.C:19
virtual Real computeQpValue()=0