CoupledSolidNodes.h
Go to the documentation of this file.
1 //
2 // Created by Thomas Weinhart on 29/04/2022.
3 //
4 
5 #ifndef MERCURYDPM_COUPLEDSOLIDNODES_H
6 #define MERCURYDPM_COUPLEDSOLIDNODES_H
7 #include "nodes.h"
8 
9 namespace oomph
10 {
11 
16 {
17 private:
20 
22  Vector<double> coupling_force;
23 
24 public:
25 
26  CoupledSolidNode(const unsigned& n_lagrangian,
27  const unsigned& n_lagrangian_type,
28  const unsigned& n_dim,
29  const unsigned& n_position_type,
30  const unsigned& initial_n_value)
31  : SolidNode(n_lagrangian, n_lagrangian_type, n_dim, n_position_type, initial_n_value) {}
32 
33  CoupledSolidNode(TimeStepper* const& time_stepper_pt_,
34  const unsigned& n_lagrangian,
35  const unsigned& n_lagrangian_type,
36  const unsigned& n_dim,
37  const unsigned& n_position_type,
38  const unsigned& initial_n_value)
39  : SolidNode(time_stepper_pt_, n_lagrangian, n_lagrangian_type, n_dim, n_position_type, initial_n_value) {}
40 
42  inline void set_coupling_weight( const double& weight ) { coupling_weight = weight; }
43 
44  inline const double get_coupling_weight() { return coupling_weight; }
45 
46  inline void set_coupling_force( const Vector<double>& cForce ) { coupling_force = cForce; }
47 
48  inline Vector<double> get_coupling_force() const { return coupling_force; }
49 };
50 
51 }// namespace oomph
52 
53 #endif//MERCURYDPM_SOLIDNODES_H
Definition: CoupledSolidNodes.h:16
CoupledSolidNode(const unsigned &n_lagrangian, const unsigned &n_lagrangian_type, const unsigned &n_dim, const unsigned &n_position_type, const unsigned &initial_n_value)
Definition: CoupledSolidNodes.h:26
Vector< double > get_coupling_force() const
Definition: CoupledSolidNodes.h:48
void set_coupling_weight(const double &weight)
Set and get function for the coupling weight and force.
Definition: CoupledSolidNodes.h:42
CoupledSolidNode(TimeStepper *const &time_stepper_pt_, const unsigned &n_lagrangian, const unsigned &n_lagrangian_type, const unsigned &n_dim, const unsigned &n_position_type, const unsigned &initial_n_value)
Definition: CoupledSolidNodes.h:33
const double get_coupling_weight()
Definition: CoupledSolidNodes.h:44
Vector< double > coupling_force
Coupling force on the node.
Definition: CoupledSolidNodes.h:22
void set_coupling_force(const Vector< double > &cForce)
Definition: CoupledSolidNodes.h:46
double coupling_weight
Weighting factor for coupling with other method.
Definition: CoupledSolidNodes.h:19
Definition: AnisotropicHookean.h:31