www.mooseframework.org
SmoothCircleIC.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 #include "SmoothCircleIC.h"
8 
9 template <>
10 InputParameters
12 {
13  InputParameters params = validParams<SmoothCircleBaseIC>();
14  params.addClassDescription("Circle with a smooth interface");
15  params.addRequiredParam<Real>("x1", "The x coordinate of the circle center");
16  params.addRequiredParam<Real>("y1", "The y coordinate of the circle center");
17  params.addParam<Real>("z1", 0.0, "The z coordinate of the circle center");
18  params.addRequiredParam<Real>("radius", "The radius of a circle");
19  return params;
20 }
21 
22 SmoothCircleIC::SmoothCircleIC(const InputParameters & parameters)
23  : SmoothCircleBaseIC(parameters),
24  _x1(parameters.get<Real>("x1")),
25  _y1(parameters.get<Real>("y1")),
26  _z1(parameters.get<Real>("z1")),
27  _radius(parameters.get<Real>("radius")),
28  _center(_x1, _y1, _z1)
29 {
30 }
31 
32 void
34 {
35  _radii = {_radius};
36 }
37 
38 void
40 {
41  _centers = {_center};
42 }
std::vector< Real > _radii
std::vector< Point > _centers
virtual void computeCircleCenters()
InputParameters validParams< SmoothCircleIC >()
SmoothcircleBaseIC is the base class for all initial conditions that create circles.
InputParameters validParams< SmoothCircleBaseIC >()
SmoothCircleIC(const InputParameters &parameters)
virtual void computeCircleRadii()