12#ifndef BELFEM_CL_FEM_TIMESTEPMATRICES_HPP
13#define BELFEM_CL_FEM_TIMESTEPMATRICES_HPP
139 mFlags.set(
static_cast< index_t >( aFlag ) );
148 return mFlags.test(
static_cast< index_t >( aFlag ) );
void reset()
Definition cl_TimestepMatrices.cpp:63
const Matrix< real > & dMdx_times_x() const
Definition cl_TimestepMatrices.hpp:169
const Matrix< real > & dMdx_times_h() const
Definition cl_TimestepMatrices.hpp:170
bool has_flag(const MatrixFlag aFlag) const
Check if a matrix has been populated.
Definition cl_TimestepMatrices.hpp:146
const Matrix< real > & J() const
Definition cl_TimestepMatrices.hpp:174
const Matrix< real > & dKdx_times_x() const
Definition cl_TimestepMatrices.hpp:171
TimestepMatrices()=default
const Bitset< 8 > & flags() const
Direct access to flags bitset.
Definition cl_TimestepMatrices.hpp:155
void reset_flags()
Clear all flags ( unused; the IWG sets its flags once in the constructor ).
Definition cl_TimestepMatrices.hpp:128
Matrix< real > & D()
Definition cl_TimestepMatrices.hpp:182
Matrix< real > & dKdx_times_x()
Definition cl_TimestepMatrices.hpp:188
Matrix< real > & M()
Definition cl_TimestepMatrices.hpp:181
void initialize(const index_t aNumDofs)
Initialize all matrices to given size.
Definition cl_TimestepMatrices.cpp:15
const Matrix< real > & dJdx() const
Definition cl_TimestepMatrices.hpp:175
Vector< real > & f()
Definition cl_TimestepMatrices.hpp:184
const Matrix< real > & D() const
Definition cl_TimestepMatrices.hpp:165
const Matrix< real > & M() const
Definition cl_TimestepMatrices.hpp:164
Matrix< real > & dMdx_times_x()
Definition cl_TimestepMatrices.hpp:186
void set_flag(const MatrixFlag aFlag)
Set a flag after populating corresponding matrix.
Definition cl_TimestepMatrices.hpp:137
Matrix< real > & K()
Definition cl_TimestepMatrices.hpp:183
const Matrix< real > & K() const
Definition cl_TimestepMatrices.hpp:166
Matrix< real > & dfdx()
Definition cl_TimestepMatrices.hpp:189
Matrix< real > & dMdx_times_h()
Definition cl_TimestepMatrices.hpp:187
~TimestepMatrices()=default
void assemble_J(const real adt)
Definition cl_TimestepMatrices.cpp:112
const Matrix< real > & dfdx() const
Definition cl_TimestepMatrices.hpp:172
void assemble_dJdx(const real adt, const real aAlpha=1.0)
Assemble the Newton correction dJ/dx.
Definition cl_TimestepMatrices.cpp:131
const Vector< real > & f() const
Definition cl_TimestepMatrices.hpp:167
Definition cl_IFB_LINE3.hpp:21
MatrixFlag
Flags indicating which matrices/vectors have been set by the IWG.
Definition cl_TimestepMatrices.hpp:32
@ dKdX_times_x
Contracted stiffness derivative.
Definition cl_TimestepMatrices.hpp:39
@ dFdX
Force vector Jacobian df_i/dx_j.
Definition cl_TimestepMatrices.hpp:40
@ M
Mass matrix.
Definition cl_TimestepMatrices.hpp:33
@ dMdX_times_h
Contracted mass derivative with history: (dM_ik/dx_j) * h_k.
Definition cl_TimestepMatrices.hpp:38
@ K
Stiffness matrix.
Definition cl_TimestepMatrices.hpp:35
@ dMdX_times_x
Contracted mass derivative: (dM_ik/dx_j) * x_k.
Definition cl_TimestepMatrices.hpp:37
@ D
Damping matrix (reserved for second-order).
Definition cl_TimestepMatrices.hpp:34
USER GUIDES:
Definition cl_Capacitor.cpp:16
uint32_t index_t
Definition typedefs.hpp:52
double real
Definition typedefs.hpp:36