v0.16.3
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
MoFEM::OpBaseImpl< A, EleOp > Struct Template Reference

#include "src/finite_elements/FormsIntegrators.hpp"

Inheritance diagram for MoFEM::OpBaseImpl< A, EleOp >:
[legend]
Collaboration diagram for MoFEM::OpBaseImpl< A, EleOp >:
[legend]

Public Types

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)>
 

Public Member Functions

 OpBaseImpl (const std::string row_field_name, const std::string col_field_name, const OpType type, boost::shared_ptr< Range > ents_ptr=nullptr)
 Constructor for base operator implementation.
 
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.
 
MoFEMErrorCode doWork (int row_side, EntityType row_type, EntData &row_data)
 Do calculations for the right hand side.
 

Public Attributes

TimeFun timeScalingFun
 assumes that time variable is set
 
FEFun feScalingFun
 set by fe entity handle
 
boost::shared_ptr< Range > entsPtr
 Entities on which element is run.
 

Static Public Attributes

static MatSetValuesHook matSetValuesHook
 

Protected Member Functions

template<int DIM>
auto getNf ()
 Get local vector tensor for assembly.
 
template<int ROW_DIM, int COL_DIM = ROW_DIM>
FTensor::Tensor2< FTensor::PackPtr< double *, COL_DIM >, ROW_DIM, COL_DIM > getLocMat (const int rr)
 Get local matrix tensor for assembly.
 
virtual MoFEMErrorCode iNtegrate (EntData &, EntData &)
 Integrate grad-grad operator.
 
virtual MoFEMErrorCode aSsemble (EntData &row_data, EntData &col_data, const bool trans)
 Assemble local matrix into global matrix.
 
virtual MoFEMErrorCode iNtegrate (EntData &)
 Class dedicated to integrate operator.
 
virtual MoFEMErrorCode aSsemble (EntData &data)
 Assemble local vector into global vector.
 
virtual size_t getNbOfBaseFunctions (EntitiesFieldData::EntData &data)
 Get number of base functions.
 

Protected Attributes

int nbRows
 number of dofs on rows
 
int nbCols
 number if dof on column
 
int nbIntegrationPts
 number of integration points
 
int nbRowBaseFunctions
 number or row base functions
 
int rowSide
 row side number
 
int colSide
 column side number
 
EntityType rowType
 row type
 
EntityType colType
 column type
 
bool assembleTranspose
 
bool onlyTranspose
 
MatrixDouble locMat
 local entity block matrix
 
MatrixDouble locMatTranspose
 local entity block matrix
 
VectorDouble locF
 local entity vector
 

Detailed Description

template<AssemblyType A, typename EleOp>
struct MoFEM::OpBaseImpl< A, EleOp >
Examples
mofem/atom_tests/schur_test_diag_mat.cpp, mofem/atom_tests/tensor_divergence_operator.cpp, mofem/tutorials/adv-0_plasticity/src/PlasticOps.hpp, mofem/tutorials/adv-0_plasticity/src/PlasticOpsGeneric.hpp, mofem/tutorials/adv-0_plasticity/src/PlasticOpsLargeStrains.hpp, mofem/tutorials/adv-0_plasticity/src/PlasticOpsSmallStrains.hpp, mofem/tutorials/adv-3_level_set/level_set.cpp, mofem/tutorials/adv-5_poroelasticity/seepage.cpp, mofem/tutorials/adv-5_poroelasticity/src/SeepageOps.hpp, mofem/tutorials/scl-1_poisson_2d_homogeneous/src/poisson_2d_homogeneous.hpp, mofem/tutorials/scl-8_heat_radiation/radiation.cpp, mofem/tutorials/vec-2_nonlinear_elasticity/src/HenckyOps.hpp, mofem/tutorials/vec-4_shallow_wave/approx_sphere.cpp, mofem/tutorials/vec-4_shallow_wave/shallow_wave.cpp, mofem/tutorials/vec-5_free_surface/free_surface.cpp, mofem/tutorials/vec-7_shape_optimisation/adjoint.cpp, and mofem/users_modules/adolc-plasticity/src/ADOLCPlasticity.hpp.

Definition at line 292 of file FormsIntegrators.hpp.

Member Typedef Documentation

◆ EntData

Definition at line 294 of file FormsIntegrators.hpp.

◆ MatSetValuesHook

template<AssemblyType A, typename EleOp >
using MoFEM::OpBaseImpl< A, EleOp >::MatSetValuesHook = boost::function<MoFEMErrorCode( ForcesAndSourcesCore::UserDataOperator *op_ptr, const EntitiesFieldData::EntData &row_data, const EntitiesFieldData::EntData &col_data, MatrixDouble &m)>

Definition at line 336 of file FormsIntegrators.hpp.

◆ OpType

template<AssemblyType A, typename EleOp >
using MoFEM::OpBaseImpl< A, EleOp >::OpType = typename EleOp::OpType

Definition at line 293 of file FormsIntegrators.hpp.

Constructor & Destructor Documentation

◆ OpBaseImpl()

template<AssemblyType A, typename EleOp >
MoFEM::OpBaseImpl< A, EleOp >::OpBaseImpl ( const std::string  row_field_name,
const std::string  col_field_name,
const OpType  type,
boost::shared_ptr< Range >  ents_ptr = nullptr 
)
inline

Constructor for base operator implementation.

Parameters
row_field_nameName of field for row entities
col_field_nameName of field for column entities
typeOperator type
ents_ptrOptional pointer to range of entities to operate on

Definition at line 303 of file FormsIntegrators.hpp.

305 : EleOp(row_field_name, col_field_name, type, false), entsPtr(ents_ptr),
306 assembleTranspose(false), onlyTranspose(false) {}
std::string type
Ele::UserDataOperator EleOp
boost::shared_ptr< Range > entsPtr
Entities on which element is run.

Member Function Documentation

◆ aSsemble() [1/2]

template<AssemblyType A, typename EleOp >
MoFEMErrorCode OpBaseImpl::aSsemble ( EntData &  data)
protectedvirtual

Assemble local vector into global vector.

Parameters
dataEntity data
Returns
Error code

Definition at line 649 of file FormsIntegrators.hpp.

649 {
650 if (!this->timeScalingFun.empty())
651 this->locF *= this->timeScalingFun(this->getFEMethod()->ts_t);
652 if (!this->feScalingFun.empty())
653 this->locF *= this->feScalingFun(this->getFEMethod());
654
655 return VecSetValues<AssemblyTypeSelector<A>>(this->getKSPf(), data,
656 this->locF, ADD_VALUES);
657}
VectorDouble locF
local entity vector
TimeFun timeScalingFun
assumes that time variable is set
FEFun feScalingFun
set by fe entity handle

◆ aSsemble() [2/2]

template<AssemblyType A, typename EleOp >
MoFEMErrorCode OpBaseImpl::aSsemble ( EntData &  row_data,
EntData &  col_data,
const bool  trans 
)
protectedvirtual

Assemble local matrix into global matrix.

Parameters
row_dataRow entity data
col_dataColumn entity data
transWhether to assemble transpose
Returns
Error code

Definition at line 622 of file FormsIntegrators.hpp.

624 {
626
627 if (!this->timeScalingFun.empty())
628 this->locMat *= this->timeScalingFun(this->getFEMethod()->ts_t);
629 if (!this->feScalingFun.empty())
630 this->locMat *= this->feScalingFun(this->getFEMethod());
631
632 // Assemble transpose
633 if (transpose) {
634 this->locMatTranspose.resize(this->locMat.size2(), this->locMat.size1(),
635 false);
636 noalias(this->locMatTranspose) = trans(this->locMat);
637 CHKERR matSetValuesHook(this, col_data, row_data, this->locMatTranspose);
638 }
639
640 if (!this->onlyTranspose) {
641 // assemble local matrix
642 CHKERR matSetValuesHook(this, row_data, col_data, this->locMat);
643 }
644
646}
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
#define CHKERR
Inline error check.
MatrixDouble locMatTranspose
local entity block matrix
static MatSetValuesHook matSetValuesHook
MatrixDouble locMat
local entity block matrix

◆ doWork() [1/2]

template<AssemblyType A, typename EleOp >
MoFEMErrorCode OpBaseImpl::doWork ( int  row_side,
EntityType  row_type,
EntData &  row_data 
)

Do calculations for the right hand side.

Parameters
row_side
row_type
row_data
Returns
MoFEMErrorCode

Definition at line 591 of file FormsIntegrators.hpp.

592 {
594
595 if (entsPtr) {
596 if (entsPtr->find(this->getFEEntityHandle()) == entsPtr->end())
598 }
599
600 // get number of dofs on row
601 nbRows = row_data.getIndices().size();
602 rowSide = row_side;
603 rowType = row_type;
604
605 if (!nbRows)
607 // get number of integration points
608 nbIntegrationPts = EleOp::getGaussPts().size2();
609 // get row base functions
611 // resize and clear the right hand side vector
612 locF.resize(nbRows);
613 locF.clear();
614 // integrate local vector
615 CHKERR this->iNtegrate(row_data);
616 // assemble local vector
617 CHKERR this->aSsemble(row_data);
619}
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
const VectorInt & getIndices() const
Get global indices of degrees of freedom on entity.
int rowSide
row side number
int nbRows
number of dofs on rows
int nbIntegrationPts
number of integration points
virtual MoFEMErrorCode aSsemble(EntData &row_data, EntData &col_data, const bool trans)
Assemble local matrix into global matrix.
virtual size_t getNbOfBaseFunctions(EntitiesFieldData::EntData &data)
Get number of base functions.
virtual MoFEMErrorCode iNtegrate(EntData &, EntData &)
Integrate grad-grad operator.
int nbRowBaseFunctions
number or row base functions
EntityType rowType
row type

◆ doWork() [2/2]

template<AssemblyType A, typename EleOp >
MoFEMErrorCode OpBaseImpl::doWork ( int  row_side,
int  col_side,
EntityType  row_type,
EntityType  col_type,
EntitiesFieldData::EntData &  row_data,
EntitiesFieldData::EntData &  col_data 
)

Do calculations for the left hand side.

Parameters
row_siderow side number (local number) of entity on element
col_sidecolumn side number (local number) of entity on element
row_typetype of row entity
col_typetype of column entity
row_datadata for row
col_datadata for column
Returns
error code

Definition at line 536 of file FormsIntegrators.hpp.

539 {
541
542 if (entsPtr) {
543 if (entsPtr->find(this->getFEEntityHandle()) == entsPtr->end())
545 }
546
547 // get number of dofs on row
548 nbRows = row_data.getIndices().size();
549 // if no dofs on row, exit that work, nothing to do here
550 if (!nbRows)
552 rowSide = row_side;
553 rowType = row_type;
554 // get number of dofs on column
555 nbCols = col_data.getIndices().size();
556 // if no dofs on column, exit nothing to do here
557 if (!nbCols)
559 colSide = col_side;
560 colType = col_type;
561 // get number of integration points
562 nbIntegrationPts = EleOp::getGaussPts().size2();
563 // get row base functions
565
566 // set size of local entity bock
567 locMat.resize(nbRows, nbCols, false);
568 // clear matrix
569 locMat.clear();
570 // integrate local matrix for entity block
571 CHKERR this->iNtegrate(row_data, col_data);
572
573 // assemble local matrix
574 auto check_if_assemble_transpose = [&] {
575 if (this->sYmm) {
576 if (row_side != col_side || row_type != col_type)
577 return true;
578 else
579 return false;
580 } else if (assembleTranspose) {
581 return true;
582 }
583
584 return false;
585 };
586 CHKERR aSsemble(row_data, col_data, check_if_assemble_transpose());
588}
int colSide
column side number
EntityType colType
column type
int nbCols
number if dof on column

◆ getLocMat()

template<AssemblyType A, typename EleOp >
template<int ROW_DIM, int COL_DIM = ROW_DIM>
FTensor::Tensor2< FTensor::PackPtr< double *, COL_DIM >, ROW_DIM, COL_DIM > MoFEM::OpBaseImpl< A, EleOp >::getLocMat ( const int  rr)
inlineprotected

Get local matrix tensor for assembly.

Template Parameters
ROW_DIMNumber of row-field components
COL_DIMNumber of column-field components
Parameters
rrRow offset in the local matrix
Returns
FTensor wrapper around local matrix

Definition at line 365 of file FormsIntegrators.hpp.

365 {
366 return getFTensor2FromArray<ROW_DIM, COL_DIM, COL_DIM>(locMat, rr);
367 }

◆ getNbOfBaseFunctions()

template<AssemblyType A, typename EleOp >
size_t OpBaseImpl::getNbOfBaseFunctions ( EntitiesFieldData::EntData &  data)
protectedvirtual

Get number of base functions.

Parameters
data
Returns
number of base functions

Definition at line 496 of file FormsIntegrators.hpp.

496 {
497 if (!data.getNSharedPtr(data.getBase())) {
498 #ifndef NDEBUG
499 MOFEM_LOG("SELF", Sev::warning)
500 << "Ptr to base " << ApproximationBaseNames[data.getBase()]
501 << " functions is null, returning 0";
502 #endif // NDEBUG
503 return 0;
504 }
505 auto nb_base_functions = data.getN().size2();
506 if (data.getBase() != USER_BASE) {
507 switch (data.getSpace()) {
508 case NOSPACE:
509 break;
510 case NOFIELD:
511 break;
512 case H1:
513 break;
514 case HCURL:
515 case HDIV:
516 nb_base_functions /= 3;
517#ifndef NDEBUG
518 if (data.getN().size2() % 3) {
519 SETERRQ(PETSC_COMM_SELF, MOFEM_DATA_INCONSISTENCY,
520 "Number of base functions is not divisible by 3");
521 }
522#endif
523 break;
524 case L2:
525 break;
526 default:
527 SETERRQ(PETSC_COMM_SELF, MOFEM_NOT_IMPLEMENTED,
528 "Space %s not implemented", FieldSpaceNames[data.getSpace()]);
529 }
530 }
531 return nb_base_functions;
532}
@ USER_BASE
user implemented approximation base
Definition definitions.h:68
@ L2
field with C-1 continuity
Definition definitions.h:88
@ NOFIELD
scalar or vector of scalars describe (no true field)
Definition definitions.h:84
@ H1
continuous field
Definition definitions.h:85
@ NOSPACE
Definition definitions.h:83
@ HCURL
field with continuous tangents
Definition definitions.h:86
@ HDIV
field with continuous normal traction
Definition definitions.h:87
static const char *const FieldSpaceNames[]
Definition definitions.h:92
@ MOFEM_DATA_INCONSISTENCY
Definition definitions.h:31
@ MOFEM_NOT_IMPLEMENTED
Definition definitions.h:32
static const char *const ApproximationBaseNames[]
Definition definitions.h:72
#define MOFEM_LOG(channel, severity)
Log.

◆ getNf()

template<AssemblyType A, typename EleOp >
template<int DIM>
auto MoFEM::OpBaseImpl< A, EleOp >::getNf ( )
inlineprotected

Get local vector tensor for assembly.

Template Parameters
DIMDimension of the tensor
Returns
FTensor wrapper around local vector

Definition at line 352 of file FormsIntegrators.hpp.

352 {
353 return getFTensor1FromArray<DIM, DIM>(locF);
354 }

◆ iNtegrate() [1/2]

template<AssemblyType A, typename EleOp >
virtual MoFEMErrorCode MoFEM::OpBaseImpl< A, EleOp >::iNtegrate ( EntData &  )
inlineprotectedvirtual

Class dedicated to integrate operator.

Parameters
dataentity data on element row
Returns
error code

Reimplemented in LevelSet::OpRhsDomain, NonlinearPoissonOps::OpDomainRhs, OpDomainResidualVector, Example::OpRadiationRhs, Example::OpFluxRhs, MoFEM::OpMassImpl< 1, FIELD_DIM, GAUSS, OpBase >, MoFEM::OpSourceImpl< 1, 1, GAUSS, SourceFunctionSpecialization::S< OpBase > >, MoFEM::OpSourceImpl< 1, FIELD_DIM, GAUSS, SourceFunctionSpecialization::S< OpBase > >, MoFEM::OpSourceImpl< 3, FIELD_DIM, GAUSS, SourceFunctionSpecialization::S< OpBase > >, MoFEM::OpBaseTimesScalarImpl< 1, S, GAUSS, OpBase >, MoFEM::OpBaseTimesVectorImpl< 1, FIELD_DIM, S, GAUSS, OpBase >, MoFEM::OpBaseTimesVectorImpl< 3, FIELD_DIM, S, GAUSS, OpBase >, MoFEM::OpGradTimesTensorImpl< 1, 1, SPACE_DIM, S, GAUSS, OpBase >, MoFEM::OpGradTimesTensorImpl< 1, SPACE_DIM, SPACE_DIM, S, GAUSS, OpBase >, MoFEM::OpGradTimesSymTensorImpl< 1, SPACE_DIM, SPACE_DIM, S, GAUSS, OpBase >, MoFEM::OpMixDivTimesUImpl< 3, FIELD_DIM, SPACE_DIM, GAUSS, OpBase, CoordSys >, MoFEM::OpMixDivTimesUImpl< 3, 1, SPACE_DIM, GAUSS, OpBase, CoordSys >, MoFEM::OpMixDivTimesUImpl< 1, FIELD_DIM, FIELD_DIM, GAUSS, OpBase, CoordSys >, MoFEM::OpMixVecTimesDivLambdaImpl< SPACE_DIM, GAUSS, OpBase >, MoFEM::OpMixTensorTimesGradUImpl< SPACE_DIM, GAUSS, OpBase >, MoFEM::OpNormalMixVecTimesScalarImpl< 3, GAUSS, OpBase >, MoFEM::OpNormalMixVecTimesScalarImpl< 2, GAUSS, OpBase >, MoFEM::OpNormalMixVecTimesVectorFieldImpl< SPACE_DIM, GAUSS, OpBase >, MoFEM::OpConvectiveTermRhsImpl< 1, 1, SPACE_DIM, GAUSS, OpBase >, MoFEM::OpConvectiveTermRhsImpl< 1, FIELD_DIM, SPACE_DIM, GAUSS, OpBase >, Poisson2DHomogeneousOperators::OpDomainRhsVectorF, OpAdJointGradTimesSymTensor< SPACE_DIM, IntegrationType::GAUSS, DomainBaseOp >, OpStateSensitivity, OpStateSensitivity, OpAdJointObjective, MoFEM::OpBrokenSpaceConstrainDHybridImpl< FIELD_DIM, GAUSS, OpBase >, OpRhs, and OpURhs.

Definition at line 411 of file FormsIntegrators.hpp.

411 {
413 }

◆ iNtegrate() [2/2]

template<AssemblyType A, typename EleOp >
virtual MoFEMErrorCode MoFEM::OpBaseImpl< A, EleOp >::iNtegrate ( EntData &  ,
EntData &   
)
inlineprotectedvirtual

Integrate grad-grad operator.

Parameters
row_datarow data (consist base functions on row entity)
col_datacolumn data (consist base functions on column entity)
Returns
error code

Reimplemented in LevelSet::OpLhsDomain, NonlinearPoissonOps::OpDomainLhs, OpDomainTangentMatrix, Example::OpRadiationLhs, MoFEM::OpBaseTimesVectorImpl< 1, FIELD_DIM, S, GAUSS, OpBase >, MoFEM::OpGradGradImpl< 1, 1, SPACE_DIM, GAUSS, OpBase >, MoFEM::OpGradGradImpl< 1, FIELD_DIM, SPACE_DIM, GAUSS, OpBase >, MoFEM::OpMassImpl< 1, 1, GAUSS, OpBase >, MoFEM::OpMassImpl< 1, FIELD_DIM, GAUSS, OpBase >, MoFEM::OpMassImpl< 3, FIELD_DIM, GAUSS, OpBase >, MoFEM::OpMassImpl< 3, 4, GAUSS, OpBase >, MoFEM::OpMassImpl< 3, 9, GAUSS, OpBase >, MoFEM::OpMassImpl< 9, 9, GAUSS, OpBase >, MoFEM::OpGradSymTensorGradImpl< 1, SPACE_DIM, SPACE_DIM, S, GAUSS, OpBase >, MoFEM::OpGradTensorGradImpl< 1, SPACE_DIM, SPACE_DIM, S, GAUSS, OpBase >, MoFEM::OpGradGradSymTensorGradGradImpl< 1, FIELD_DIM, SPACE_DIM, S, GAUSS, OpBase >, MoFEM::OpGradGradTensorGradGradImpl< 1, FIELD_DIM, SPACE_DIM, S, GAUSS, OpBase >, MoFEM::OpMixDivTimesScalarImpl< SPACE_DIM, GAUSS, OpBase >, MoFEM::OpMixDivTimesVecImpl< SPACE_DIM, GAUSS, OpBase, CoordSys >, MoFEM::OpMixScalarTimesDivImpl< SPACE_DIM, GAUSS, OpBase, COORDINATE_SYSTEM >, MoFEM::OpMixVectorTimesGradImpl< 3, SPACE_DIM, SPACE_DIM, GAUSS, OpBase >, MoFEM::OpMixVectorTimesGradImpl< 1, SPACE_DIM, SPACE_DIM, GAUSS, OpBase >, MoFEM::OpMixTensorTimesGradImpl< SPACE_DIM, GAUSS, OpBase >, MoFEM::OpConvectiveTermLhsDuImpl< 1, 1, SPACE_DIM, GAUSS, OpBase >, MoFEM::OpConvectiveTermLhsDyImpl< 1, 1, SPACE_DIM, GAUSS, OpBase >, MoFEM::OpConvectiveTermLhsDuImpl< 1, FIELD_DIM, SPACE_DIM, GAUSS, OpBase >, MoFEM::OpConvectiveTermLhsDyImpl< 1, FIELD_DIM, SPACE_DIM, GAUSS, OpBase >, Poisson2DHomogeneousOperators::OpDomainLhsMatrixK, OpLhs, OpULhs_dU, OpULhs_dH, and MoFEM::OpBaseTensorBaseImpl< BASE_DIM, FIELD_DIM, SPACE_DIM, S, GAUSS, OpBase >.

Definition at line 392 of file FormsIntegrators.hpp.

392 {
394 }

Member Data Documentation

◆ assembleTranspose

template<AssemblyType A, typename EleOp >
bool MoFEM::OpBaseImpl< A, EleOp >::assembleTranspose
protected

Definition at line 379 of file FormsIntegrators.hpp.

◆ colSide

template<AssemblyType A, typename EleOp >
int MoFEM::OpBaseImpl< A, EleOp >::colSide
protected

column side number

Examples
mofem/tutorials/adv-0_plasticity/src/PlasticOpsLargeStrains.hpp.

Definition at line 375 of file FormsIntegrators.hpp.

◆ colType

template<AssemblyType A, typename EleOp >
EntityType MoFEM::OpBaseImpl< A, EleOp >::colType
protected

◆ entsPtr

template<AssemblyType A, typename EleOp >
boost::shared_ptr<Range> MoFEM::OpBaseImpl< A, EleOp >::entsPtr

Entities on which element is run.

Definition at line 334 of file FormsIntegrators.hpp.

◆ feScalingFun

template<AssemblyType A, typename EleOp >
FEFun MoFEM::OpBaseImpl< A, EleOp >::feScalingFun

set by fe entity handle

Definition at line 333 of file FormsIntegrators.hpp.

◆ locF

template<AssemblyType A, typename EleOp >
VectorDouble MoFEM::OpBaseImpl< A, EleOp >::locF
protected

◆ locMat

template<AssemblyType A, typename EleOp >
MatrixDouble MoFEM::OpBaseImpl< A, EleOp >::locMat
protected

◆ locMatTranspose

template<AssemblyType A, typename EleOp >
MatrixDouble MoFEM::OpBaseImpl< A, EleOp >::locMatTranspose
protected

local entity block matrix

Definition at line 383 of file FormsIntegrators.hpp.

◆ matSetValuesHook

template<AssemblyType A, typename EleOp >
OpBaseImpl< A, EleOp >::MatSetValuesHook OpBaseImpl::matSetValuesHook
static
Initial value:
=
[](ForcesAndSourcesCore::UserDataOperator *op_ptr,
const EntitiesFieldData::EntData &row_data,
const EntitiesFieldData::EntData &col_data, MatrixDouble &m) {
return MatSetValues<AssemblyTypeSelector<A>>(
op_ptr->getKSPB(), row_data, col_data, m, ADD_VALUES);
}
UBlasMatrix< double > MatrixDouble
Definition Types.hpp:77
FTensor::Index< 'm', 3 > m

Definition at line 341 of file FormsIntegrators.hpp.

◆ nbCols

template<AssemblyType A, typename EleOp >
int MoFEM::OpBaseImpl< A, EleOp >::nbCols
protected

◆ nbIntegrationPts

template<AssemblyType A, typename EleOp >
int MoFEM::OpBaseImpl< A, EleOp >::nbIntegrationPts
protected

◆ nbRowBaseFunctions

template<AssemblyType A, typename EleOp >
int MoFEM::OpBaseImpl< A, EleOp >::nbRowBaseFunctions
protected

◆ nbRows

template<AssemblyType A, typename EleOp >
int MoFEM::OpBaseImpl< A, EleOp >::nbRows
protected

◆ onlyTranspose

template<AssemblyType A, typename EleOp >
bool MoFEM::OpBaseImpl< A, EleOp >::onlyTranspose
protected

Definition at line 380 of file FormsIntegrators.hpp.

◆ rowSide

template<AssemblyType A, typename EleOp >
int MoFEM::OpBaseImpl< A, EleOp >::rowSide
protected

◆ rowType

template<AssemblyType A, typename EleOp >
EntityType MoFEM::OpBaseImpl< A, EleOp >::rowType
protected

◆ timeScalingFun

template<AssemblyType A, typename EleOp >
TimeFun MoFEM::OpBaseImpl< A, EleOp >::timeScalingFun

assumes that time variable is set

Definition at line 332 of file FormsIntegrators.hpp.


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