37 params.
addParam<
Real>(
"x1", 0.0,
"The x coordinate of the lower left-hand corner of the box");
38 params.
addParam<
Real>(
"y1", 0.0,
"The y coordinate of the lower left-hand corner of the box");
39 params.
addParam<
Real>(
"x2", 1.0,
"The x coordinate of the upper right-hand corner of the box");
40 params.
addParam<
Real>(
"y2", 1.0,
"The y coordinate of the upper right-hand corner of the box");
46 _x1(parameters.
get<
Real>(
"x1")),
47 _y1(parameters.
get<
Real>(
"y1")),
48 _x2(parameters.
get<
Real>(
"x2")),
72 else if (
y > 0.5 +
_width / 2.0)
79 else if (
y > 0.5 -
_width / 2.0)
99 else if (
y > 0.5 +
_width / 2.0)
101 else if (
y > 0.5 -
_width / 2.0)
108 else if (
x > 0.5 +
_width / 2.0)
125 else if (
y > 0.5 +
_width / 2.0)
132 else if (
y > 0.5 -
_width / 2.0)
159 else if (
x > 0.5 -
_width / 2.0)
189 else if (
y > 0.5 +
_width / 2.0)
196 else if (
y > 0.5 -
_width / 2.0)
227 else if (
y > 0.5 +
_width / 2.0)
229 else if (
y > 0.5 -
_width / 2.0)
242 else if (
y > 0.5 +
_width / 2.0)
249 else if (
y > 0.5 -
_width / 2.0)
270 Point pxminus = p, pxplus = p, pyminus = p, pyplus = p;
272 pxminus(0) -= TOLERANCE;
273 pyminus(1) -= TOLERANCE;
274 pxplus(0) += TOLERANCE;
275 pyplus(1) += TOLERANCE;
278 uyplus =
value(pyplus);
280 return Gradient((uxplus - uxminus) / 2.0 / TOLERANCE, (uyplus - uyminus) / 2.0 / TOLERANCE);
static InputParameters validParams()
const std::vector< double > y
ADRealEigenVector< T, D, asd > sqrt(const ADRealEigenVector< T, D, asd > &)
C1ICBase is used by the CrossIC.
registerMooseObject("PhaseFieldApp", CrossIC)
Number interfaceValue(Real r)
CrossIC creates a C1 continuous initial condition that looks like a cross in the middle of the domain...
CrossIC(const InputParameters ¶meters)
const std::vector< double > x
virtual Real value(const Point &p)
NumberVectorValue Gradient
static InputParameters validParams()
virtual RealGradient gradient(const Point &p)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Elem & get(const ElemType type_in)