www.mooseframework.org
PresetDisplacement.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 "DirichletBCBase.h"
13 #include "Function.h"
14 
22 class PresetDisplacement : public DirichletBCBase
23 {
24 public:
25  static InputParameters validParams();
26 
27  PresetDisplacement(const InputParameters & parameters);
28 
29 protected:
30  virtual Real computeQpValue();
31 
32  const VariableValue & _u_old;
33  const Real _scale_factor;
34  const Function & _function;
35  const VariableValue & _vel_old;
36  const VariableValue & _accel_old;
37  const Real _beta;
38 };
39 
40 template <>
41 InputParameters validParams<PresetDisplacement>();
PresetDisplacement::PresetDisplacement
PresetDisplacement(const InputParameters &parameters)
Definition: PresetDisplacement.C:37
PresetDisplacement::validParams
static InputParameters validParams()
Definition: PresetDisplacement.C:18
PresetDisplacement::_beta
const Real _beta
Definition: PresetDisplacement.h:37
validParams< PresetDisplacement >
InputParameters validParams< PresetDisplacement >()
PresetDisplacement::computeQpValue
virtual Real computeQpValue()
Definition: PresetDisplacement.C:49
PresetDisplacement::_function
const Function & _function
Definition: PresetDisplacement.h:34
PresetDisplacement::_u_old
const VariableValue & _u_old
Definition: PresetDisplacement.h:32
PresetDisplacement::_scale_factor
const Real _scale_factor
Definition: PresetDisplacement.h:33
PresetDisplacement
This class applies a displacement time history on a given boundary in a given direction.
Definition: PresetDisplacement.h:22
PresetDisplacement::_accel_old
const VariableValue & _accel_old
Definition: PresetDisplacement.h:36
PresetDisplacement::_vel_old
const VariableValue & _vel_old
Definition: PresetDisplacement.h:35