CoupledSolidNodes.h
Go to the documentation of this file.
1 // This file is part of the MercuryDPM project (https://www.mercurydpm.org).
2 // Copyright (c), The MercuryDPM Developers Team. All rights reserved.
3 // License: BSD 3-Clause License; see the LICENSE file in the root directory.
4 
5 //
6 // Created by Thomas Weinhart on 29/04/2022.
7 //
8 
9 #ifndef MERCURYDPM_COUPLEDSOLIDNODES_H
10 #define MERCURYDPM_COUPLEDSOLIDNODES_H
11 #include "nodes.h"
12 
13 namespace oomph
14 {
15 
20 {
21 private:
24 
27 
28 public:
29 
30  CoupledSolidNode(const unsigned& n_lagrangian,
31  const unsigned& n_lagrangian_type,
32  const unsigned& n_dim,
33  const unsigned& n_position_type,
34  const unsigned& initial_n_value)
35  : SolidNode(n_lagrangian, n_lagrangian_type, n_dim, n_position_type, initial_n_value) {}
36 
37  CoupledSolidNode(TimeStepper* const& time_stepper_pt_,
38  const unsigned& n_lagrangian,
39  const unsigned& n_lagrangian_type,
40  const unsigned& n_dim,
41  const unsigned& n_position_type,
42  const unsigned& initial_n_value)
43  : SolidNode(time_stepper_pt_, n_lagrangian, n_lagrangian_type, n_dim, n_position_type, initial_n_value) {}
44 
46  inline void set_coupling_weight( const double& weight ) { coupling_weight = weight; }
47 
48  inline const double get_coupling_weight() { return coupling_weight; }
49 
50  inline void set_coupling_force( const Vector<double>& cForce ) { coupling_force = cForce; }
51 
53 };
54 
55 }// namespace oomph
56 
57 #endif//MERCURYDPM_SOLIDNODES_H
Definition: CoupledSolidNodes.h:20
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:30
Vector< double > get_coupling_force() const
Definition: CoupledSolidNodes.h:52
void set_coupling_weight(const double &weight)
Set and get function for the coupling weight and force.
Definition: CoupledSolidNodes.h:46
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:37
const double get_coupling_weight()
Definition: CoupledSolidNodes.h:48
Vector< double > coupling_force
Coupling force on the node.
Definition: CoupledSolidNodes.h:26
void set_coupling_force(const Vector< double > &cForce)
Definition: CoupledSolidNodes.h:50
double coupling_weight
Weighting factor for coupling with other method.
Definition: CoupledSolidNodes.h:23
Definition: nodes.h:1686
Definition: timesteppers.h:231
DRAIG: Change all instances of (SPATIAL_DIM) to (DIM-1).
Definition: AnisotropicHookean.h:10