www.mooseframework.org
LevelSetOlssonVortex.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 "Function.h"
13 
14 // Forward declarations
16 
17 template <>
18 InputParameters validParams<LevelSetOlssonVortex>();
19 
23 class LevelSetOlssonVortex : public Function
24 {
25 public:
26  LevelSetOlssonVortex(const InputParameters & parameters);
27 
28  Real value(Real t, const Point & p) const override;
29 
30  RealVectorValue vectorValue(Real t, const Point & p) const override;
31 
32 protected:
34  const Real & _reverse_time;
35 
37  const MooseEnum & _reverse_type;
38 
40  const MooseEnum & _component;
41 
42  // Convenience for libMesh::pi
43  const Real _pi;
44 };
LevelSetOlssonVortex::_pi
const Real _pi
Definition: LevelSetOlssonVortex.h:43
validParams< LevelSetOlssonVortex >
InputParameters validParams< LevelSetOlssonVortex >()
Definition: LevelSetOlssonVortex.C:16
LevelSetOlssonVortex
Defines a vortex velocity field in the x-y plane.
Definition: LevelSetOlssonVortex.h:23
LevelSetOlssonVortex::vectorValue
RealVectorValue vectorValue(Real t, const Point &p) const override
Definition: LevelSetOlssonVortex.C:48
LevelSetOlssonVortex::LevelSetOlssonVortex
LevelSetOlssonVortex(const InputParameters &parameters)
Definition: LevelSetOlssonVortex.C:32
LevelSetOlssonVortex::_component
const MooseEnum & _component
The vector component to return.
Definition: LevelSetOlssonVortex.h:40
LevelSetOlssonVortex::_reverse_type
const MooseEnum & _reverse_type
Type of reverse (instantaneous or smooth)
Definition: LevelSetOlssonVortex.h:37
LevelSetOlssonVortex::_reverse_time
const Real & _reverse_time
Total time for the velocity field to complete reverse.
Definition: LevelSetOlssonVortex.h:34
LevelSetOlssonVortex::value
Real value(Real t, const Point &p) const override
Definition: LevelSetOlssonVortex.C:42