OGS
ProcessLib::BoundaryConditionAndSourceTerm::Python::NsAndWeight< ShapeFunction, ShapeFunction, ShapeMatrix, ShapeMatrix > Struct Template Reference

Detailed Description

template<typename ShapeFunction, typename ShapeMatrix>
struct ProcessLib::BoundaryConditionAndSourceTerm::Python::NsAndWeight< ShapeFunction, ShapeFunction, ShapeMatrix, ShapeMatrix >

Specialization if shape function and lower order shape function are the same.

Definition at line 74 of file NsAndWeight.h.

#include <NsAndWeight.h>

Public Member Functions

 NsAndWeight (ShapeMatrix &&N, double const weight)
Eigen::Ref< const Eigen::RowVectorXd > N (unsigned order) const
ShapeMatrix const & NHigherOrder () const
double weight () const

Private Attributes

ShapeMatrix N_
double weight_
ShapeMatrix N_higher_
ShapeMatrix N_lower_

Constructor & Destructor Documentation

◆ NsAndWeight()

Member Function Documentation

◆ N()

template<typename ShapeFunction, typename ShapeMatrix>
Eigen::Ref< const Eigen::RowVectorXd > ProcessLib::BoundaryConditionAndSourceTerm::Python::NsAndWeight< ShapeFunction, ShapeFunction, ShapeMatrix, ShapeMatrix >::N ( unsigned order) const
inline

Definition at line 85 of file NsAndWeight.h.

86 {
87 // For point elements shape functions are the same for all orders, so
88 // this specialization will be selected, which is OK for any shape
89 // function order for point elements.
91 {
92 if (order >= 2)
93 {
95 "Only shape functions of order < 2 are available in the "
96 "current setting. You have requested order {}. Maybe there "
97 "is an error in the OGS project file.",
98 order);
99 }
100 }
101
102 return N_;
103 }
#define OGS_FATAL(...)
Definition Error.h:19

References N_, and OGS_FATAL.

Referenced by NsAndWeight().

◆ NHigherOrder()

template<typename ShapeFunction, typename ShapeMatrix>
ShapeMatrix const & ProcessLib::BoundaryConditionAndSourceTerm::Python::NsAndWeight< ShapeFunction, ShapeFunction, ShapeMatrix, ShapeMatrix >::NHigherOrder ( ) const
inline

Definition at line 105 of file NsAndWeight.h.

105{ return N_; }

References N_.

◆ weight()

template<typename ShapeFunction, typename ShapeMatrix>
double ProcessLib::BoundaryConditionAndSourceTerm::Python::NsAndWeight< ShapeFunction, ShapeFunction, ShapeMatrix, ShapeMatrix >::weight ( ) const
inline

Definition at line 107 of file NsAndWeight.h.

107{ return weight_; }

References weight_.

Referenced by NsAndWeight().

Member Data Documentation

◆ N_

template<typename ShapeFunction, typename ShapeMatrix>
ShapeMatrix ProcessLib::BoundaryConditionAndSourceTerm::Python::NsAndWeight< ShapeFunction, ShapeFunction, ShapeMatrix, ShapeMatrix >::N_
private

Definition at line 110 of file NsAndWeight.h.

Referenced by NsAndWeight(), N(), and NHigherOrder().

◆ N_higher_

ShapeMatrix ProcessLib::BoundaryConditionAndSourceTerm::Python::NsAndWeight< ShapeFunction, ShapeFunction, ShapeMatrix, ShapeMatrix >::N_higher_
private

Definition at line 66 of file NsAndWeight.h.

◆ N_lower_

ShapeMatrix ProcessLib::BoundaryConditionAndSourceTerm::Python::NsAndWeight< ShapeFunction, ShapeFunction, ShapeMatrix, ShapeMatrix >::N_lower_
private

Definition at line 67 of file NsAndWeight.h.

◆ weight_

template<typename ShapeFunction, typename ShapeMatrix>
double ProcessLib::BoundaryConditionAndSourceTerm::Python::NsAndWeight< ShapeFunction, ShapeFunction, ShapeMatrix, ShapeMatrix >::weight_
private

Definition at line 111 of file NsAndWeight.h.

Referenced by NsAndWeight(), and weight().


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