FEDEM Model Database  R8.0
Source code of the FEDEM model database
FFlUtils.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_UTILS_H
9 #define FFL_UTILS_H
10 
11 #include <string>
12 #include <vector>
13 #include <map>
14 
15 #ifdef FF_NAMESPACE
16 namespace FF_NAMESPACE { class FFlLinkHandler; }
17 using FFlLinkHandler = FF_NAMESPACE::FFlLinkHandler;
18 #else
19 class FFlLinkHandler;
20 #endif
21 class FaMat34;
22 
23 
24 namespace FFl
25 {
26  struct DepDOF
27  {
28  int node;
29  int lDof;
30  double coeff;
31  DepDOF(int n = 1, int d = 1, double c = 1.0) : node(n), lDof(d), coeff(c) {}
32  };
33 
34  using DepDOFs = std::vector<DepDOF>;
35  using MPC = std::map<short int,DepDOFs>;
36  using MPCMap = std::map<int,MPC>;
37 
38  bool convertMPCsToWAVGM(FFlLinkHandler* part, const MPCMap& mpcs);
39 
41  const std::string& elmGroups = "");
42 
44  const FaMat34& partCS, const std::string& fname);
45 }
46 
47 #endif
Container class for finite element models.
Definition: FFlLinkHandler.H:95
Class for positions in 3D space.
Definition: FFaMat34.H:32
Definition: FFlLinkCSMask.H:13
std::vector< DepDOF > DepDOFs
Definition: FFlUtils.H:34
bool extractBodyFromShell(FFlLinkHandler *part, const FaMat34 &partCS, const std::string &fname)
Definition: FFlUtils.C:162
std::map< short int, DepDOFs > MPC
Definition: FFlUtils.H:35
std::map< int, MPC > MPCMap
Definition: FFlUtils.H:36
bool activateElmGroups(FFlLinkHandler *part, const std::string &elmGroups="")
Definition: FFlUtils.C:116
bool convertMPCsToWAVGM(FFlLinkHandler *part, const MPCMap &mpcs)
Definition: FFlUtils.C:22
Definition: FFlUtils.H:27
int node
Definition: FFlUtils.H:28
int lDof
Definition: FFlUtils.H:29
double coeff
Definition: FFlUtils.H:30
DepDOF(int n=1, int d=1, double c=1.0)
Definition: FFlUtils.H:31