19 #ifndef ELASTICITY_HH_ 20 #define ELASTICITY_HH_ 54 template<
unsigned int dim>
55 inline std::shared_ptr<FiniteElement<dim>>
fe();
57 template<
unsigned int dim>
60 inline std::shared_ptr<DOFHandlerMultiDim>
dh();
61 inline std::shared_ptr<DOFHandlerMultiDim>
dh_scalar();
62 inline std::shared_ptr<DOFHandlerMultiDim>
dh_tensor();
72 std::shared_ptr<DiscreteSpace>
ds_;
75 std::shared_ptr<DOFHandlerMultiDim>
dh_;
102 static constexpr
const char *
name() {
return "Mechanics_LinearElasticity"; }
159 void zero_time_step()
override;
167 void update_solution()
override;
173 void solve_linear_system();
185 void initialize()
override;
188 void update_output_fields();
191 { data_.potential_load = potential; }
193 void calculate_cumulative_balance();
196 {
return ls->get_solution(); }
210 template<
unsigned int dim>
211 void compute_output_fields();
222 void assemble_stiffness_matrix();
227 template<
unsigned int dim>
228 void assemble_volume_integrals();
238 template<
unsigned int dim>
239 void assemble_sources();
244 template<
unsigned int dim>
245 void assemble_fluxes_boundary();
250 template<
unsigned int dim>
251 void assemble_matrix_element_side();
254 template<
unsigned int dim>
255 void assemble_rhs_element_side();
262 template<
unsigned int dim>
263 void assemble_boundary_conditions();
266 double dirichlet_penalty(
SideIter side);
330 double lame_mu(
double young,
double poisson);
BCField< 3, FieldValue< 3 >::Enum > bc_type
std::shared_ptr< DiscreteSpace > ds_
BCField< 3, FieldValue< 3 >::VectorFixed > bc_displacement
Field< 3, FieldValue< 3 >::TensorFixed > output_stress
Field< 3, FieldValue< 3 >::Scalar > young_modulus
Abstract base class for equation clasess.
static constexpr const char * name()
Container for various descendants of FieldCommonBase.
double lame_lambda(double young, double poisson)
std::shared_ptr< FieldFE< 3, FieldValue< 3 >::Scalar > > output_von_mises_stress_ptr
Field< 3, FieldValue< 3 >::Scalar > output_von_mises_stress
Field< 3, FieldValue< 3 >::Scalar > region_id
Field< 3, FieldValue< 3 >::Scalar > output_cross_section
const Vec & get_solution()
Wrappers for linear systems based on MPIAIJ and MATIS format.
Class template representing a field with values dependent on: point, element, and region...
FEObjects(Mesh *mesh_, unsigned int fe_order)
LinSys * ls
Linear algebra system for the transport equation.
std::shared_ptr< FieldFE< 3, FieldValue< 3 >::TensorFixed > > output_stress_ptr
Field< 3, FieldValue< 3 >::Scalar > cross_section
Pointer to DarcyFlow field cross_section.
std::shared_ptr< DOFHandlerMultiDim > dh()
Basic time management functionality for unsteady (and steady) solvers (class Equation).
Input::Record input_rec
Record with input specification.
Field< 3, FieldValue< 3 >::Scalar > potential_load
Potential of an additional (external) load.
Vec rhs
Vector of right hand side.
Base class for quadrature rules on simplices in arbitrary dimensions.
bool allocation_done
Indicates whether matrices have been preallocated.
BCField< 3, FieldValue< 3 >::VectorFixed > bc_traction
MixedPtr< FiniteElement > fe_
Finite elements for the solution of the mechanics equation.
Provides the numbering of the finite element degrees of freedom on the computational mesh...
Field< 3, FieldValue< 3 >::Scalar > output_divergence
The class for outputting data during time.
Mat stiffness_matrix
The stiffness matrix.
std::shared_ptr< FiniteElement< dim > > fe()
Field< 3, FieldValue< 3 >::VectorFixed > load
Field< 3, FieldValue< 3 >::Scalar > fracture_sigma
Transition parameter for diffusive transfer on fractures.
Elasticity FactoryBaseType
double lame_mu(double young, double poisson)
std::array< QGauss, 4 > array
Field< 3, FieldValue< 3 >::Scalar > poisson_ratio
std::shared_ptr< DOFHandlerMultiDim > dh_tensor_
EquationOutput output_fields
static const int registrar
Registrar of class to factory.
EqData data_
Field data for model parameters.
Definitions of particular quadrature rules on simplices.
static string default_output_field()
std::shared_ptr< FieldFE< 3, FieldValue< 3 >::VectorFixed > > output_field_ptr
void set_potential_load(const Field< 3, FieldValue< 3 >::Scalar > &potential)
std::shared_ptr< DOFHandlerMultiDim > dh_
Object for distribution of dofs.
std::shared_ptr< DOFHandlerMultiDim > dh_scalar()
Abstract class for the description of a general finite element on a reference simplex in dim dimensio...
std::shared_ptr< FieldFE< 3, FieldValue< 3 >::Scalar > > output_div_ptr
std::shared_ptr< DOFHandlerMultiDim > dh_tensor()
bool evaluate_time_constraint(double &)
std::shared_ptr< FieldFE< 3, FieldValue< 3 >::Scalar > > output_cross_section_ptr
Field< 3, FieldValue< 3 >::VectorFixed > output_field
std::shared_ptr< DOFHandlerMultiDim > dh_scalar_
Field< 3, FieldValue< 3 >::Scalar > subdomain
std::shared_ptr< OutputTime > output_stream_
Mechanics::FEObjects * feo
Finite element objects.