|
FEDEM Solver
R8.0
Source code of the dynamics solver
|
Solution field mapping utility for sub-model analysis. More...
#include "FFrLib/FFrExtractor.H"#include "FFlLib/FFlInit.H"#include "FFlLib/FFlLinkHandler.H"#include "FFlLib/FFlIOAdaptors/FFlReaders.H"#include "FFlLib/FFlIOAdaptors/FFlFedemWriter.H"#include "FFlLib/FFlFEParts/FFlShells.H"#include "FFlLib/FFlFEParts/FFlNode.H"#include "FFlLib/FFlElementBase.H"#include "FFaLib/FFaAlgebra/FFaMath.H"#include "FFaLib/FFaAlgebra/FFaMat34.H"#include "FFaLib/FFaCmdLineArg/FFaCmdLineArg.H"#include "FFaLib/FFaDefinitions/FFaAppInfo.H"#include "FFaLib/FFaDefinitions/FFaResultDescription.H"#include "FFaLib/FFaOS/FFaFilePath.H"#include "FFaLib/FFaOS/FFaTag.H"#include "Admin/FedemAdmin.H"#include <fstream>#include <iomanip>#include <cstring>
Classes | |
| struct | Node |
| Struct with sub-model nodal data. More... | |
Typedefs | |
| typedef std::map< int, Node > | NodeMap |
| Convenience type definition. More... | |
Functions | |
| void | cmdLineArgInitStd (int argc, char **argv) |
| Initializes the command-line parser. More... | |
| void | readOptionFilesStd (const char *program) |
| Reads the command-line options files. More... | |
| FFlLinkHandler * | readFEModel (const std::string &fileName) |
| Reads an FE model from file into a FFlLinkHandler object. More... | |
| size_t | searchPoints (std::string &ftlFile, FFlLinkHandler *&feModel, std::string &subFile, FFlLinkHandler *&subModel, std::string &nodFile, std::map< int, NodeMap > &nodes, FaMat33 &T_lg) |
| Searches for nodal points in a global FE model. More... | |
| bool | writeMappingFile (std::string &mapFile, unsigned int cs, const std::map< int, NodeMap > &nodes, const FaMat33 &T_lg) |
| Writes the nodal mapping container to a binary file. More... | |
| size_t | readMappingFile (std::string &mapFile, unsigned int &cs, std::map< int, NodeMap > &nodes, FaMat33 &T_lg) |
| Reads the nodal mapping results from binary file. More... | |
| bool | writeSubModel (std::string &subFile, FFlLinkHandler *&model, IntVec &nodes) |
| Reads an FE model from file and writes out with external node status. More... | |
| int | main (int argc, char **argv) |
| Main program for the solution field mapping utility. More... | |
Solution field mapping utility for sub-model analysis.
| void cmdLineArgInitStd | ( | int | argc, |
| char ** | argv | ||
| ) |
Initializes the command-line parser.
| [in] | argc | Number of command-line arguments (including program name) |
| [in] | argv | List of command-line arguments |
This function also defines some general command-line options that are common for all solver modules.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Main program for the solution field mapping utility.

| FFlLinkHandler* readFEModel | ( | const std::string & | fileName | ) |
Reads an FE model from file into a FFlLinkHandler object.
| [in] | fileName | File containing the FE model |
| size_t readMappingFile | ( | std::string & | mapFile, |
| unsigned int & | cs, | ||
| std::map< int, NodeMap > & | nodes, | ||
| FaMat33 & | T_lg | ||
| ) |
Reads the nodal mapping results from binary file.
| mapFile | Name of file for storage of nodal mapping results | |
| [out] | cs | Checksum of the FE part the nodal mapping belongs to |
| [out] | nodes | Resulting node-to-element mapping |
| [out] | T_lg | Local to global transformation matrix for sub-model |
| void readOptionFilesStd | ( | const char * | program | ) |
Reads the command-line options files.
| [in] | program | Name of the program module |
The help text containing all available command-line options may also be printed to console if the -help (or -helpAll) is specified.
| size_t searchPoints | ( | std::string & | ftlFile, |
| FFlLinkHandler *& | feModel, | ||
| std::string & | subFile, | ||
| FFlLinkHandler *& | subModel, | ||
| std::string & | nodFile, | ||
| std::map< int, NodeMap > & | nodes, | ||
| FaMat33 & | T_lg | ||
| ) |
Searches for nodal points in a global FE model.
| ftlFile | File containing the global FE model | |
| subFile | File containing the FE sub-model | |
| nodFile | File containing point coordinates to search for | |
| [out] | feModel | The global FE model |
| [out] | subModel | The FE sub-model |
| [out] | nodes | Resulting node-to-element mapping |
| [out] | T_lg | Local to global transformation matrix for sub-model |
| bool writeMappingFile | ( | std::string & | mapFile, |
| unsigned int | cs, | ||
| const std::map< int, NodeMap > & | nodes, | ||
| const FaMat33 & | T_lg | ||
| ) |
Writes the nodal mapping container to a binary file.
| mapFile | Name of file for storage of nodal mapping results | |
| [in] | cs | Checksum of the FE part the nodal mapping belongs to |
| [in] | nodes | Node-to-element mapping container |
| [in] | T_lg | Local to global transformation matrix for sub-model |
| bool writeSubModel | ( | std::string & | subFile, |
| FFlLinkHandler *& | model, | ||
| IntVec & | nodes | ||
| ) |
Reads an FE model from file and writes out with external node status.
| subFile | Name of file with the FE sub-model |
| model | The FE sub-model |
| nodes | List of external nodes |