https://mooseframework.inl.gov
SmoothTransition.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 "MooseTypes.h"
13 
18 {
19 public:
26  SmoothTransition(const Real & x_center, const Real & transition_width);
27 
35  virtual Real value(const Real & x, const Real & f1, const Real & f2) const = 0;
36 
40  const Real & leftEnd() const { return _x1; }
41 
45  const Real & rightEnd() const { return _x2; }
46 
47 protected:
49  const Real _x_center;
52 
54  const Real _x1;
56  const Real _x2;
57 };
const Real _x2
Right end point of transition.
const Real _x_center
Center point of transition.
SmoothTransition(const Real &x_center, const Real &transition_width)
Constructor.
const Real _transition_width
Width of transition.
Base class for smooth transitions between two functions of one variable.
const std::vector< double > x
const Real & leftEnd() const
Returns the coordinate of the left end of the transition.
virtual Real value(const Real &x, const Real &f1, const Real &f2) const =0
Computes the transition value.
const Real & rightEnd() const
Returns the coordinate of the right end of the transition.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Real _x1
Left end point of transition.