www.mooseframework.org
BoundingBoxIC.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 
23 {
24 public:
26 
28 
29  virtual Real value(const Point & p) override;
30 
31 protected:
34  const Real _x1;
35  const Real _y1;
36  const Real _z1;
38 
41  const Real _x2;
42  const Real _y2;
43  const Real _z2;
45 
47  const Real _inside;
48 
50  const Real _outside;
51 
53  const Point _bottom_left;
54 
56  const Point _top_right;
57 
60 };
const Real _z2
Definition: BoundingBoxIC.h:43
const Real _y1
Definition: BoundingBoxIC.h:35
This is a template class that implements the workhorse compute and computeNodal methods.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
const Real _x1
Definition: BoundingBoxIC.h:34
BoundingBoxIC allows setting the initial condition of a value inside and outside of a specified box...
Definition: BoundingBoxIC.h:22
const Real _inside
The constant value to assign within the bounding box.
Definition: BoundingBoxIC.h:47
const Real _int_width
Interfacial width.
Definition: BoundingBoxIC.h:59
virtual Real value(const Point &p) override
The value of the variable at a point.
Definition: BoundingBoxIC.C:57
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Point _top_right
The Point object constructed from the x2, y2, z2 components for the bottom left BB corner...
Definition: BoundingBoxIC.h:56
const InputParameters & parameters() const
Get the parameters of the object.
const Point _bottom_left
The Point object constructed from the x1, y1, z1 components for the bottom left BB corner...
Definition: BoundingBoxIC.h:53
const Real _y2
Definition: BoundingBoxIC.h:42
const Real _x2
Definition: BoundingBoxIC.h:41
const Real _z1
Definition: BoundingBoxIC.h:36
const Real _outside
The constant value to assign outside of the bounding box.
Definition: BoundingBoxIC.h:50
BoundingBoxIC(const InputParameters &parameters)
Definition: BoundingBoxIC.C:40
static InputParameters validParams()
Definition: BoundingBoxIC.C:16