https://mooseframework.inl.gov
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
KokkosSideIntegralMaterialProperty Class Reference

#include <KokkosSideIntegralMaterialProperty.h>

Inheritance diagram for KokkosSideIntegralMaterialProperty:
[legend]

Public Member Functions

 KokkosSideIntegralMaterialProperty (const InputParameters &parameters)
 
KOKKOS_FUNCTION Real computeQpIntegral (const unsigned int qp, Datum &datum) const
 
virtual void initialize () override
 
virtual Real getValue () const override
 
virtual void finalize () override
 
template<typename Derived >
KOKKOS_FUNCTION void reduce (Datum &datum, Real *result) const
 
template<typename Derived >
KOKKOS_FUNCTION void join (Real *result, const Real *source) const
 
template<typename Derived >
KOKKOS_FUNCTION void init (Real *result) const
 

Static Public Member Functions

static InputParameters validParams ()
 

Protected Attributes

const Moose::Kokkos::MaterialProperty< Real > _scalar
 
const bool _average
 

Detailed Description

Definition at line 15 of file KokkosSideIntegralMaterialProperty.h.

Constructor & Destructor Documentation

◆ KokkosSideIntegralMaterialProperty()

KokkosSideIntegralMaterialProperty::KokkosSideIntegralMaterialProperty ( const InputParameters parameters)

Member Function Documentation

◆ computeQpIntegral()

KOKKOS_FUNCTION Real KokkosIntegralMaterialProperty< KokkosSideIntegralPostprocessor >::computeQpIntegral ( const unsigned int  qp,
Datum datum 
) const
inherited

Definition at line 22 of file KokkosIntegralMaterialProperty.h.

48{
49 return _scalar(datum, qp);
50}

◆ finalize()

template<typename Base >
virtual void KokkosIntegralPostprocessor< Base >::finalize ( )
overridevirtualinherited

◆ getValue()

template<typename Base >
virtual Real KokkosIntegralPostprocessor< Base >::getValue ( ) const
overridevirtualinherited

◆ init()

template<typename Base >
template<typename Derived >
KOKKOS_FUNCTION void KokkosIntegralPostprocessor< Base >::init ( Real *  result) const
inherited

Definition at line 72 of file KokkosIntegralPostprocessor.h.

73{
74 result[0] = 0;
75
76 if (_average)
77 result[1] = 0;
78}

◆ initialize()

template<typename Base >
virtual void KokkosIntegralPostprocessor< Base >::initialize ( )
overridevirtualinherited

◆ join()

template<typename Base >
template<typename Derived >
KOKKOS_FUNCTION void KokkosIntegralPostprocessor< Base >::join ( Real *  result,
const Real *  source 
) const
inherited

Definition at line 61 of file KokkosIntegralPostprocessor.h.

62{
63 result[0] += source[0];
64
65 if (_average)
66 result[1] += source[1];
67}

◆ reduce()

template<typename Base >
template<typename Derived >
KOKKOS_FUNCTION void KokkosIntegralPostprocessor< Base >::reduce ( Datum datum,
Real *  result 
) const
inherited

Definition at line 41 of file KokkosIntegralPostprocessor.h.

42{
43 Real sum = 0;
44 Real vol = 0;
45
46 for (unsigned int qp = 0; qp < datum.n_qps(); ++qp)
47 {
48 sum += datum.JxW(qp) * static_cast<const Derived *>(this)->computeQpIntegral(qp, datum);
49 vol += datum.JxW(qp);
50 }
51
52 result[0] += sum;
53
54 if (_average)
55 result[1] += vol;
56}
KOKKOS_FUNCTION Real JxW(const unsigned int qp)
Get the transformed Jacobian weight.
KOKKOS_FUNCTION unsigned int n_qps() const
Get the number of local quadrature points.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real

◆ validParams()

static InputParameters KokkosSideIntegralMaterialProperty::validParams ( )
static

Member Data Documentation

◆ _average

template<typename Base >
const bool KokkosIntegralPostprocessor< Base >::_average
protectedinherited

Definition at line 35 of file KokkosIntegralPostprocessor.h.

◆ _scalar

Definition at line 25 of file KokkosIntegralMaterialProperty.h.


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