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