https://mooseframework.inl.gov
BndsCalcIC.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 "BndsCalcIC.h"
11 #include "BndsCalculator.h"
12 
13 registerMooseObject("PhaseFieldApp", BndsCalcIC);
14 
17 {
19  params.addClassDescription(
20  "Initialize the location of grain boundaries in a polycrystalline sample");
22  "v", "var_name_base", "op_num", "Array of coupled variables");
23  return params;
24 }
25 
27  : InitialCondition(parameters), _op_num(coupledComponents("v")), _vals(coupledValues("v"))
28 {
29 }
30 
31 Real
32 BndsCalcIC::value(const Point & /*p*/)
33 {
35 }
static InputParameters validParams()
Real computeBndsVariable(const std::vector< T *> &var, unsigned int qp)
BndsCalcIC(const InputParameters &parameters)
Definition: BndsCalcIC.C:26
static InputParameters validParams()
Definition: BndsCalcIC.C:16
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void addRequiredCoupledVarWithAutoBuild(const std::string &name, const std::string &base_name, const std::string &num_name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
virtual Real value(const Point &) override
Definition: BndsCalcIC.C:32
const std::vector< const VariableValue * > _vals
Definition: BndsCalcIC.h:25
registerMooseObject("PhaseFieldApp", BndsCalcIC)