28namespace HydroMechanics
32template <
typename ShapeFunctionDisplacement,
typename ShapeFunctionPressure,
45 std::size_t
const n_variables,
46 std::size_t
const local_matrix_size,
47 std::vector<unsigned>
const& dofIndex_to_localIndex,
49 bool const is_axially_symmetric,
54 double const )
override
64 std::vector<GlobalVector*>
const& x,
65 std::vector<NumLib::LocalToGlobalIndexMap const*>
const& dof_table,
66 std::vector<double>& cache)
const override;
70 std::vector<GlobalVector*>
const& x,
71 std::vector<NumLib::LocalToGlobalIndexMap const*>
const& dof_table,
72 std::vector<double>& cache)
const override;
76 std::vector<GlobalVector*>
const& x,
77 std::vector<NumLib::LocalToGlobalIndexMap const*>
const& dof_table,
78 std::vector<double>& cache)
const override;
82 std::vector<GlobalVector*>
const& ,
83 std::vector<NumLib::LocalToGlobalIndexMap const*>
const& ,
84 std::vector<double>& cache)
const override
92 std::vector<GlobalVector*>
const& ,
93 std::vector<NumLib::LocalToGlobalIndexMap const*>
const& ,
94 std::vector<double>& cache)
const override
102 std::vector<GlobalVector*>
const& ,
103 std::vector<NumLib::LocalToGlobalIndexMap const*>
const& ,
104 std::vector<double>& cache)
const override
112 std::vector<GlobalVector*>
const& ,
113 std::vector<NumLib::LocalToGlobalIndexMap const*>
const& ,
114 std::vector<double>& cache)
const override
121 const unsigned integration_point)
const override
126 return Eigen::Map<const Eigen::RowVectorXd>(N.data(), N.size());
131 Eigen::VectorXd
const& local_x,
132 Eigen::VectorXd
const& local_x_prev,
133 Eigen::VectorXd& local_rhs,
134 Eigen::MatrixXd& local_Jac)
override;
137 double const t,
double const dt,
138 Eigen::Ref<const Eigen::VectorXd>
const& p,
139 Eigen::Ref<const Eigen::VectorXd>
const& p_prev,
140 Eigen::Ref<const Eigen::VectorXd>
const& u,
141 Eigen::Ref<const Eigen::VectorXd>
const& u_prev,
142 Eigen::Ref<Eigen::VectorXd> rhs_p, Eigen::Ref<Eigen::VectorXd> rhs_u,
143 Eigen::Ref<Eigen::MatrixXd> J_pp, Eigen::Ref<Eigen::MatrixXd> J_pu,
144 Eigen::Ref<Eigen::MatrixXd> J_uu, Eigen::Ref<Eigen::MatrixXd> J_up);
147 double const t,
double const dt,
148 Eigen::VectorXd
const& local_x)
override;
151 double const t,
double const dt,
152 Eigen::Ref<const Eigen::VectorXd>
const& p,
153 Eigen::Ref<const Eigen::VectorXd>
const& u);
156 double const t, Eigen::Ref<Eigen::VectorXd> p);
173 ShapeFunctionDisplacement::NPOINTS>;
185 GlobalDim, ShapeFunctionDisplacement::NPOINTS,
195 Eigen::aligned_allocator<IntegrationPointDataType>>
202 ShapeFunctionDisplacement::NPOINTS * GlobalDim;
207 typename ShapeMatricesTypeDisplacement::ShapeMatrices::ShapeType>
MatrixType< 3, ShapeFunction::NPOINTS > BBarMatrixType
bool const _is_axially_symmetric
MeshLib::Element const & _element
NumLib::GenericIntegrationMethod const & _integration_method
std::optional< BBarMatrixType > getDilatationalBBarMatrix() const
ShapeMatrixPolicyType< ShapeFunctionDisplacement, GlobalDim > ShapeMatricesTypeDisplacement
BMatrixPolicyType< ShapeFunctionDisplacement, GlobalDim > BMatricesType
std::vector< double > const & getIntPtFractureVelocity(const double, std::vector< GlobalVector * > const &, std::vector< NumLib::LocalToGlobalIndexMap const * > const &, std::vector< double > &cache) const override
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 override
std::vector< double > const & getIntPtFracturePermeability(const double, std::vector< GlobalVector * > const &, std::vector< NumLib::LocalToGlobalIndexMap const * > const &, std::vector< double > &cache) const override
IntegrationPointDataMatrix< BMatricesType, ShapeMatricesTypeDisplacement, ShapeMatricesTypePressure, GlobalDim, ShapeFunctionDisplacement::NPOINTS > IntegrationPointDataType
std::vector< double > const & getIntPtFractureStress(const double, std::vector< GlobalVector * > const &, std::vector< NumLib::LocalToGlobalIndexMap const * > const &, std::vector< double > &cache) const override
void postTimestepConcreteWithBlockVectors(double const t, double const dt, Eigen::Ref< const Eigen::VectorXd > const &p, Eigen::Ref< const Eigen::VectorXd > const &u)
static const int pressure_size
SecondaryData< typename ShapeMatricesTypeDisplacement::ShapeMatrices::ShapeType > _secondary_data
std::vector< IntegrationPointDataType, Eigen::aligned_allocator< IntegrationPointDataType > > _ip_data
typename BMatricesType::BBarMatrixType BBarMatrixType
void assembleWithJacobianConcrete(double const t, double const dt, Eigen::VectorXd const &local_x, Eigen::VectorXd const &local_x_prev, Eigen::VectorXd &local_rhs, Eigen::MatrixXd &local_Jac) override
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 override
ShapeMatrixPolicyType< ShapeFunctionPressure, GlobalDim > ShapeMatricesTypePressure
void assembleBlockMatricesWithJacobian(double const t, double const dt, Eigen::Ref< const Eigen::VectorXd > const &p, Eigen::Ref< const Eigen::VectorXd > const &p_prev, Eigen::Ref< const Eigen::VectorXd > const &u, Eigen::Ref< const Eigen::VectorXd > const &u_prev, Eigen::Ref< Eigen::VectorXd > rhs_p, Eigen::Ref< Eigen::VectorXd > rhs_u, Eigen::Ref< Eigen::MatrixXd > J_pp, Eigen::Ref< Eigen::MatrixXd > J_pu, Eigen::Ref< Eigen::MatrixXd > J_uu, Eigen::Ref< Eigen::MatrixXd > J_up)
static const int displacement_size
static const int pressure_index
static const int displacement_index
std::vector< double > const & getIntPtDarcyVelocity(const double t, std::vector< GlobalVector * > const &x, std::vector< NumLib::LocalToGlobalIndexMap const * > const &dof_table, std::vector< double > &cache) const override
HydroMechanicsLocalAssemblerMatrix(HydroMechanicsLocalAssemblerMatrix const &)=delete
void postTimestepConcreteWithVector(double const t, double const dt, Eigen::VectorXd const &local_x) override
void setPressureOfInactiveNodes(double const t, Eigen::Ref< Eigen::VectorXd > p)
HydroMechanicsLocalAssemblerMatrix(HydroMechanicsLocalAssemblerMatrix &&)=delete
static const int kelvin_vector_size
std::vector< double > const & getIntPtFractureAperture(const double, std::vector< GlobalVector * > const &, std::vector< NumLib::LocalToGlobalIndexMap const * > const &, std::vector< double > &cache) const override
void preTimestepConcrete(std::vector< double > const &, double const, double const) override
HydroMechanicsProcessData< GlobalDim > & _process_data
Eigen::Map< const Eigen::RowVectorXd > getShapeMatrix(const unsigned integration_point) const override
Provides the shape matrix at the given integration point.
Eigen::Matrix< double, GlobalDim, 1 > GlobalDimVector
constexpr int kelvin_vector_dimensions(int const displacement_dim)
Kelvin vector dimensions for given displacement dimension.
BBarMatrixType computeDilatationalBbar(std::vector< IpData, Eigen::aligned_allocator< IpData > > const &ip_data, MeshLib::Element const &element, NumLib::GenericIntegrationMethod const &integration_method, const bool is_axially_symmetric)
Used for the extrapolation of the integration point values.
std::vector< ShapeMatrixType, Eigen::aligned_allocator< ShapeMatrixType > > N