https://mooseframework.inl.gov
SmoothCircleIC.C
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 #include "SmoothCircleIC.h"
11 
12 registerMooseObject("PhaseFieldApp", SmoothCircleIC);
13 
16 {
18  params.addClassDescription("Circle with a smooth interface");
19  params.addRequiredParam<Real>("x1", "The x coordinate of the circle center");
20  params.addRequiredParam<Real>("y1", "The y coordinate of the circle center");
21  params.addParam<Real>("z1", 0.0, "The z coordinate of the circle center");
22  params.addRequiredParam<Real>("radius", "The radius of a circle");
23  return params;
24 }
25 
27  : SmoothCircleBaseIC(parameters),
28  _x1(parameters.get<Real>("x1")),
29  _y1(parameters.get<Real>("y1")),
30  _z1(parameters.get<Real>("z1")),
31  _radius(parameters.get<Real>("radius")),
32  _center(_x1, _y1, _z1)
33 {
34 }
35 
36 void
38 {
39  _radii = {_radius};
40 }
41 
42 void
44 {
45  _centers = {_center};
46 }
static InputParameters validParams()
SmoothcircleIC creates a circle of a given radius centered at a given point in the domain...
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
std::vector< Real > _radii
std::vector< Point > _centers
virtual void computeCircleCenters()
void addRequiredParam(const std::string &name, const std::string &doc_string)
SmoothcircleBaseIC is the base class for all initial conditions that create circles.
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void addClassDescription(const std::string &doc_string)
SmoothCircleIC(const InputParameters &parameters)
registerMooseObject("PhaseFieldApp", SmoothCircleIC)
const Elem & get(const ElemType type_in)
virtual void computeCircleRadii()