21template <
int DisplacementDim>
28 bool const is_axially_symmetric,
38 unsigned const n_integration_points =
47 for (
unsigned ip = 0; ip < n_integration_points; ++ip)
60 int const integration_order)
62 if (integration_order !=
66 "Setting integration point initial conditions; The integration "
67 "order of the local assembler for element {:d} is different "
68 "from the integration order in the initial condition.",
72 if (name ==
"sigma" &&
process_data_.initial_stress.value !=
nullptr)
75 "Setting initial conditions for stress from integration "
76 "point data and from a parameter '{:s}' is not possible "
81 if (name.starts_with(
"material_state_variable_"))
83 name.remove_prefix(24);
85 auto const& internal_variables =
87 if (
auto const iv = std::find_if(
88 begin(internal_variables), end(internal_variables),
89 [&name](
auto const& iv) {
return iv.name == name; });
90 iv != end(internal_variables))
92 DBUG(
"Setting material state variable '{:s}'", name);
97 DisplacementDim>::material_state_variables,
111 std::function<std::span<double>(
113 MaterialStateVariables&)>
const& get_values_span,
114 int const& n_components)
const
119 DisplacementDim>::material_state_variables,
120 get_values_span, n_components);
137 DisplacementDim>::MaterialStateVariables
const&
148 &Self::current_states_, &Self::output_data_);
152 Eigen::VectorXd
const& ,
153 double const ,
double const ,
154 int const )
override final
156 unsigned const n_integration_points =
164 for (
unsigned ip = 0; ip < n_integration_points; ip++)
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
KV::KelvinVectorType< DisplacementDim > KelvinVector
std::size_t reflectSetIPData(std::string_view const name, double const *values, std::vector< IPData > &ip_data_vector)
auto reflectWithoutName(Accessors &&... accessors)
std::size_t setIntegrationPointDataMaterialStateVariables(double const *values, IntegrationPointDataVector &ip_data_vector, MemberType member, std::function< std::span< double >(MaterialStateVariables &)> get_values_span)
std::vector< double > getIntegrationPointDataMaterialStateVariables(IntegrationPointDataVector const &ip_data_vector, MemberType member, std::function< std::span< double >(MaterialStateVariables &)> get_values_span, int const n_components)
unsigned getNumberOfIntegrationPoints() const
std::vector< StatefulData< DisplacementDim > > current_states_
bool const is_axially_symmetric_
LocalAssemblerInterface(MeshLib::Element const &e, NumLib::GenericIntegrationMethod const &integration_method, bool const is_axially_symmetric, RichardsMechanicsProcessData< DisplacementDim > &process_data)
std::vector< StatefulDataPrev< DisplacementDim > > prev_states_
RichardsMechanicsProcessData< DisplacementDim > & process_data_
MaterialLib::Solids::MechanicsBase< DisplacementDim >::MaterialStateVariables const & getMaterialStateVariablesAt(unsigned integration_point) const
MaterialLib::Solids::MechanicsBase< DisplacementDim > const & solid_material_
std::vector< ProcessLib::ThermoRichardsMechanics::MaterialStateData< DisplacementDim > > material_states_
int getMaterialID() const
MeshLib::Element const & element_
void postTimestepConcrete(Eigen::VectorXd const &, Eigen::VectorXd const &, double const, double const, int const) override final
static auto getReflectionDataForOutput()
std::vector< OutputData< DisplacementDim > > output_data_
std::vector< double > getMaterialStateVariableInternalState(std::function< std::span< double >(typename MaterialLib::Solids::MechanicsBase< DisplacementDim >::MaterialStateVariables &)> const &get_values_span, int const &n_components) const
NumLib::GenericIntegrationMethod const & integration_method_
std::size_t setIPDataInitialConditions(std::string_view name, double const *values, int const integration_order)