https://mooseframework.inl.gov
Loading...
Searching...
No Matches
NodalGravity.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#include "NodalKernel.h"
13
14// Forward Declarations
15
20{
21public:
23
25
26protected:
27 virtual Real computeQpResidual() override;
28
30 const bool _has_mass;
32
34 const Real _mass;
35
37 const Real _alpha;
38
40 const Real _gravity_value;
41
44
46 std::map<dof_id_type, Real> _node_id_to_mass;
47};
const InputParameters & parameters() const
Calculates the gravitational force proportional to nodal mass.
virtual Real computeQpResidual() override
std::map< dof_id_type, Real > _node_id_to_mass
Map between boundary nodes and nodal mass.
const bool _has_mass
Booleans for validity of params.
static InputParameters validParams()
const Real _mass
Mass associated with the node.
const Real _alpha
HHT time integration parameter.
const bool _has_nodal_mass_file
const Real _gravity_value
Acceleration due to gravity.
const Function & _function
Time and space dependent factor multiplying acceleration due to gravity.