OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ElmerFEMLauncher.h
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4#include <list>
5#include <map>
6
7#include "OTCore/CoreTypes.h"
8#include "EntityInformation.h"
9
10#include "EntityProperties.h"
11
12namespace ot {
13 namespace components {
14 class ModelComponent;
15 }
16}
17
18class Application;
19
20class EntityBase;
21
23{
24public:
26 virtual ~ElmerFEMLauncher();
27
28 std::string startSolver(std::string& logFileText, const std::string &dataBaseURL, const std::string &uiUrl, const std::string &projectName, EntityBase* solverEntity, int serviceID, int sessionCount, ot::components::ModelComponent *modelComponent);
29
30private:
31 std::string extractMesh(EntityBase* solverEntity, const std::string& tempDirPath, ot::UID & meshDataID, std::string& currentMeshDataName);
32 void readGroupsFromMesh(const std::string& meshFileName, std::map<std::string, size_t>& groupNameToIdMap);
33 std::string getProblemType(EntityBase* solverEntity);
34 std::string readOutputFile(const std::string &fileName);
35 std::string getUniqueTempDir(void);
36 std::string getSystemTempDir(void);
37 std::string readEnvironmentVariable(const std::string &variableName);
38 bool checkFileOrDirExists(const std::string &path);
39 bool deleteDirectory(const std::string &pathName);
40 void readMeshItemInfo(ot::UID meshDataID, std::map<ot::UID, ot::EntityInformation>& meshItemInfo);
41 void readMaterialProperties(std::map<std::string, EntityProperties>& materialProperties);
42
43 Application *application;
44};
Definition Application.h:25
Definition ElmerFEMLauncher.h:23
ElmerFEMLauncher(Application *app)
Definition ElmerFEMLauncher.cpp:30
std::string startSolver(std::string &logFileText, const std::string &dataBaseURL, const std::string &uiUrl, const std::string &projectName, EntityBase *solverEntity, int serviceID, int sessionCount, ot::components::ModelComponent *modelComponent)
Definition ElmerFEMLauncher.cpp:41
virtual ~ElmerFEMLauncher()
Definition ElmerFEMLauncher.cpp:36
Definition ModelComponent.h:42
The app namespace contains several functions that may be used to start processes.
Definition Connector.h:8
unsigned long UID
Unique identifier (32 bit unsigned integer)
Definition CoreTypes.h:27