www.mooseframework.org
MultiBoundingBoxIC.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 #include "InitialCondition.h"
13 
20 {
21 public:
23 
25 
26  virtual Real value(const Point & p) override;
27 
28 protected:
30  const std::vector<Point> _c1;
31  const std::vector<Point> _c2;
33 
35  const unsigned int _nbox;
36 
38  const unsigned int _dim;
39 
41  const std::vector<Real> _inside;
42 
44  const Real _outside;
45 };
static InputParameters validParams()
const unsigned int _dim
dimensionality of the mesh
MultiBoundingBoxIC(const InputParameters &parameters)
const std::vector< Real > _inside
values inside the boxes
const std::vector< Point > _c2
const unsigned int _nbox
number of boxes
virtual Real value(const Point &p) override
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Real _outside
values outside the boxes
const std::vector< Point > _c1
lists of opposite corners
const InputParameters & parameters() const
MultiBoundingBoxIC allows setting the initial condition of a value of a field inside and outside mult...