FEDEM Model Database  R8.0
Source code of the FEDEM model database
FmSolverInput.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 
13 #ifndef FM_SOLVER_INPUT_H
14 #define FM_SOLVER_INPUT_H
15 
16 #include <string>
17 #include <vector>
18 
19 class FmAnalysis;
20 class FmMechanism;
21 class FmPart;
22 class FmSimulationEvent;
23 
24 
25 namespace Fedem
26 {
32  bool validFileCheck(const std::string& filename,
33  unsigned long int wantCS = 0,
34  std::string* missingFile = NULL,
35  int* wrongCS = NULL);
36 
46  int checkReducerFiles(const FmPart* part,
47  bool needMassMatrix = false,
48  char checkingWhich = 'A',
49  bool preparingForBatch = false,
50  unsigned long int wantCS = 0);
51 
60  std::string createReducerInput(FmAnalysis* analysis, FmMechanism* mech,
61  FmPart* part, const std::string& solverName,
62  bool preparingForBatch = false,
63  unsigned long int wantCS = 0);
64 
75  std::string createSolverInput(FmAnalysis* analysis,
76  FmMechanism* mech,
77  FmSimulationEvent* sev,
78  const std::string& solverName,
79  const std::vector<std::string>& plugins,
80  std::vector<std::string>& rdbPath,
81  bool preparingForBatch = false,
82  bool keepOldRes = true);
83 }
84 
85 #endif
Definition: FmAnalysis.H:23
Definition: FmMechanism.H:19
Definition: FmPart.H:47
Definition: FmSimulationEvent.H:18
FEDEM model database utilities.
Definition: FmCreate.H:36
int checkReducerFiles(const FmPart *part, bool needMassMatrix=false, char checkingWhich='A', bool preparingForBatch=false, unsigned long int wantCS=0)
Checks the validity of the reduced matrix files of a part.
Definition: FmSolverInput.C:92
std::string createReducerInput(FmAnalysis *analysis, FmMechanism *mech, FmPart *part, const std::string &solverName, bool preparingForBatch=false, unsigned long int wantCS=0)
Creates input files for the FE part reducer.
Definition: FmSolverInput.C:200
bool validFileCheck(const std::string &filename, unsigned long int wantCS=0, std::string *missingFile=NULL, int *wrongCS=NULL)
Helper to check whether a named fmx-file is valid or not.
Definition: FmSolverInput.C:33
std::string createSolverInput(FmAnalysis *analysis, FmMechanism *mech, FmSimulationEvent *sev, const std::string &solverName, const std::vector< std::string > &plugins, std::vector< std::string > &rdbPath, bool preparingForBatch=false, bool keepOldRes=true)
Creates input files for the dynamics solver.
Definition: FmSolverInput.C:372