FEDEM Model Database  R8.0
Source code of the FEDEM model database
FFlPWAVGM.H
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: 2023 SAP SE
2 //
3 // SPDX-License-Identifier: Apache-2.0
4 //
5 // This file is part of FEDEM - https://openfedem.org
7 
8 #ifndef FFL_PWAVGM_H
9 #define FFL_PWAVGM_H
10 
11 #include <array>
12 
14 #include "FFlLib/FFlTypeInfoSpec.H"
15 #include "FFlLib/FFlField.H"
16 
17 #ifdef FF_NAMESPACE
18 namespace FF_NAMESPACE {
19 #endif
20 
21 
23 {
24  using DoubleVec = std::vector<double>;
25 
26 public:
27  FFlPWAVGM(int ID);
28  FFlPWAVGM(const FFlPWAVGM& obj);
29  virtual ~FFlPWAVGM() {}
30 
31  virtual bool isIdentic(const FFlAttributeBase* otherAttrib) const;
32 
33  static void init();
34 
35  FFlAttributeBase* removeWeights(const std::vector<int>& nodes, size_t nNod);
36 
39 
40  FFlField<int> refC; // component numbers at the reference point
41  std::array<FFlField<int>,6> indC; // indices into the weightMatrix
42  FFlField<DoubleVec> weightMatrix; // master DOF weighting factors
43 };
44 
45 #ifdef FF_NAMESPACE
46 } // namespace
47 #endif
48 #endif
Definition: FFlAttributeBase.H:26
Definition: FFlPWAVGM.H:23
FFL_FE_ATTRIBUTE_FACTORY_INIT(FFlPWAVGM)
std::vector< double > DoubleVec
Definition: FFlPWAVGM.H:24
FFL_TYPE_INFO(FFlPWAVGM)
FFlField< DoubleVec > weightMatrix
Definition: FFlPWAVGM.H:42
std::array< FFlField< int >, 6 > indC
Definition: FFlPWAVGM.H:41
FFlField< int > refC
Definition: FFlPWAVGM.H:40
virtual ~FFlPWAVGM()
Definition: FFlPWAVGM.H:29
void init()
Definition: FmDB.C:518