www.mooseframework.org
MultiBoundingBoxIC.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 #ifndef MULTIBOUNDINGBOXIC_H
8 #define MULTIBOUNDINGBOXIC_H
9 
10 #include "InitialCondition.h"
11 
12 // Forward Declarations
13 class MultiBoundingBoxIC;
14 
15 template <>
16 InputParameters validParams<MultiBoundingBoxIC>();
17 
24 class MultiBoundingBoxIC : public InitialCondition
25 {
26 public:
27  MultiBoundingBoxIC(const InputParameters & parameters);
28 
29  virtual Real value(const Point & p);
30 
31 protected:
33  std::vector<Point> _c1;
34  std::vector<Point> _c2;
36 
38  const unsigned int _nbox;
39 
41  const unsigned int _dim;
42 
44  std::vector<Real> _inside;
45 
47  const Real _outside;
48 };
49 
50 #endif // MULTIBOUNDINGBOXIC_H
std::vector< Real > _inside
values inside the boxes
virtual Real value(const Point &p)
InputParameters validParams< MultiBoundingBoxIC >()
const unsigned int _dim
dimensionality of the mesh
MultiBoundingBoxIC(const InputParameters &parameters)
std::vector< Point > _c1
lists of opposite corners
const unsigned int _nbox
number of boxes
const Real _outside
values outside the boxes
MultiBoundingBoxIC allows setting the initial condition of a value inside and outside of a specified ...
std::vector< Point > _c2