|
| OpURhs (const std::string field_name, boost::shared_ptr< MatrixDouble > u_ptr, boost::shared_ptr< MatrixDouble > u_dot_ptr, boost::shared_ptr< MatrixDouble > grad_u_ptr, boost::shared_ptr< MatrixDouble > grad_h_ptr) |
|
MoFEMErrorCode | iNtegrate (EntitiesFieldData::EntData &row_data) |
| Class dedicated to integrate operator. More...
|
|
| OpBaseImpl (const std::string row_field_name, const std::string col_field_name, const OpType type, boost::shared_ptr< Range > ents_ptr=nullptr) |
|
MoFEMErrorCode | doWork (int row_side, int col_side, EntityType row_type, EntityType col_type, EntData &row_data, EntData &col_data) |
| Do calculations for the left hand side. More...
|
|
MoFEMErrorCode | doWork (int row_side, EntityType row_type, EntData &row_data) |
| Do calculations for the right hand side. More...
|
|
|
boost::shared_ptr< MatrixDouble > | uPtr |
|
boost::shared_ptr< MatrixDouble > | uDotPtr |
|
boost::shared_ptr< MatrixDouble > | uGradPtr |
|
boost::shared_ptr< MatrixDouble > | hGradPtr |
|
|
using | OpType = typename EleOp::OpType |
|
using | EntData = EntitiesFieldData::EntData |
|
using | MatSetValuesHook = boost::function< MoFEMErrorCode(ForcesAndSourcesCore::UserDataOperator *op_ptr, const EntitiesFieldData::EntData &row_data, const EntitiesFieldData::EntData &col_data, MatrixDouble &m)> |
|
TimeFun | timeScalingFun |
| assumes that time variable is set More...
|
|
FEFun | feScalingFun |
| assumes that time variable is set More...
|
|
boost::shared_ptr< Range > | entsPtr |
| Entities on which element is run. More...
|
|
static MatSetValuesHook | matSetValuesHook |
|
template<int DIM> |
FTensor::Tensor1< FTensor::PackPtr< double *, DIM >, DIM > | getNf () |
|
template<int DIM> |
FTensor::Tensor2< FTensor::PackPtr< double *, DIM >, DIM, DIM > | getLocMat (const int rr) |
|
virtual MoFEMErrorCode | iNtegrate (EntData &row_data, EntData &col_data) |
| Integrate grad-grad operator. More...
|
|
virtual MoFEMErrorCode | aSsemble (EntData &row_data, EntData &col_data, const bool trans) |
|
virtual MoFEMErrorCode | aSsemble (EntData &data) |
|
virtual size_t | getNbOfBaseFunctions (EntitiesFieldData::EntData &data) |
| Get number of base functions. More...
|
|
int | nbRows |
| number of dofs on rows More...
|
|
int | nbCols |
| number if dof on column More...
|
|
int | nbIntegrationPts |
| number of integration points More...
|
|
int | nbRowBaseFunctions |
| number or row base functions More...
|
|
int | rowSide |
| row side number More...
|
|
int | colSide |
| column side number More...
|
|
EntityType | rowType |
| row type More...
|
|
EntityType | colType |
| column type More...
|
|
bool | assembleTranspose |
|
bool | onlyTranspose |
|
MatrixDouble | locMat |
| local entity block matrix More...
|
|
MatrixDouble | locMatTranspose |
| local entity block matrix More...
|
|
VectorDouble | locF |
| local entity vector More...
|
|
- Examples
- shallow_wave.cpp.
Definition at line 82 of file shallow_wave.cpp.
◆ OpURhs()
OpURhs::OpURhs |
( |
const std::string |
field_name, |
|
|
boost::shared_ptr< MatrixDouble > |
u_ptr, |
|
|
boost::shared_ptr< MatrixDouble > |
u_dot_ptr, |
|
|
boost::shared_ptr< MatrixDouble > |
grad_u_ptr, |
|
|
boost::shared_ptr< MatrixDouble > |
grad_h_ptr |
|
) |
| |
|
inline |
◆ iNtegrate()
Class dedicated to integrate operator.
- Parameters
-
data | entity data on element row |
- Returns
- error code
Reimplemented from MoFEM::OpBaseImpl< A, EleOp >.
Definition at line 92 of file shallow_wave.cpp.
95 const double vol = getMeasure();
96 auto t_w = getFTensor0IntegrationWeight();
97 auto t_row_base = row_data.getFTensor0N();
98 auto t_row_diff_base = row_data.getFTensor1DiffN<3>();
99 auto t_dot_u = getFTensor1FromMat<3>(*
uDotPtr);
100 auto t_u = getFTensor1FromMat<3>(*
uPtr);
101 auto t_grad_u = getFTensor2FromMat<3, 3>(*
uGradPtr);
102 auto t_grad_h = getFTensor1FromMat<3>(*
hGradPtr);
103 auto t_coords = getFTensor1CoordsAtGaussPts();
104 auto t_normal = getFTensor1NormalsAtGaussPts();
108 const double alpha = t_w * vol;
109 auto t_nf = getFTensor1FromArray<3, 3>(
locF);
114 const auto a = std::sqrt(t_coords(
i) * t_coords(
i));
115 const auto sin_fi = t_coords(2) /
a;
116 const auto f = 2 *
omega * sin_fi;
119 t_r(
i) = t_normal(
i);
124 t_P(
i,
j) = t_r(
i) * t_r(
j);
130 t_rhs(
m) = t_Q(
m,
i) * (t_dot_u(
i) + t_grad_u(
i,
j) * t_u(
j) +
131 f * t_A(
i,
j) * t_u(
j) +
g * t_grad_h(
i));
132 t_rhs_grad(
m,
j) = t_Q(
m,
i) * (
mu * t_grad_u(
i,
j));
134 t_rhs(
m) += t_P(
m,
j) * t_u(
j);
137 for (; rr !=
nbRows / 3; ++rr) {
138 t_nf(
i) += alpha * t_row_base * t_rhs(
i);
139 t_nf(
i) += alpha * t_row_diff_base(
j) * t_rhs_grad(
i,
j);
◆ hGradPtr
boost::shared_ptr<MatrixDouble> OpURhs::hGradPtr |
|
private |
◆ uDotPtr
boost::shared_ptr<MatrixDouble> OpURhs::uDotPtr |
|
private |
◆ uGradPtr
boost::shared_ptr<MatrixDouble> OpURhs::uGradPtr |
|
private |
◆ uPtr
boost::shared_ptr<MatrixDouble> OpURhs::uPtr |
|
private |
The documentation for this struct was generated from the following file:
constexpr std::enable_if<(Dim0<=2 &&Dim1<=2), Tensor2_Expr< Levi_Civita< T >, T, Dim0, Dim1, i, j > >::type levi_civita(const Index< i, Dim0 > &, const Index< j, Dim1 > &)
levi_civita functions to make for easy adhoc use