https://mooseframework.inl.gov
Loading...
Searching...
No Matches
BoundingBoxIC.h
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#pragma once
11
12#include "InitialCondition.h"
13
23{
24public:
26
28
29 virtual Real value(const Point & p) override;
30
31protected:
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
59 const Real _int_width;
60};
BoundingBoxIC allows setting the initial condition of a value inside and outside of a specified box.
const Real _z1
const Real _x1
const Real _inside
The constant value to assign within the bounding box.
const Real _z2
static InputParameters validParams()
const Point _bottom_left
The Point object constructed from the x1, y1, z1 components for the bottom left BB corner.
const Real _outside
The constant value to assign outside of the bounding box.
const Real _x2
const Point _top_right
The Point object constructed from the x2, y2, z2 components for the bottom left BB corner.
const Real _y2
virtual Real value(const Point &p) override
The value of the variable at a point.
const Real _y1
const Real _int_width
Interfacial width.
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 InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131