https://mooseframework.inl.gov
Loading...
Searching...
No Matches
StructureAcousticInterface.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
11#include "MooseVariableFE.h"
12
14
17{
19 params.addClassDescription("Enforces displacement and stress/pressure continuity "
20 "between the fluid and structural domains. Element "
21 "is always the structure and neighbor is always the"
22 " fluid.");
23 params.addParam<MaterialPropertyName>("D", "D", "Fluid density.");
24 params.addRequiredRangeCheckedParam<unsigned int>(
25 "component", "component < 3", "The desired component of displacement.");
26 return params;
27}
28
30 : InterfaceKernel(parameters),
31 _D(getMaterialProperty<Real>("D")),
32 _neighbor_dotdot(_neighbor_var.uDotDotNeighbor()),
33 _neighbor_dotdot_du(_neighbor_var.duDotDotDuNeighbor()),
34 _component(getParam<unsigned int>("component"))
35{
36}
37
38Real
40{
41 switch (type)
42 {
43 case Moose::Element: // Element is fluid
45
46 case Moose::Neighbor: // Neighbor is structure
48 }
49 return 0.0;
50}
51
52Real
registerMooseObject("FsiApp", StructureAcousticInterface)
void ErrorVector unsigned int
void addRequiredRangeCheckedParam(const std::string &name, const std::string &parsed_function, const std::string &doc_string)
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
const TemplateVariableValue & _u
static InputParameters validParams()
const TemplateVariableTestValue & _test_neighbor
const TemplateVariablePhiValue & _phi
const MooseArray< Point > & _normals
const TemplateVariableTestValue & _test
const TemplateVariablePhiValue & _phi_neighbor
const std::string & type() const
const VariableValue & _neighbor_dotdot_du
StructureAcousticInterface(const InputParameters &parameters)
virtual Real computeQpJacobian(Moose::DGJacobianType type) override
const MaterialProperty< Real > & _D
virtual Real computeQpResidual(Moose::DGResidualType type) override
static InputParameters validParams()
DGResidualType
DGJacobianType
NeighborNeighbor
ElementElement
NeighborElement
ElementNeighbor