OGS
ProcessLib::LIE::SmallDeformation::SmallDeformationLocalAssemblerInterface Class Referenceabstract

Detailed Description

Definition at line 26 of file SmallDeformationLocalAssemblerInterface.h.

#include <SmallDeformationLocalAssemblerInterface.h>

Inheritance diagram for ProcessLib::LIE::SmallDeformation::SmallDeformationLocalAssemblerInterface:
[legend]
Collaboration diagram for ProcessLib::LIE::SmallDeformation::SmallDeformationLocalAssemblerInterface:
[legend]

Public Member Functions

 SmallDeformationLocalAssemblerInterface ()
 
 SmallDeformationLocalAssemblerInterface (std::size_t n_local_size, std::vector< unsigned > dofIndex_to_localIndex)
 
void assembleWithJacobian (double const t, double const dt, std::vector< double > const &local_x_, std::vector< double > const &, std::vector< double > &local_b_data, std::vector< double > &local_Jac_data) override
 
virtual void assembleWithJacobian (double const, double const, Eigen::VectorXd const &, Eigen::VectorXd &, Eigen::MatrixXd &)
 
void computeSecondaryVariableConcrete (double const t, double const, Eigen::VectorXd const &local_x, Eigen::VectorXd const &) override
 
virtual std::vector< double > const & getIntPtSigma (const double t, std::vector< GlobalVector * > const &x, std::vector< NumLib::LocalToGlobalIndexMap const * > const &dof_table, std::vector< double > &cache) const =0
 
virtual std::vector< double > const & getIntPtEpsilon (const double t, std::vector< GlobalVector * > const &x, std::vector< NumLib::LocalToGlobalIndexMap const * > const &dof_table, std::vector< double > &cache) const =0
 
virtual std::vector< double > const & getIntPtFractureStress (const double t, std::vector< GlobalVector * > const &x, std::vector< NumLib::LocalToGlobalIndexMap const * > const &dof_table, std::vector< double > &cache) const =0
 
virtual std::vector< double > const & getIntPtFractureAperture (const double t, std::vector< GlobalVector * > const &x, std::vector< NumLib::LocalToGlobalIndexMap const * > const &dof_table, std::vector< double > &cache) const =0
 
- Public Member Functions inherited from ProcessLib::LocalAssemblerInterface
virtual ~LocalAssemblerInterface ()=default
 
virtual void setInitialConditions (std::size_t const mesh_item_id, std::vector< NumLib::LocalToGlobalIndexMap const * > const &dof_tables, std::vector< GlobalVector * > const &x, double const t, int const process_id)
 
virtual void initialize (std::size_t const mesh_item_id, NumLib::LocalToGlobalIndexMap const &dof_table)
 
virtual void preAssemble (double const, double const, std::vector< double > const &)
 
virtual void assemble (double const t, double const dt, std::vector< double > const &local_x, std::vector< double > const &local_x_prev, std::vector< double > &local_M_data, std::vector< double > &local_K_data, std::vector< double > &local_b_data)
 
virtual void assembleForStaggeredScheme (double const t, double const dt, Eigen::VectorXd const &local_x, Eigen::VectorXd const &local_x_prev, int const process_id, std::vector< double > &local_M_data, std::vector< double > &local_K_data, std::vector< double > &local_b_data)
 
virtual void assembleWithJacobianForStaggeredScheme (double const t, double const dt, Eigen::VectorXd const &local_x, Eigen::VectorXd const &local_x_prev, int const process_id, std::vector< double > &local_b_data, std::vector< double > &local_Jac_data)
 
virtual void computeSecondaryVariable (std::size_t const mesh_item_id, std::vector< NumLib::LocalToGlobalIndexMap const * > const &dof_tables, double const t, double const dt, std::vector< GlobalVector * > const &x, GlobalVector const &x_prev, int const process_id)
 
virtual void preTimestep (std::size_t const mesh_item_id, NumLib::LocalToGlobalIndexMap const &dof_table, GlobalVector const &x, double const t, double const delta_t)
 
virtual void postTimestep (std::size_t const mesh_item_id, std::vector< NumLib::LocalToGlobalIndexMap const * > const &dof_tables, std::vector< GlobalVector * > const &x, std::vector< GlobalVector * > const &x_prev, double const t, double const dt, int const process_id)
 
void postNonLinearSolver (std::size_t const mesh_item_id, std::vector< NumLib::LocalToGlobalIndexMap const * > const &dof_tables, std::vector< GlobalVector * > const &x, std::vector< GlobalVector * > const &x_prev, double const t, double const dt, int const process_id)
 
virtual Eigen::Vector3d getFlux (MathLib::Point3d const &, double const, std::vector< double > const &) const
 
virtual Eigen::Vector3d getFlux (MathLib::Point3d const &, double const, std::vector< std::vector< double > > const &) const
 Fits to staggered scheme.
 
- Public Member Functions inherited from NumLib::ExtrapolatableElement
virtual Eigen::Map< const Eigen::RowVectorXd > getShapeMatrix (const unsigned integration_point) const =0
 Provides the shape matrix at the given integration point.
 
virtual ~ExtrapolatableElement ()=default
 

Protected Member Functions

virtual void computeSecondaryVariableConcreteWithVector (double const t, Eigen::VectorXd const &local_u)=0
 

Private Attributes

Eigen::VectorXd _local_u
 
Eigen::VectorXd _local_b
 
Eigen::MatrixXd _local_J
 
std::vector< unsigned > const _dofIndex_to_localIndex
 

Constructor & Destructor Documentation

◆ SmallDeformationLocalAssemblerInterface() [1/2]

ProcessLib::LIE::SmallDeformation::SmallDeformationLocalAssemblerInterface::SmallDeformationLocalAssemblerInterface ( )
inline

◆ SmallDeformationLocalAssemblerInterface() [2/2]

ProcessLib::LIE::SmallDeformation::SmallDeformationLocalAssemblerInterface::SmallDeformationLocalAssemblerInterface ( std::size_t n_local_size,
std::vector< unsigned > dofIndex_to_localIndex )
inline

Member Function Documentation

◆ assembleWithJacobian() [1/2]

void ProcessLib::LIE::SmallDeformation::SmallDeformationLocalAssemblerInterface::assembleWithJacobian ( double const t,
double const dt,
std::vector< double > const & local_x_,
std::vector< double > const & ,
std::vector< double > & local_b_data,
std::vector< double > & local_Jac_data )
inlineoverridevirtual

Reimplemented from ProcessLib::LocalAssemblerInterface.

Reimplemented in ProcessLib::LIE::SmallDeformation::SmallDeformationLocalAssemblerMatrix< ShapeFunction, DisplacementDim >.

Definition at line 41 of file SmallDeformationLocalAssemblerInterface.h.

46 {
47 auto const local_dof_size = local_x_.size();
48
49 _local_u.setZero();
50 for (unsigned i = 0; i < local_dof_size; i++)
51 {
52 _local_u[_dofIndex_to_localIndex[i]] = local_x_[i];
53 }
54 _local_b.setZero();
55 _local_J.setZero();
56
58
59 local_b_data.resize(local_dof_size);
60 for (unsigned i = 0; i < local_dof_size; i++)
61 {
62 local_b_data[i] = _local_b[_dofIndex_to_localIndex[i]];
63 }
64
65 local_Jac_data.resize(local_dof_size * local_dof_size);
66 for (unsigned i = 0; i < local_dof_size; i++)
67 {
68 for (unsigned j = 0; j < local_dof_size; j++)
69 {
70 local_Jac_data[i * local_dof_size + j] = _local_J(
72 }
73 }
74 }
void assembleWithJacobian(double const t, double const dt, std::vector< double > const &local_x_, std::vector< double > const &, std::vector< double > &local_b_data, std::vector< double > &local_Jac_data) override

References _dofIndex_to_localIndex, _local_b, _local_J, _local_u, and assembleWithJacobian().

Referenced by assembleWithJacobian().

◆ assembleWithJacobian() [2/2]

virtual void ProcessLib::LIE::SmallDeformation::SmallDeformationLocalAssemblerInterface::assembleWithJacobian ( double const ,
double const ,
Eigen::VectorXd const & ,
Eigen::VectorXd & ,
Eigen::MatrixXd &  )
inlinevirtual

Reimplemented in ProcessLib::LIE::SmallDeformation::SmallDeformationLocalAssemblerFracture< ShapeFunction, DisplacementDim >, and ProcessLib::LIE::SmallDeformation::SmallDeformationLocalAssemblerMatrixNearFracture< ShapeFunction, DisplacementDim >.

Definition at line 76 of file SmallDeformationLocalAssemblerInterface.h.

80 {
82 "SmallDeformationLocalAssemblerInterface::assembleWithJacobian() "
83 "is not implemented");
84 }
#define OGS_FATAL(...)
Definition Error.h:26

References OGS_FATAL.

◆ computeSecondaryVariableConcrete()

void ProcessLib::LIE::SmallDeformation::SmallDeformationLocalAssemblerInterface::computeSecondaryVariableConcrete ( double const t,
double const ,
Eigen::VectorXd const & local_x,
Eigen::VectorXd const &  )
inlineoverridevirtual

Reimplemented from ProcessLib::LocalAssemblerInterface.

Definition at line 86 of file SmallDeformationLocalAssemblerInterface.h.

89 {
90 if (!_dofIndex_to_localIndex.empty())
91 {
92 _local_u.setZero();
93 for (auto i = 0; i < local_x.rows(); i++)
94 {
95 _local_u[_dofIndex_to_localIndex[i]] = local_x[i];
96 }
97 }
98
100 }
virtual void computeSecondaryVariableConcreteWithVector(double const t, Eigen::VectorXd const &local_u)=0

References _dofIndex_to_localIndex, _local_u, and computeSecondaryVariableConcreteWithVector().

◆ computeSecondaryVariableConcreteWithVector()

virtual void ProcessLib::LIE::SmallDeformation::SmallDeformationLocalAssemblerInterface::computeSecondaryVariableConcreteWithVector ( double const t,
Eigen::VectorXd const & local_u )
protectedpure virtual

◆ getIntPtEpsilon()

virtual std::vector< double > const & ProcessLib::LIE::SmallDeformation::SmallDeformationLocalAssemblerInterface::getIntPtEpsilon ( const double t,
std::vector< GlobalVector * > const & x,
std::vector< NumLib::LocalToGlobalIndexMap const * > const & dof_table,
std::vector< double > & cache ) const
pure virtual

◆ getIntPtFractureAperture()

virtual std::vector< double > const & ProcessLib::LIE::SmallDeformation::SmallDeformationLocalAssemblerInterface::getIntPtFractureAperture ( const double t,
std::vector< GlobalVector * > const & x,
std::vector< NumLib::LocalToGlobalIndexMap const * > const & dof_table,
std::vector< double > & cache ) const
pure virtual

◆ getIntPtFractureStress()

virtual std::vector< double > const & ProcessLib::LIE::SmallDeformation::SmallDeformationLocalAssemblerInterface::getIntPtFractureStress ( const double t,
std::vector< GlobalVector * > const & x,
std::vector< NumLib::LocalToGlobalIndexMap const * > const & dof_table,
std::vector< double > & cache ) const
pure virtual

◆ getIntPtSigma()

virtual std::vector< double > const & ProcessLib::LIE::SmallDeformation::SmallDeformationLocalAssemblerInterface::getIntPtSigma ( const double t,
std::vector< GlobalVector * > const & x,
std::vector< NumLib::LocalToGlobalIndexMap const * > const & dof_table,
std::vector< double > & cache ) const
pure virtual

Member Data Documentation

◆ _dofIndex_to_localIndex

std::vector<unsigned> const ProcessLib::LIE::SmallDeformation::SmallDeformationLocalAssemblerInterface::_dofIndex_to_localIndex
private

◆ _local_b

Eigen::VectorXd ProcessLib::LIE::SmallDeformation::SmallDeformationLocalAssemblerInterface::_local_b
private

◆ _local_J

Eigen::MatrixXd ProcessLib::LIE::SmallDeformation::SmallDeformationLocalAssemblerInterface::_local_J
private

◆ _local_u

Eigen::VectorXd ProcessLib::LIE::SmallDeformation::SmallDeformationLocalAssemblerInterface::_local_u
private

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