https://mooseframework.inl.gov
FluidFreeSurfaceBC.C
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 #include "FluidFreeSurfaceBC.h"
11 
13 
16 {
18  params.addClassDescription("Applies a mixed Dirichlet-Neumann BC on the fluid surface.");
19  params.addRangeCheckedParam<Real>(
20  "alpha", 0.1, "alpha>0", "Inverse of the acceleration due to gravity.");
21  return params;
22 }
23 
25  : IntegratedBC(parameters),
26  _alpha(getParam<Real>("alpha")),
27  _u_dotdot(dotDot()),
28  _du_dotdot_du(dotDotDu())
29 {
30 }
31 
32 Real
34 {
35  return _test[_i][_qp] * _alpha * _u_dotdot[_qp];
36 }
37 
38 Real
40 {
41  return _test[_i][_qp] * _alpha * _du_dotdot_du[_qp] * _phi[_j][_qp];
42 }
const VariableTestValue & _test
FluidFreeSurfaceBC(const InputParameters &parameters)
registerMooseObject("FsiApp", FluidFreeSurfaceBC)
unsigned int _j
const VariableValue & _du_dotdot_du
static InputParameters validParams()
virtual Real computeQpResidual() override
unsigned int _i
const VariablePhiValue & _phi
unsigned int _qp
const Real _alpha
Ratio of u to du/dn. alpha is the inverse of acceleration due to gravity.
const VariableValue & _u_dotdot
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static InputParameters validParams()
void addClassDescription(const std::string &doc_string)
void addRangeCheckedParam(const std::string &name, const T &value, const std::string &parsed_function, const std::string &doc_string)
virtual Real computeQpJacobian() override