www.mooseframework.org
CrossIC.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 CROSSIC_H
8 #define CROSSIC_H
9 
10 // Portions of this code Copyright 2007-2009 Roy Stogner
11 //
12 // Permission is hereby granted, free of charge, to any person obtaining
13 // a copy of this software and associated documentation files (the
14 //"Software"), to deal in the Software without restriction, including
15 // without limitation the rights to use, copy, modify, merge, publish,
16 // distribute, sublicense, and/or sell copies of the Software, and to
17 // permit persons to whom the Software is furnished to do so, subject to
18 // the following conditions:
19 //
20 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
23 // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
24 // CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
25 // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
26 // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 
28 #include "InitialCondition.h"
29 #include "C1ICBase.h"
30 
31 // Forward Declarations
32 class CrossIC;
33 
34 template <>
35 InputParameters validParams<CrossIC>();
36 
41 class CrossIC : public C1ICBase
42 {
43 public:
44  CrossIC(const InputParameters & parameters);
45 
46  virtual Real value(const Point & p);
47  virtual RealGradient gradient(const Point & p);
48 
49  const Real _x1;
50  const Real _y1;
51  const Real _x2;
52  const Real _y2;
53 };
54 
55 #endif // CROSSIC_H
const Real _x2
Definition: CrossIC.h:51
InputParameters validParams< CrossIC >()
Definition: CrossIC.C:29
C1ICBase is used by the CrossIC.
Definition: C1ICBase.h:43
CrossIC creates a C1 continuous initial condition that looks like a cross in the middle of the domain...
Definition: CrossIC.h:41
CrossIC(const InputParameters &parameters)
Definition: CrossIC.C:40
const Real _y1
Definition: CrossIC.h:50
const Real _x1
Definition: CrossIC.h:49
const Real _y2
Definition: CrossIC.h:52
virtual Real value(const Point &p)
Definition: CrossIC.C:50
virtual RealGradient gradient(const Point &p)
Definition: CrossIC.C:264