www.mooseframework.org
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
C1ICBase Class Reference

C1ICBase is used by the CrossIC. More...

#include <C1ICBase.h>

Inheritance diagram for C1ICBase:
[legend]

Public Member Functions

 C1ICBase (const InputParameters &parameters)
 

Protected Member Functions

Number interfaceValue (Real r)
 
Number interfaceDerivative (Real r)
 

Protected Attributes

Real _average
 
Real _amplitude
 
Real _length
 
Real _width
 
Real _buffer
 
Real _interface
 

Detailed Description

C1ICBase is used by the CrossIC.

Definition at line 43 of file C1ICBase.h.

Constructor & Destructor Documentation

C1ICBase::C1ICBase ( const InputParameters &  parameters)

Definition at line 43 of file C1ICBase.C.

44  : InitialCondition(parameters),
45  _average(parameters.get<Real>("average")),
46  _amplitude(parameters.get<Real>("amplitude")),
47  _length(parameters.get<Real>("length")),
48  _width(parameters.get<Real>("width")),
49  _buffer(parameters.get<Real>("buffer")),
50  _interface(parameters.get<Real>("interface"))
51 {
52 }
Real _interface
Definition: C1ICBase.h:54
Real _average
Definition: C1ICBase.h:49
Real _length
Definition: C1ICBase.h:51
Real _amplitude
Definition: C1ICBase.h:50
Real _width
Definition: C1ICBase.h:52
Real _buffer
Definition: C1ICBase.h:53

Member Function Documentation

Number C1ICBase::interfaceDerivative ( Real  r)
protected

Definition at line 68 of file C1ICBase.C.

69 {
70  Real x = (r - _buffer) / _interface;
71 
72  if (x < 0.0)
73  return 0.0;
74  if (x > 1.0)
75  return 0.0;
76 
77  return ((12.0 * x * x - 12.0 * x) * _amplitude);
78 }
Real _interface
Definition: C1ICBase.h:54
Real _amplitude
Definition: C1ICBase.h:50
Real _buffer
Definition: C1ICBase.h:53
Number C1ICBase::interfaceValue ( Real  r)
protected

Definition at line 55 of file C1ICBase.C.

Referenced by CrossIC::value().

56 {
57  Real x = (r - _buffer) / _interface;
58 
59  if (x < 0.0)
60  return (_average + _amplitude);
61  if (x > 1.0)
62  return (_average - _amplitude);
63 
64  return ((1.0 + 4.0 * x * x * x - 6.0 * x * x) * _amplitude + _average);
65 }
Real _interface
Definition: C1ICBase.h:54
Real _average
Definition: C1ICBase.h:49
Real _amplitude
Definition: C1ICBase.h:50
Real _buffer
Definition: C1ICBase.h:53

Member Data Documentation

Real C1ICBase::_amplitude
protected

Definition at line 50 of file C1ICBase.h.

Referenced by interfaceDerivative(), interfaceValue(), and CrossIC::value().

Real C1ICBase::_average
protected

Definition at line 49 of file C1ICBase.h.

Referenced by interfaceValue(), and CrossIC::value().

Real C1ICBase::_buffer
protected

Definition at line 53 of file C1ICBase.h.

Referenced by interfaceDerivative(), interfaceValue(), and CrossIC::value().

Real C1ICBase::_interface
protected

Definition at line 54 of file C1ICBase.h.

Referenced by interfaceDerivative(), interfaceValue(), and CrossIC::value().

Real C1ICBase::_length
protected

Definition at line 51 of file C1ICBase.h.

Referenced by CrossIC::value().

Real C1ICBase::_width
protected

Definition at line 52 of file C1ICBase.h.

Referenced by CrossIC::value().


The documentation for this class was generated from the following files: