https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
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
36void
41
42void
registerMooseObject("PhaseFieldApp", SmoothCircleIC)
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
SmoothcircleBaseIC is the base class for all initial conditions that create circles.
static InputParameters validParams()
std::vector< Real > _radii
std::vector< Point > _centers
SmoothcircleIC creates a circle of a given radius centered at a given point in the domain.
virtual void computeCircleCenters()
SmoothCircleIC(const InputParameters &parameters)
virtual void computeCircleRadii()
static InputParameters validParams()