Rhs for U.
More...
#include <tutorials/vec-5/src/FreeSurfaceOps.hpp>
|
| OpRhsU (const std::string field_name, boost::shared_ptr< MatrixDouble > dot_u_ptr, boost::shared_ptr< MatrixDouble > u_ptr, boost::shared_ptr< MatrixDouble > grad_u_ptr, boost::shared_ptr< VectorDouble > h_ptr, boost::shared_ptr< MatrixDouble > grad_h_ptr, boost::shared_ptr< VectorDouble > g_ptr, boost::shared_ptr< VectorDouble > p_ptr) |
|
MoFEMErrorCode | iNtegrate (EntitiesFieldData::EntData &data) |
|
| 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 > | dotUPtr |
|
boost::shared_ptr< MatrixDouble > | uPtr |
|
boost::shared_ptr< MatrixDouble > | gradUPtr |
|
boost::shared_ptr< VectorDouble > | hPtr |
|
boost::shared_ptr< MatrixDouble > | gradHPtr |
|
boost::shared_ptr< VectorDouble > | gPtr |
|
boost::shared_ptr< VectorDouble > | pPtr |
|
|
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 | iNtegrate (EntData &data) |
| Class dedicated to integrate operator. More...
|
|
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...
|
|
Rhs for U.
- Examples
- free_surface.cpp.
Definition at line 356 of file FreeSurfaceOps.hpp.
◆ OpRhsU()
FreeSurfaceOps::OpRhsU::OpRhsU |
( |
const std::string |
field_name, |
|
|
boost::shared_ptr< MatrixDouble > |
dot_u_ptr, |
|
|
boost::shared_ptr< MatrixDouble > |
u_ptr, |
|
|
boost::shared_ptr< MatrixDouble > |
grad_u_ptr, |
|
|
boost::shared_ptr< VectorDouble > |
h_ptr, |
|
|
boost::shared_ptr< MatrixDouble > |
grad_h_ptr, |
|
|
boost::shared_ptr< VectorDouble > |
g_ptr, |
|
|
boost::shared_ptr< VectorDouble > |
p_ptr |
|
) |
| |
|
inline |
◆ iNtegrate()
Definition at line 370 of file FreeSurfaceOps.hpp.
373 const double vol = getMeasure();
374 auto t_dot_u = getFTensor1FromMat<U_FIELD_DIM>(*
dotUPtr);
375 auto t_u = getFTensor1FromMat<U_FIELD_DIM>(*
uPtr);
377 auto t_grad_u = getFTensor2FromMat<U_FIELD_DIM, SPACE_DIM>(*
gradUPtr);
379 auto t_grad_h = getFTensor1FromMat<SPACE_DIM>(*
gradHPtr);
381 auto t_coords = getFTensor1CoordsAtGaussPts();
383 auto t_base = data.getFTensor0N();
384 auto t_diff_base = data.getFTensor1DiffN<
SPACE_DIM>();
386 auto t_w = getFTensor0IntegrationWeight();
402 const double r = t_coords(0);
410 t_inertia_force(
i) = (
rho * alpha) * (t_dot_u(
i));
413 t_phase_force(
i) = -alpha *
kappa * t_g * t_grad_h(
i);
414 t_convection(
i) = (
rho * alpha) * (t_u(
j) * t_grad_u(
i,
j));
417 alpha * (t_D(
i,
j,
k,
l) * t_grad_u(
k,
l) +
t_kd(
i,
j) * t_p);
419 auto t_nf = getFTensor1FromArray<U_FIELD_DIM, U_FIELD_DIM>(
locF);
421 t_forces(
i) = t_inertia_force(
i) + t_buoyancy(
i) + t_gravity(
i) +
422 t_convection(
i) + t_phase_force(
i);
427 t_nf(
i) += t_base * t_forces(
i);
428 t_nf(
i) += t_diff_base(
j) * t_stress(
i,
j);
431 t_nf(0) += (t_base * (alpha / t_coords(0))) * (2 *
mu * t_u(0) + t_p);
◆ dotUPtr
boost::shared_ptr<MatrixDouble> FreeSurfaceOps::OpRhsU::dotUPtr |
|
private |
◆ gPtr
boost::shared_ptr<VectorDouble> FreeSurfaceOps::OpRhsU::gPtr |
|
private |
◆ gradHPtr
boost::shared_ptr<MatrixDouble> FreeSurfaceOps::OpRhsU::gradHPtr |
|
private |
◆ gradUPtr
boost::shared_ptr<MatrixDouble> FreeSurfaceOps::OpRhsU::gradUPtr |
|
private |
◆ hPtr
boost::shared_ptr<VectorDouble> FreeSurfaceOps::OpRhsU::hPtr |
|
private |
◆ pPtr
boost::shared_ptr<VectorDouble> FreeSurfaceOps::OpRhsU::pPtr |
|
private |
◆ uPtr
boost::shared_ptr<MatrixDouble> FreeSurfaceOps::OpRhsU::uPtr |
|
private |
The documentation for this struct was generated from the following file: