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 46 of file C1ICBase.h.

Constructor & Destructor Documentation

◆ C1ICBase()

C1ICBase::C1ICBase ( const InputParameters &  parameters)

Definition at line 46 of file C1ICBase.C.

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

Member Function Documentation

◆ interfaceDerivative()

Number C1ICBase::interfaceDerivative ( Real  r)
protected

Definition at line 71 of file C1ICBase.C.

72 {
73  Real x = (r - _buffer) / _interface;
74 
75  if (x < 0.0)
76  return 0.0;
77  if (x > 1.0)
78  return 0.0;
79 
80  return ((12.0 * x * x - 12.0 * x) * _amplitude);
81 }
Real _interface
Definition: C1ICBase.h:57
Real _amplitude
Definition: C1ICBase.h:53
Real _buffer
Definition: C1ICBase.h:56

◆ interfaceValue()

Number C1ICBase::interfaceValue ( Real  r)
protected

Definition at line 58 of file C1ICBase.C.

Referenced by CrossIC::value().

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

Member Data Documentation

◆ _amplitude

Real C1ICBase::_amplitude
protected

Definition at line 53 of file C1ICBase.h.

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

◆ _average

Real C1ICBase::_average
protected

Definition at line 52 of file C1ICBase.h.

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

◆ _buffer

Real C1ICBase::_buffer
protected

Definition at line 56 of file C1ICBase.h.

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

◆ _interface

Real C1ICBase::_interface
protected

Definition at line 57 of file C1ICBase.h.

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

◆ _length

Real C1ICBase::_length
protected

Definition at line 54 of file C1ICBase.h.

Referenced by CrossIC::value().

◆ _width

Real C1ICBase::_width
protected

Definition at line 55 of file C1ICBase.h.

Referenced by CrossIC::value().


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