26namespace RichardsMechanics
28template <
int DisplacementDim>
35 bool const is_axially_symmetric,
45 unsigned const n_integration_points =
54 for (
unsigned ip = 0; ip < n_integration_points; ++ip)
67 int const integration_order)
69 if (integration_order !=
73 "Setting integration point initial conditions; The integration "
74 "order of the local assembler for element {:d} is different "
75 "from the integration order in the initial condition.",
79 if (name ==
"sigma" &&
process_data_.initial_stress.value !=
nullptr)
82 "Setting initial conditions for stress from integration "
83 "point data and from a parameter '{:s}' is not possible "
88 if (name.starts_with(
"material_state_variable_"))
90 name.remove_prefix(24);
92 auto const& internal_variables =
94 if (
auto const iv = std::find_if(
95 begin(internal_variables), end(internal_variables),
96 [&name](
auto const& iv) {
return iv.name == name; });
97 iv != end(internal_variables))
99 DBUG(
"Setting material state variable '{:s}'", name);
104 DisplacementDim>::material_state_variables,
118 std::function<std::span<double>(
120 MaterialStateVariables&)> const& get_values_span,
121 int const& n_components) const
126 DisplacementDim>::material_state_variables,
127 get_values_span, n_components);
144 DisplacementDim>::MaterialStateVariables
const&
155 &Self::current_states_, &Self::output_data_);
159 Eigen::VectorXd
const& ,
160 double const ,
double const ,
161 int const )
override final
163 unsigned const n_integration_points =
171 for (
unsigned ip = 0; ip < n_integration_points; ip++)
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
std::size_t getID() const
Returns the ID of the element.
unsigned getIntegrationOrder() const
unsigned getNumberOfPoints() const
std::size_t reflectSetIPData(std::string_view const name, double const *values, std::vector< IPData > &ip_data_vector)
auto reflectWithoutName(Accessors &&... accessors)
KV::KelvinVectorType< DisplacementDim > KelvinVector
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)