![]() |
|
#include <constraint_elements.h>
Public Member Functions | |
ConstraintElement (Vector< Data * > &data_pt) | |
ConstraintElement (Vector< Data * > data_pt) | |
virtual void | fill_in_contribution_to_residuals (Vector< double > &residuals) |
virtual void | construct_lagrange_multipliers () |
![]() | |
GeneralisedElement () | |
Constructor: Initialise all pointers and all values to zero. More... | |
virtual | ~GeneralisedElement () |
Virtual destructor to clean up any memory allocated by the object. More... | |
GeneralisedElement (const GeneralisedElement &)=delete | |
Broken copy constructor. More... | |
void | operator= (const GeneralisedElement &)=delete |
Broken assignment operator. More... | |
Data *& | internal_data_pt (const unsigned &i) |
Return a pointer to i-th internal data object. More... | |
Data *const & | internal_data_pt (const unsigned &i) const |
Return a pointer to i-th internal data object (const version) More... | |
Data *& | external_data_pt (const unsigned &i) |
Return a pointer to i-th external data object. More... | |
Data *const & | external_data_pt (const unsigned &i) const |
Return a pointer to i-th external data object (const version) More... | |
unsigned long | eqn_number (const unsigned &ieqn_local) const |
int | local_eqn_number (const unsigned long &ieqn_global) const |
unsigned | add_external_data (Data *const &data_pt, const bool &fd=true) |
bool | external_data_fd (const unsigned &i) const |
void | exclude_external_data_fd (const unsigned &i) |
void | include_external_data_fd (const unsigned &i) |
void | flush_external_data () |
Flush all external data. More... | |
void | flush_external_data (Data *const &data_pt) |
Flush the object addressed by data_pt from the external data array. More... | |
unsigned | ninternal_data () const |
Return the number of internal data objects. More... | |
unsigned | nexternal_data () const |
Return the number of external data objects. More... | |
unsigned | ndof () const |
Return the number of equations/dofs in the element. More... | |
void | dof_vector (const unsigned &t, Vector< double > &dof) |
Return the vector of dof values at time level t. More... | |
void | dof_pt_vector (Vector< double * > &dof_pt) |
Return the vector of pointers to dof values. More... | |
void | set_internal_data_time_stepper (const unsigned &i, TimeStepper *const &time_stepper_pt, const bool &preserve_existing_data) |
void | assign_internal_eqn_numbers (unsigned long &global_number, Vector< double * > &Dof_pt) |
void | describe_dofs (std::ostream &out, const std::string ¤t_string) const |
virtual void | describe_local_dofs (std::ostream &out, const std::string ¤t_string) const |
void | add_internal_value_pt_to_map (std::map< unsigned, double * > &map_of_value_pt) |
virtual void | assign_local_eqn_numbers (const bool &store_local_dof_pt) |
virtual void | complete_setup_of_dependencies () |
virtual void | get_residuals (Vector< double > &residuals) |
virtual void | get_jacobian (Vector< double > &residuals, DenseMatrix< double > &jacobian) |
virtual void | get_mass_matrix (Vector< double > &residuals, DenseMatrix< double > &mass_matrix) |
virtual void | get_jacobian_and_mass_matrix (Vector< double > &residuals, DenseMatrix< double > &jacobian, DenseMatrix< double > &mass_matrix) |
virtual void | get_dresiduals_dparameter (double *const ¶meter_pt, Vector< double > &dres_dparam) |
virtual void | get_djacobian_dparameter (double *const ¶meter_pt, Vector< double > &dres_dparam, DenseMatrix< double > &djac_dparam) |
virtual void | get_djacobian_and_dmass_matrix_dparameter (double *const ¶meter_pt, Vector< double > &dres_dparam, DenseMatrix< double > &djac_dparam, DenseMatrix< double > &dmass_matrix_dparam) |
virtual void | get_hessian_vector_products (Vector< double > const &Y, DenseMatrix< double > const &C, DenseMatrix< double > &product) |
virtual void | get_inner_products (Vector< std::pair< unsigned, unsigned >> const &history_index, Vector< double > &inner_product) |
virtual void | get_inner_product_vectors (Vector< unsigned > const &history_index, Vector< Vector< double >> &inner_product_vector) |
virtual unsigned | self_test () |
virtual void | compute_norm (Vector< double > &norm) |
virtual void | compute_norm (double &norm) |
virtual unsigned | ndof_types () const |
virtual void | get_dof_numbers_for_unknowns (std::list< std::pair< unsigned long, unsigned >> &dof_lookup_list) const |
Protected Attributes | |
Vector< unsigned > | Constrained_Data_Local_Index |
unsigned | Num_Constrained_Data |
unsigned | Lagrange_Multiplier_Index |
unsigned | Num_Constraints |
Private Member Functions | |
void | build (Vector< Data * > &data_pt) |
Additional Inherited Members | |
![]() | |
static bool | Suppress_warning_about_repeated_internal_data |
static bool | Suppress_warning_about_repeated_external_data = true |
static double | Default_fd_jacobian_step = 1.0e-8 |
![]() | |
static DenseMatrix< double > | Dummy_matrix |
static std::deque< double * > | Dof_pt_deque |
References build().
References build().
References oomph::GeneralisedElement::add_external_data(), Constrained_Data_Local_Index, i, and Num_Constrained_Data.
Referenced by ConstraintElement().
|
virtual |
Reimplemented in oomph::NodeNodeMortaringElement.
References oomph::GeneralisedElement::add_internal_data(), evaluate_constraint_functions(), Lagrange_Multiplier_Index, and Num_Constraints.
|
protectedvirtual |
Reimplemented in oomph::ElementElementMortaringElement.
References OOMPH_CURRENT_FUNCTION, and OOMPH_EXCEPTION_LOCATION.
Referenced by construct_lagrange_multipliers(), and fill_in_contribution_to_residuals().
References Constrained_Data_Local_Index, oomph::GeneralisedElement::external_data_pt(), i, Num_Constrained_Data, OOMPH_CURRENT_FUNCTION, OOMPH_EXCEPTION_LOCATION, and oomph::StringConversion::to_string().
Referenced by oomph::NodeElementSolidOnlyMortaringElement::fill_in_contribution_to_jacobian_mortared_nodes(), fill_in_contribution_to_residuals(), oomph::NodeNodeConstraintElement::node_pt(), oomph::NodeElementSolidOnlyMortaringElement::position_in_element(), and oomph::NodeNodeConstraintElement::solid_node_pt().
|
inlineprotected |
References Constrained_Data_Local_Index, oomph::GeneralisedElement::external_local_eqn(), i, j, Num_Constrained_Data, OOMPH_CURRENT_FUNCTION, OOMPH_EXCEPTION_LOCATION, and oomph::StringConversion::to_string().
Referenced by oomph::NodeElementSolidOnlyMortaringElement::fill_in_contribution_to_jacobian_mortared_nodes(), and oomph::NodeNodeMortaringElement::fill_in_contribution_to_jacobian_mortared_nodes().
|
virtual |
Add the elemental contribution to the residuals vector. Note that this function will NOT initialise the residuals vector. It must be called after the residuals vector has been initialised to zero.
Reimplemented from oomph::GeneralisedElement.
Reimplemented in oomph::NodeNodeMortaringElement, and oomph::NodeElementSolidOnlyMortaringElement.
References oomph::GeneralisedElement::Default_fd_jacobian_step, calibrate::error, evaluate_constraint_functions(), ext_data_pt(), oomph::GeneralisedElement::external_local_eqn(), i, j, k, lagrange_eqn(), lagrange_multiplier(), Num_Constrained_Data, Num_Constraints, oomph::Data::nvalue(), oomph::Data::value(), and oomph::Data::value_pt().
References Constrained_Data_Local_Index.
|
inlineprotected |
References Lagrange_Multiplier_Index.
References i, oomph::GeneralisedElement::internal_local_eqn(), Lagrange_Multiplier_Index, Num_Constraints, OOMPH_CURRENT_FUNCTION, OOMPH_EXCEPTION_LOCATION, and oomph::StringConversion::to_string().
Referenced by oomph::NodeElementSolidOnlyMortaringElement::fill_in_contribution_to_jacobian_mortared_nodes(), oomph::NodeNodeMortaringElement::fill_in_contribution_to_jacobian_mortared_nodes(), and fill_in_contribution_to_residuals().
|
inlineprotected |
References oomph::GeneralisedElement::internal_data_pt(), and Lagrange_Multiplier_Index.
Referenced by oomph::NodeNodeMortaringElement::construct_lagrange_multipliers(), oomph::NodeElementSolidOnlyMortaringElement::fill_in_contribution_to_jacobian_mortared_nodes(), oomph::NodeNodeMortaringElement::fill_in_contribution_to_jacobian_mortared_nodes(), and fill_in_contribution_to_residuals().
Referenced by build(), ext_data_pt(), ext_eqn(), and get_constrained_data_local_index().
|
protected |
|
protected |
|
protected |
Referenced by construct_lagrange_multipliers(), oomph::NodeNodeMortaringElement::construct_lagrange_multipliers(), oomph::NodeNodeMortaringElement::fill_in_contribution_to_jacobian_mortared_nodes(), fill_in_contribution_to_residuals(), lagrange_eqn(), and oomph::NodeElementSolidOnlyMortaringElement::NodeElementSolidOnlyMortaringElement().