|
| v0.14.0
|
#include <users_modules/basic_finite_elements/src/ConvectiveMassElement.hpp>
Definition at line 370 of file ConvectiveMassElement.hpp.
◆ OpEshelbyDynamicMaterialMomentumRhs()
ConvectiveMassElement::OpEshelbyDynamicMaterialMomentumRhs::OpEshelbyDynamicMaterialMomentumRhs |
( |
const std::string |
field_name, |
|
|
BlockData & |
data, |
|
|
CommonData & |
common_data, |
|
|
Range * |
forcesonlyonentities_ptr |
|
) |
| |
◆ doWork()
Definition at line 1466 of file ConvectiveMassElement.cpp.
1470 if (
dAta.
tEts.find(getNumeredEntFiniteElementPtr()->getEnt()) ==
1484 int nb_base_functions = row_data.
getN().size2();
1487 for (
unsigned int gg = 0; gg < row_data.
getN().size1(); gg++) {
1493 for (;
dd < nb_dofs / 3;
dd++) {
1494 t_nf(
i) += base * res(
i);
1498 for (;
dd != nb_base_functions;
dd++) {
1503 if (row_data.
getIndices().size() > 3 * row_data.
getN().size2()) {
1504 SETERRQ(PETSC_COMM_SELF, 1,
"data inconsistency");
1509 VectorDofs::iterator dit = dofs.begin();
1510 for (
int ii = 0; dit != dofs.end(); dit++, ii++) {
1519 &
nf[0], ADD_VALUES);
1525 }
catch (
const std::exception &ex) {
1526 std::ostringstream ss;
1527 ss <<
"throw in method: " << ex.what() << std::endl;
1528 SETERRQ(PETSC_COMM_SELF, 1, ss.str().c_str());
◆ commonData
CommonData& ConvectiveMassElement::OpEshelbyDynamicMaterialMomentumRhs::commonData |
◆ dAta
BlockData& ConvectiveMassElement::OpEshelbyDynamicMaterialMomentumRhs::dAta |
◆ forcesOnlyOnEntities
Range ConvectiveMassElement::OpEshelbyDynamicMaterialMomentumRhs::forcesOnlyOnEntities |
◆ nf
VectorDouble ConvectiveMassElement::OpEshelbyDynamicMaterialMomentumRhs::nf |
The documentation for this struct was generated from the following files:
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Range forcesOnlyOnEntities
Range tEts
elements in block set
MoFEMErrorCode VecSetValues(Vec V, const EntitiesFieldData::EntData &data, const double *ptr, InsertMode iora)
Assemble PETSc vector.
FTensor::Tensor0< FTensor::PackPtr< double *, 1 > > getFTensor0N(const FieldApproximationBase base)
Get base function as Tensor0.
#define CHKERR
Inline error check.
const VectorInt & getIndices() const
Get global indices of dofs on entity.
ublas::vector< FEDofEntity *, DofsAllocator > VectorDofs
const VectorDofs & getFieldDofs() const
get dofs data stature FEDofEntity
FTensor::Index< 'i', SPACE_DIM > i
constexpr auto field_name
std::vector< VectorDouble > valT
const Tensor2_symmetric_Expr< const ddTensor0< T, Dim, i, j >, typename promote< T, double >::V, Dim, i, j > dd(const Tensor0< T * > &a, const Index< i, Dim > index1, const Index< j, Dim > index2, const Tensor1< int, Dim > &d_ijk, const Tensor1< double, Dim > &d_xyz)
MatrixDouble & getN(const FieldApproximationBase base)
get base functions this return matrix (nb. of rows is equal to nb. of Gauss pts, nb....
ForcesAndSourcesCore::UserDataOperator UserDataOperator
UBlasVector< int > VectorInt
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...