www.mooseframework.org
SmoothSuperellipsoidBaseIC.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 "InitialCondition.h"
13 #include "MooseRandom.h"
14 
23 {
24 public:
26 
28 
29  virtual Real value(const Point & p);
30  virtual RealGradient gradient(const Point & p);
31 
32  virtual void initialSetup();
33 
34 protected:
35  virtual Real
36  computeSuperellipsoidValue(const Point & p, const Point & center, Real a, Real b, Real c, Real n);
38  const Point & p, const Point & center, Real a, Real b, Real c, Real n);
40  const Point & p, const Point & center, Real a, Real b, Real c, Real n);
41 
42  virtual void computeSuperellipsoidSemiaxes() = 0;
43  virtual void computeSuperellipsoidExponents() = 0;
44  virtual void computeSuperellipsoidCenters() = 0;
45 
47 
53 
54  unsigned int _num_dim;
55 
56  std::vector<Point> _centers;
57  std::vector<Real> _as;
58  std::vector<Real> _bs;
59  std::vector<Real> _cs;
60  std::vector<Real> _ns;
61 
63 };
virtual RealGradient gradient(const Point &p)
virtual void computeSuperellipsoidSemiaxes()=0
static InputParameters validParams()
virtual Real value(const Point &p)
SmoothSuperellipsoidBaseIC is the base class for all initial conditions that create superellipsoids...
RealGradient computeSuperellipsoidGradient(const Point &p, const Point &center, Real a, Real b, Real c, Real n)
virtual Real computeSuperellipsoidValue(const Point &p, const Point &center, Real a, Real b, Real c, Real n)
virtual Real computeSuperellipsoidInverseValue(const Point &p, const Point &center, Real a, Real b, Real c, Real n)
virtual void computeSuperellipsoidCenters()=0
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual void computeSuperellipsoidExponents()=0
const InputParameters & parameters() const
SmoothSuperellipsoidBaseIC(const InputParameters &parameters)
static const std::string center
Definition: NS.h:28