32namespace ThermoMechanics
36template <
typename BMatricesType,
typename ShapeMatricesType,
60 DisplacementDim>::MaterialStateVariables>
64 typename ShapeMatricesType::NodalRowVectorType
N;
65 typename ShapeMatricesType::GlobalDimNodalMatrixType
dNdx;
80template <
typename ShapeMatrixType>
83 std::vector<ShapeMatrixType, Eigen::aligned_allocator<ShapeMatrixType>>
N;
126template <
typename ShapeFunction,
int DisplacementDim>
145 using RhsVector =
typename ShapeMatricesType::template VectorType<
146 ShapeFunction::NPOINTS + ShapeFunction::NPOINTS * DisplacementDim>;
148 ShapeFunction::NPOINTS + ShapeFunction::NPOINTS * DisplacementDim,
149 ShapeFunction::NPOINTS + ShapeFunction::NPOINTS * DisplacementDim>;
161 bool const is_axially_symmetric,
166 std::string_view
const name,
167 double const* values,
168 int const integration_order)
override;
171 std::vector<double>
const& ,
172 std::vector<double>
const& ,
173 std::vector<double>& ,
174 std::vector<double>& ,
175 std::vector<double>& )
override
178 "ThermoMechanicsLocalAssembler: assembly without jacobian is not "
183 double const t,
double const dt, Eigen::VectorXd
const& local_x,
184 Eigen::VectorXd
const& local_x_prev,
int const process_id,
185 std::vector<double>& local_b_data,
186 std::vector<double>& local_Jac_data)
override;
189 std::vector<double>
const& local_x,
190 std::vector<double>
const& local_x_prev,
191 std::vector<double>& local_rhs_data,
192 std::vector<double>& local_Jac_data)
override;
196 unsigned const n_integration_points =
198 for (
unsigned ip = 0; ip < n_integration_points; ip++)
216 double>::quiet_NaN() ,
221 ip_data.solid_material.initializeInternalStateVariables(
222 t, x_position, *ip_data.material_state_variables);
224 ip_data.pushBackState();
229 Eigen::VectorXd
const& ,
230 double const ,
double const ,
233 unsigned const n_integration_points =
236 for (
unsigned ip = 0; ip < n_integration_points; ip++)
243 const unsigned integration_point)
const override
248 return Eigen::Map<const Eigen::RowVectorXd>(N.data(), N.size());
275 const double t,
double const dt, Eigen::VectorXd
const& local_x,
276 Eigen::VectorXd
const& local_x_prev, std::vector<double>& local_b_data,
277 std::vector<double>& local_Jac_data);
300 const double t,
double const dt, Eigen::VectorXd
const& local_x,
301 Eigen::VectorXd
const& local_x_prev, std::vector<double>& local_b_data,
302 std::vector<double>& local_Jac_data);
304 std::size_t
setSigma(
double const* values);
309 std::vector<double>
getSigma()
const override;
313 std::vector<GlobalVector*>
const& x,
314 std::vector<NumLib::LocalToGlobalIndexMap const*>
const& dof_table,
315 std::vector<double>& cache)
const override;
319 std::vector<double>
getEpsilon()
const override;
323 std::vector<GlobalVector*>
const& x,
324 std::vector<NumLib::LocalToGlobalIndexMap const*>
const& dof_table,
325 std::vector<double>& cache)
const override;
329 std::vector<GlobalVector*>
const& x,
330 std::vector<NumLib::LocalToGlobalIndexMap const*>
const& dof_table,
331 std::vector<double>& cache)
const override;
342 DisplacementDim>::MaterialStateVariables
const&
348 std::vector<IpData, Eigen::aligned_allocator<IpData>>
_ip_data;
359 ShapeFunction::NPOINTS * DisplacementDim;
std::size_t getID() const
Returns the ID of the element.
unsigned getNumberOfPoints() const
VectorType< _number_of_dof > NodalForceVectorType
Rhs residual.
Local assembler of ThermoMechanics process.
std::vector< double > getEpsilonMechanical() const override
std::vector< double > const & getIntPtEpsilonMechanical(const double t, std::vector< GlobalVector * > const &x, std::vector< NumLib::LocalToGlobalIndexMap const * > const &dof_table, std::vector< double > &cache) const override
typename BMatricesType::NodalForceVectorType NodalForceVectorType
SecondaryData< typename ShapeMatrices::ShapeType > _secondary_data
std::size_t setIPDataInitialConditions(std::string_view const name, double const *values, int const integration_order) override
Returns number of read integration points.
std::size_t setSigma(double const *values)
typename ShapeMatricesType::template MatrixType< ShapeFunction::NPOINTS+ShapeFunction::NPOINTS *DisplacementDim, ShapeFunction::NPOINTS+ShapeFunction::NPOINTS *DisplacementDim > JacobianMatrix
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
MeshLib::Element const & _element
static const int temperature_size
void postTimestepConcrete(Eigen::VectorXd const &, Eigen::VectorXd const &, double const, double const, int const) override
static const int displacement_size
ThermoMechanicsLocalAssembler(ThermoMechanicsLocalAssembler const &)=delete
MaterialLib::Solids::MechanicsBase< DisplacementDim >::MaterialStateVariables const & getMaterialStateVariablesAt(unsigned integration_point) const override
typename ShapeMatricesType::template VectorType< ShapeFunction::NPOINTS+ShapeFunction::NPOINTS *DisplacementDim > RhsVector
std::size_t setEpsilonMechanical(double const *values)
Eigen::Map< const Eigen::RowVectorXd > getShapeMatrix(const unsigned integration_point) const override
Provides the shape matrix at the given integration point.
ThermoMechanicsProcessData< DisplacementDim > & _process_data
unsigned getNumberOfIntegrationPoints() const override
bool const _is_axially_symmetric
NumLib::GenericIntegrationMethod const & _integration_method
static const int displacement_index
void assembleWithJacobianForHeatConductionEquations(const double t, double const dt, Eigen::VectorXd const &local_x, Eigen::VectorXd const &local_x_prev, std::vector< double > &local_b_data, std::vector< double > &local_Jac_data)
void assembleWithJacobianForDeformationEquations(const double t, double const dt, Eigen::VectorXd const &local_x, Eigen::VectorXd const &local_x_prev, std::vector< double > &local_b_data, std::vector< double > &local_Jac_data)
void initializeConcrete() override
static int const KelvinVectorSize
std::size_t setEpsilon(double const *values)
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) override
void assemble(double const, double const, std::vector< double > const &, std::vector< double > const &, std::vector< double > &, std::vector< double > &, std::vector< double > &) override
typename ShapeMatricesType::ShapeMatrices ShapeMatrices
int getMaterialID() const override
typename ShapeMatricesType::GlobalDimMatrixType GlobalDimMatrixType
std::vector< double > getEpsilon() const override
ThermoMechanicsLocalAssembler(ThermoMechanicsLocalAssembler &&)=delete
static const int temperature_index
std::vector< double > getSigma() const override
std::vector< IpData, Eigen::aligned_allocator< IpData > > _ip_data
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
void assembleWithJacobian(double const t, double const dt, std::vector< double > const &local_x, std::vector< double > const &local_x_prev, std::vector< double > &local_rhs_data, std::vector< double > &local_Jac_data) override
constexpr int kelvin_vector_dimensions(int const displacement_dim)
Kelvin vector dimensions for given displacement dimension.
Eigen::Matrix< double, Eigen::MatrixBase< Derived >::RowsAtCompileTime, 1 > symmetricTensorToKelvinVector(Eigen::MatrixBase< Derived > const &v)
std::array< double, 3 > interpolateCoordinates(MeshLib::Element const &e, typename ShapeMatricesType::ShapeMatrices::ShapeType const &N)
NumLib::ShapeMatrices< NodalRowVectorType, DimNodalMatrixType, DimMatrixType, GlobalDimNodalMatrixType > ShapeMatrices
MatrixType< GlobalDim, GlobalDim > GlobalDimMatrixType
MaterialLib::Solids::MechanicsBase< DisplacementDim > const & solid_material
BMatricesType::KelvinVectorType eps_prev
ShapeMatricesType::NodalRowVectorType N
double integration_weight
std::unique_ptr< typename MaterialLib::Solids::MechanicsBase< DisplacementDim >::MaterialStateVariables > material_state_variables
ShapeMatricesType::GlobalDimNodalMatrixType dNdx
BMatricesType::KelvinVectorType eps_m_prev
BMatricesType::KelvinVectorType sigma_prev
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
BMatricesType::KelvinVectorType sigma
IntegrationPointData(MaterialLib::Solids::MechanicsBase< DisplacementDim > const &solid_material)
BMatricesType::KelvinVectorType eps_m
BMatricesType::KelvinVectorType eps
std::vector< ShapeMatrixType, Eigen::aligned_allocator< ShapeMatrixType > > N