Line data Source code
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 : #pragma once 11 : 12 : // MOOSE includes 13 : #include "SmoothCircleBaseIC.h" 14 : 15 : /** 16 : * An InitialCondition for initializing phase variable in close packed circles/spheres pattern 17 : */ 18 : class ClosePackIC : public SmoothCircleBaseIC 19 : { 20 : public: 21 : static InputParameters validParams(); 22 : 23 : ClosePackIC(const InputParameters & parameters); 24 : 25 : protected: 26 : /// The radius are populated in the computeCircleCenters 27 15 : virtual void computeCircleRadii() {} 28 : 29 : /// Compute the close packed centers and radii 30 : virtual void computeCircleCenters(); 31 : 32 : /// User-supplied circle radius 33 : const Real _radius; 34 : };